
:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#151515;
  --muted:#6b7280;
  --line:#e3e5e8;
  --soft:#f7f8fa;
  --accent:#ff5a00;
  --accent-soft:#fff2ea;
  --price:#e53935;
  --success:#16843b;
  --shadow:0 2px 10px rgba(0,0,0,.05);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:14px;
  line-height:1.4;
  -webkit-font-smoothing:antialiased;
}

body.dark{
  --bg:#111827;
  --card:#182235;
  --text:#f3f4f6;
  --muted:#a8b1c0;
  --line:#2b3950;
  --soft:#1f2a3c;
  --accent:#ff7a33;
  --accent-soft:#402315;
  --price:#ff6675;
  --success:#51cf7a;
  --shadow:none;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--card);
  border-bottom:1px solid var(--line);
}

.header-inner{
  width:min(1180px,calc(100% - 24px));
  min-height:64px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{display:flex;align-items:center}
.brand-logo-wide{
  display:block;
  width:auto;
  height:40px;
  max-width:330px;
  object-fit:contain;
  border-radius:6px;
}
.brand-logo-square{display:none;width:40px;height:40px;border-radius:8px;object-fit:cover}

.theme-toggle,
.only-stock{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
}

.page{
  width:min(1180px,calc(100% - 24px));
  margin:0 auto;
  padding:20px 0 28px;
}

.page-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:14px;
}

.page-title h1{
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:24px;
  font-weight:700;
}

.page-title p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px;
}

.updated{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}

.toolbar{
  position:sticky;
  top:64px;
  z-index:40;
  background:var(--bg);
  padding:8px 0 12px;
  margin-bottom:14px;
  border-bottom:1px solid var(--line);
}

.search-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}

.search{
  width:100%;
  height:44px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 13px;
  background:var(--card);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:14px;
  outline:none;
}

.search:focus{border-color:var(--accent)}

.clear-btn{
  min-width:58px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  border-radius:8px;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:13px;
  cursor:pointer;
}

.category-filters{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:10px 0 2px;
  scrollbar-width:none;
}
.category-filters::-webkit-scrollbar{display:none}

.category-btn{
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:18px;
  padding:7px 12px;
  background:var(--card);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:12px;
  cursor:pointer;
  white-space:nowrap;
}
.category-btn.active{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}

.filter-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
}

.only-stock{color:var(--muted)}
.summary{color:var(--muted);font-size:12px}

.product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.product-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.product-media{
  height:180px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--line);
}

.product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
}

.image-placeholder{
  color:var(--muted);
  font-size:12px;
}

.product-body{padding:12px}

.category-label{
  color:var(--accent);
  font-size:11px;
  margin-bottom:5px;
}

.product-name{
  min-height:40px;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:1.3;
}

.variant-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
}

.variant{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px 10px;
  padding:9px 0;
  border-top:1px solid var(--line);
}

.variant-main{font-size:13px}
.stock{margin-top:4px;font-size:11px;color:var(--muted)}
.stock.in{color:var(--success);font-weight:700}

.price{
  color:var(--price);
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
  align-self:center;
}

.loading,.empty{
  grid-column:1/-1;
  padding:36px 18px;
  text-align:center;
  color:var(--muted);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
}

.footer{
  margin-top:26px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-bottom:5px;
  color:var(--text);
  font-weight:700;
}
.footer-brand img{width:26px;height:26px;border-radius:6px}

@media(max-width:980px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:640px){
  .header-inner{width:100%;padding:0 9px}
  .brand-logo-wide{display:none}
  .brand-logo-square{display:block}

  .page{width:100%;padding:12px 8px 22px}

  .page-title{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }

  .page-title h1{font-size:20px}

  .toolbar{top:64px}

  .product-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .product-card{
    display:grid;
    grid-template-columns:105px 1fr;
  }

  .product-media{
    height:100%;
    min-height:145px;
    border-bottom:0;
    border-right:1px solid var(--line);
  }

  .product-image{padding:7px}
  .product-name{min-height:auto;font-size:15px}
  .product-body{padding:10px}
  .variant{padding:7px 0}
  .variant-main{font-size:12px}
  .price{font-size:14px}
}


.brand-filter-block{
  margin-top:10px;
}
.filter-label{
  margin-bottom:2px;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
}


.variant-main{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}

.attr-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 7px;
  border-radius:6px;
  background:var(--soft);
  border:1px solid var(--line);
  color:var(--text);
  font-size:11px;
}


/* ===== V11 - Bố cục kiểu trang chi tiết sản phẩm ===== */
.product-grid{
  grid-template-columns:1fr;
  gap:16px;
}

.product-detail-card{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  border-radius:10px;
  overflow:hidden;
}

.product-detail-card .product-media{
  height:auto;
  min-height:290px;
  border:0;
  border-right:1px solid var(--line);
  padding:16px;
}

.product-detail-card .product-image{
  width:100%;
  height:260px;
  padding:0;
  object-fit:contain;
}

.product-detail-card .product-body{
  position:relative;
  padding:18px 20px;
}

.product-brand{
  margin-bottom:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.product-detail-card .product-name{
  min-height:0;
  margin:0 120px 10px 0;
  font-size:19px;
  line-height:1.3;
}

.main-price{
  margin:5px 0 2px;
  color:var(--price);
  font-size:24px;
  line-height:1.2;
  font-weight:700;
}

.variant-hint{
  margin-top:8px;
  font-size:13px;
  font-weight:700;
}

.selectors{
  margin-top:9px;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.selector-row{
  display:grid;
  grid-template-columns:82px 1fr;
  align-items:start;
  gap:8px;
}

.selector-label{
  padding-top:6px;
  font-size:13px;
}

.selector-options{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.option-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:5px 10px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:4px;
  font-size:12px;
}

.memory-chip{
  min-width:68px;
}

.detail-stock{
  position:absolute;
  right:20px;
  top:18px;
  color:var(--success);
  font-size:13px;
  font-weight:700;
}

.variant-price-list{
  margin-top:14px;
  border-top:1px solid var(--line);
}

.variant-price-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid var(--line);
}

.variant-desc{
  color:var(--muted);
  font-size:12px;
}

.variant-row-price{
  color:var(--price);
  font-size:13px;
  font-weight:700;
}

@media(max-width:700px){
  .product-detail-card{
    grid-template-columns:125px minmax(0,1fr);
  }

  .product-detail-card .product-media{
    min-height:210px;
    padding:8px;
  }

  .product-detail-card .product-image{
    height:190px;
  }

  .product-detail-card .product-body{
    padding:11px;
  }

  .product-detail-card .product-name{
    margin-right:0;
    padding-right:0;
    font-size:15px;
  }

  .main-price{
    font-size:19px;
  }

  .detail-stock{
    position:static;
    margin-top:10px;
  }

  .selector-row{
    grid-template-columns:1fr;
    gap:4px;
  }

  .selector-label{
    padding-top:0;
    color:var(--muted);
    font-size:11px;
  }

  .option-chip{
    min-height:28px;
    padding:4px 7px;
    font-size:11px;
  }

  .variant-price-list{
    margin-top:9px;
  }
}


/* ===== V12 - Chọn biến thể đổi giá ===== */
.option-chip{
  cursor:pointer;
  transition:.15s ease;
}

.option-chip:hover:not(.disabled){
  border-color:var(--accent);
}

.option-chip.active{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:700;
  box-shadow:0 0 0 1px var(--accent) inset;
}

.option-chip.disabled{
  opacity:.35;
  cursor:not-allowed;
  text-decoration:line-through;
}

.selected-info{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
}

.detail-stock.out{
  color:var(--price);
}


/* ===== V13 - Ẩn thuộc tính của biến thể hết hàng ===== */
.option-chip.disabled{
  display:none;
}


/* ===== V14 - Tận dụng chiều ngang màn hình ===== */

/* Header và nội dung chính rộng hơn trên desktop */
.header-inner,
.page{
  width:min(1560px, calc(100% - 40px));
}

/* Danh sách sản phẩm vẫn 1 cột nhưng card trải ngang đẹp hơn */
.product-grid{
  width:100%;
}

/* Card chi tiết cân đối theo chiều ngang */
.product-detail-card{
  grid-template-columns:320px minmax(0,1fr);
}

/* Ảnh lớn hơn một chút khi desktop rộng */
.product-detail-card .product-media{
  min-height:320px;
}

.product-detail-card .product-image{
  height:290px;
}

/* Khu vực thông tin không bị tụ lại giữa */
.product-detail-card .product-body{
  padding:22px 28px;
}

/* Các lựa chọn màu/dung lượng có nhiều khoảng thở hơn */
.selector-row{
  grid-template-columns:100px 1fr;
}

.selector-options{
  gap:8px;
}

/* Màn hình rất rộng: tăng chiều rộng tổng thể thêm */
@media(min-width:1700px){
  .header-inner,
  .page{
    width:min(1760px, calc(100% - 56px));
  }

  .product-detail-card{
    grid-template-columns:350px minmax(0,1fr);
  }

  .product-detail-card .product-image{
    height:320px;
  }
}

/* Tablet */
@media(max-width:1100px){
  .header-inner,
  .page{
    width:min(100% - 20px, 1100px);
  }

  .product-detail-card{
    grid-template-columns:260px minmax(0,1fr);
  }

  .product-detail-card .product-image{
    height:235px;
  }
}

/* Mobile giữ nguyên kiểu gọn */
@media(max-width:700px){
  .header-inner,
  .page{
    width:100%;
  }

  .page{
    padding-left:8px;
    padding-right:8px;
  }

  .product-detail-card{
    grid-template-columns:125px minmax(0,1fr);
  }

  .product-detail-card .product-media{
    min-height:210px;
  }

  .product-detail-card .product-image{
    height:190px;
  }

  .product-detail-card .product-body{
    padding:11px;
  }
}


/* ===== V15 - Giao diện dạng shop/grid ===== */
:root{
  --shop-orange:#ff6a00;
  --shop-orange-dark:#f15a00;
}

.page,
.header-inner{
  width:min(1500px, calc(100% - 28px));
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
  background:var(--card);
}

.shop-card{
  min-width:0;
  background:var(--card);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  display:flex;
  flex-direction:column;
}

.shop-media{
  height:230px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  overflow:hidden;
}

.shop-media .product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
}

.shop-media .image-placeholder{
  color:var(--muted);
  font-size:12px;
}

.shop-body{
  padding:10px 10px 12px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.shop-title{
  min-height:44px;
  font-size:15px;
  line-height:1.25;
  font-weight:700;
  color:var(--text);
}

.shop-specs{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-height:26px;
  margin-top:6px;
}

.shop-chip{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 6px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--soft);
  color:var(--muted);
  font-size:10px;
}

.shop-price{
  margin-top:8px;
  color:#d90000;
  font-size:16px;
  font-weight:700;
}

.buy-btn{
  width:100%;
  height:30px;
  margin-top:10px;
  border:0;
  border-radius:5px;
  background:linear-gradient(180deg,var(--shop-orange),var(--shop-orange-dark));
  color:#fff;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

.shop-status{
  margin-top:8px;
  color:var(--success);
  font-size:11px;
  font-weight:700;
}

.quick-variants{
  display:none;
  flex-direction:column;
  gap:5px;
  margin-top:8px;
}

.quick-variants.open{
  display:flex;
}

.quick-variant{
  width:100%;
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center;
  padding:6px 7px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--card);
  color:var(--text);
  text-align:left;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:10px;
  cursor:pointer;
}

.quick-variant strong{
  color:#d90000;
  font-size:10px;
  white-space:nowrap;
}

.quick-variant.active{
  border-color:var(--shop-orange);
  box-shadow:0 0 0 1px var(--shop-orange) inset;
}

/* Thanh lọc hãng nhìn giống menu ngang */
.category-filters{
  padding-top:8px;
  padding-bottom:4px;
  border-bottom:1px solid var(--line);
}

.category-btn{
  border:0;
  background:transparent;
  color:#d97a00;
  border-radius:0;
  padding:5px 8px;
}

.category-btn.active{
  background:transparent;
  color:var(--text);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Gọn phần title/search để giống trang bán hàng */
.page-title{
  margin-bottom:10px;
}
.page-title h1{
  font-size:22px;
}
.toolbar{
  top:64px;
  padding-top:6px;
}

@media(max-width:1250px){
  .product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:980px){
  .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:720px){
  .page,
  .header-inner{
    width:100%;
  }

  .page{
    padding-left:6px;
    padding-right:6px;
  }

  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .shop-media{
    height:180px;
  }

  .shop-title{
    min-height:40px;
    font-size:13px;
  }

  .shop-price{
    font-size:14px;
  }
}

@media(max-width:420px){
  .product-grid{
    grid-template-columns:1fr 1fr;
  }

  .shop-media{
    height:155px;
  }

  .shop-body{
    padding:8px;
  }

  .shop-title{
    min-height:38px;
    font-size:12px;
  }

  .shop-price{
    font-size:13px;
  }

  .buy-btn{
    font-size:10px;
  }
}


/* ===== V16 - Hiển thị đầy đủ thuộc tính còn hàng ===== */
.shop-attributes{
  margin-top:7px;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.shop-attr-row{
  display:grid;
  grid-template-columns:62px minmax(0,1fr);
  gap:6px;
  align-items:start;
}

.shop-attr-label{
  padding-top:5px;
  color:var(--muted);
  font-size:10px;
}

.shop-attr-options{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.shop-attr-btn{
  min-height:25px;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--card);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:10px;
  cursor:pointer;
}

.shop-attr-btn.active{
  border-color:var(--shop-orange);
  color:var(--shop-orange-dark);
  box-shadow:0 0 0 1px var(--shop-orange) inset;
}

.shop-attr-btn.disabled{
  display:none;
}

@media(max-width:720px){
  .shop-attr-row{
    grid-template-columns:1fr;
    gap:3px;
  }

  .shop-attr-label{
    padding-top:0;
  }
}


/* ===== V17 - Vẫn hiện sản phẩm hết hàng ===== */
.shop-status.out{
  color:#888;
  font-weight:700;
}

.shop-card:has(.shop-status.out){
  opacity:.86;
}

.shop-card:has(.shop-status.out) .shop-price{
  color:#777;
}

.shop-card:has(.shop-status.out) .buy-btn{
  background:#9ca3af;
}


/* ===== V18 - Ô màu trực quan + note tên màu ===== */
.shop-attr-row{
  grid-template-columns:78px minmax(0,1fr);
}

.color-swatch{
  width:34px;
  height:34px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:3px;
  background:var(--card);
  cursor:pointer;
  position:relative;
}

.color-swatch-dot{
  display:block;
  width:100%;
  height:100%;
  border-radius:1px;
  border:1px solid rgba(0,0,0,.08);
}

.color-swatch.active{
  border-color:var(--shop-orange);
  box-shadow:
    0 0 0 1px var(--shop-orange) inset,
    0 0 0 2px rgba(255,106,0,.12);
}

.color-swatch.active::after{
  content:"✓";
  position:absolute;
  right:-3px;
  bottom:-4px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--shop-orange);
  color:white;
  font-size:9px;
  line-height:14px;
  text-align:center;
  font-weight:700;
}

.color-swatch.disabled{
  display:none;
}

.color-note{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  margin-left:6px;
  color:var(--text);
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

@media(max-width:720px){
  .shop-attr-row{
    grid-template-columns:1fr;
  }

  .color-note{
    margin-left:2px;
    min-height:30px;
  }
}


/* ===== V19 - Luôn hiển thị toàn bộ sản phẩm ===== */
.stock-filter,
.only-stock,
.onlyStock,
label[for="onlyStock"]{
  display:none !important;
}


/* V20 - Nút trạng thái tồn kho */
.buy-btn.out-of-stock{
  background:#9ca3af;
  cursor:pointer;
}


/* ===== V21 - Sản phẩm bán chạy ===== */
.best-seller-filter{
  color:#e54b00 !important;
  font-weight:700 !important;
}

.best-seller-filter.active{
  color:#e54b00 !important;
}

.best-seller-badge{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  margin-bottom:5px;
  padding:3px 7px;
  border-radius:4px;
  background:#ff5a00;
  color:#fff;
  font-size:9px;
  font-weight:700;
  line-height:1.2;
}


/* V27: Bán chạy là mục phụ, không còn là tab mặc định */
.category-btn.best-seller-filter{
  margin-left: 18px;
  font-weight: 700;
}
.category-btn.best-seller-filter::before{
  content: "★ ";
}


/* ===== V29 - Ngoài chỉ ảnh + tên + giá; bấm mở chi tiết ===== */
.product-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}

.compact-product-card{
  background:var(--card);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  cursor:pointer;
  transition:box-shadow .15s ease, transform .15s ease;
  outline:none;
}

.compact-product-card:hover,
.compact-product-card:focus{
  position:relative;
  z-index:2;
  box-shadow:0 4px 18px rgba(0,0,0,.10);
}

.compact-product-media{
  height:230px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  overflow:hidden;
}

.compact-product-media .product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
}

.compact-product-body{
  padding:10px 10px 14px;
}

.compact-product-title{
  min-height:42px;
  font-size:15px;
  line-height:1.25;
  font-weight:700;
}

.compact-product-price{
  margin-top:8px;
  color:#d90000;
  font-size:16px;
  font-weight:700;
}

/* Modal */
body.modal-open{
  overflow:hidden;
}

.product-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
}

.product-modal.open{
  display:block;
}

.product-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}

.product-modal-dialog{
  position:relative;
  width:min(900px,calc(100% - 28px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  margin:20px auto;
  background:var(--card);
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.product-modal-close{
  position:absolute;
  top:10px;
  right:12px;
  z-index:2;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:#f1f3f5;
  color:#111;
  font-size:23px;
  line-height:34px;
  cursor:pointer;
}

.modal-product-layout{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:24px;
  padding:28px;
}

.modal-product-image{
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}

.modal-product-image .product-image{
  width:100%;
  height:340px;
  object-fit:contain;
  padding:12px;
}

.modal-product-info h2{
  margin:0 44px 10px 0;
  font-size:22px;
  line-height:1.3;
}

.modal-product-price{
  color:#d90000;
  font-size:25px;
  font-weight:700;
  margin-bottom:8px;
}

.modal-product-stock{
  color:var(--success);
  font-size:13px;
  font-weight:700;
  margin-bottom:18px;
}

.modal-product-stock.out{
  color:#777;
}

.modal-attr-block{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:10px;
  margin-top:16px;
}

.modal-attr-label{
  padding-top:7px;
  font-size:13px;
}

.modal-color-options,
.modal-memory-options{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
}

.modal-color-swatch{
  width:36px;
  height:36px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:3px;
  background:#fff;
  cursor:pointer;
  position:relative;
}

.modal-color-swatch span{
  display:block;
  width:100%;
  height:100%;
  border:1px solid rgba(0,0,0,.08);
}

.modal-color-swatch.active{
  border-color:#ff5a00;
  box-shadow:0 0 0 1px #ff5a00 inset;
}

.modal-color-swatch.active::after{
  content:"✓";
  position:absolute;
  right:-4px;
  bottom:-5px;
  width:15px;
  height:15px;
  border-radius:50%;
  background:#ff5a00;
  color:#fff;
  font-size:10px;
  line-height:15px;
  text-align:center;
  font-weight:700;
}

.modal-color-swatch.disabled,
.modal-memory-btn.disabled{
  opacity:.3;
  cursor:not-allowed;
}

.modal-color-note{
  margin-left:5px;
  font-size:12px;
  font-weight:700;
}

.modal-memory-btn{
  min-height:34px;
  padding:5px 10px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--card);
  color:var(--text);
  font-size:12px;
  cursor:pointer;
}

.modal-memory-btn.active{
  border-color:#ff5a00;
  color:#e65100;
  box-shadow:0 0 0 1px #ff5a00 inset;
}

@media(max-width:1200px){
  .product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .modal-product-layout{
    grid-template-columns:300px minmax(0,1fr);
  }
}

@media(max-width:700px){
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .compact-product-media{
    height:180px;
  }
  .compact-product-title{
    min-height:38px;
    font-size:13px;
  }
  .compact-product-price{
    font-size:14px;
  }

  .product-modal-dialog{
    width:calc(100% - 12px);
    margin:6px auto;
    max-height:calc(100vh - 12px);
  }

  .modal-product-layout{
    grid-template-columns:1fr;
    gap:12px;
    padding:16px;
  }

  .modal-product-image{
    min-height:240px;
  }

  .modal-product-image .product-image{
    height:230px;
  }

  .modal-product-info h2{
    font-size:18px;
  }

  .modal-product-price{
    font-size:21px;
  }

  .modal-attr-block{
    grid-template-columns:1fr;
    gap:5px;
  }

  .modal-attr-label{
    padding-top:0;
    color:var(--muted);
  }
}


/* ===== V31 - Popup chi tiết theo kiểu website bán hàng ===== */
.product-modal-dialog{
  width:min(1180px,calc(100% - 30px));
  max-height:calc(100vh - 30px);
  margin:15px auto;
  border-radius:10px;
  background:#fff;
  color:#111;
}

.product-modal-close{
  top:12px;
  right:14px;
  width:36px;
  height:36px;
  border:1px solid #e5e7eb;
  background:#f7f7f7;
  color:#111;
  font-size:22px;
  z-index:5;
}

.detail-page{
  padding:22px 26px 28px;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.detail-breadcrumb{
  color:#555;
  font-size:12px;
  margin-bottom:12px;
}

.detail-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-right:45px;
  margin-bottom:16px;
}

.detail-heading h2{
  margin:0;
  font-size:22px;
  line-height:1.3;
}

.detail-status-top{
  color:#16843b;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  padding-top:5px;
}

.detail-status-top.out,
.detail-info-line strong.out{
  color:#777;
}

.detail-main{
  display:grid;
  grid-template-columns:320px minmax(0,1fr) 250px;
  gap:24px;
  align-items:start;
}

.detail-gallery{
  min-width:0;
}

.detail-image-box{
  height:340px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:6px;
  overflow:hidden;
}

.detail-image-box .product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
}

.detail-image-caption{
  margin-top:8px;
  text-align:center;
  color:#777;
  font-size:11px;
}

.detail-info{
  min-width:0;
}

.detail-price{
  color:#c40000;
  font-size:25px;
  line-height:1.2;
  font-weight:700;
  margin-bottom:5px;
}

.detail-choose-text{
  font-size:13px;
  font-weight:700;
  margin:4px 0 14px;
}

.detail-option-row{
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  gap:10px;
  align-items:start;
  margin:12px 0;
}

.detail-option-label{
  padding-top:8px;
  font-size:13px;
}

.detail-color-options,
.detail-memory-options{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
}

.detail-color-swatch{
  width:36px;
  height:36px;
  padding:3px;
  border:1px solid #d9dce1;
  border-radius:2px;
  background:#fff;
  cursor:pointer;
  position:relative;
}

.detail-color-swatch span{
  display:block;
  width:100%;
  height:100%;
  border:1px solid rgba(0,0,0,.08);
}

.detail-color-swatch.active{
  border-color:#d39b2f;
  box-shadow:0 0 0 1px #d39b2f inset;
}

.detail-color-swatch.active::after{
  content:"✓";
  position:absolute;
  right:-4px;
  bottom:-5px;
  width:15px;
  height:15px;
  border-radius:50%;
  background:#d39b2f;
  color:#fff;
  font-size:10px;
  line-height:15px;
  text-align:center;
  font-weight:700;
}

.detail-color-swatch.disabled,
.detail-memory-btn.disabled{
  opacity:.25;
  cursor:not-allowed;
}

.detail-color-note{
  margin-left:7px;
  font-size:12px;
  font-weight:700;
}

.detail-memory-btn{
  min-height:34px;
  padding:5px 12px;
  border:1px solid #dedede;
  border-radius:2px;
  background:#fff;
  color:#111;
  font-size:12px;
  cursor:pointer;
}

.detail-memory-btn.active{
  border-color:#d39b2f;
  box-shadow:0 0 0 1px #d39b2f inset;
}

.detail-info-box{
  margin-top:18px;
  border:1px solid #d5b46d;
  border-radius:5px;
  overflow:hidden;
}

.detail-info-box-title{
  display:inline-block;
  position:relative;
  top:-1px;
  margin:0 0 2px 14px;
  padding:2px 10px;
  background:#fff;
  color:#222;
  font-weight:700;
  font-size:13px;
}

.detail-info-line{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:7px 12px;
  border-top:1px solid #f0eadc;
  font-size:12px;
}

.detail-info-line span{
  color:#666;
}

.detail-info-line strong{
  text-align:right;
}

.detail-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
}

.detail-action-primary,
.detail-action-secondary{
  min-height:44px;
  border:0;
  border-radius:4px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.detail-action-primary{
  background:#5f86d8;
  color:#fff;
}

.detail-action-secondary{
  background:#ff9147;
  color:#fff;
}

.detail-related{
  border:1px solid #e7e7e7;
  background:#fafafa;
}

.detail-related-title{
  padding:9px 11px;
  background:#d2a13c;
  color:#fff;
  font-size:13px;
  font-weight:700;
}

.detail-related-item{
  width:100%;
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:9px;
  padding:9px;
  border:0;
  border-bottom:1px solid #e5e5e5;
  background:#fafafa;
  text-align:left;
  cursor:pointer;
}

.detail-related-item:last-child{
  border-bottom:0;
}

.detail-related-thumb{
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #e4e4e4;
}

.detail-related-thumb .product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:3px;
}

.detail-related-name{
  font-size:11px;
  font-weight:700;
  line-height:1.3;
}

.detail-related-price{
  margin-top:5px;
  color:#d40000;
  font-size:12px;
  font-weight:700;
}

.detail-related-empty{
  padding:14px;
  color:#777;
  font-size:12px;
}

.detail-lower{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid #ddd;
}

.detail-specs,
.detail-note{
  border:1px solid #e2e2e2;
}

.detail-section-title{
  padding:9px 11px;
  border-bottom:1px solid #e2e2e2;
  font-size:14px;
  font-weight:700;
}

.detail-spec-row{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:10px;
  padding:9px 11px;
  border-bottom:1px solid #eee;
  font-size:12px;
}

.detail-spec-row:last-child{
  border-bottom:0;
}

.detail-spec-row span{
  font-weight:700;
}

.detail-note-body{
  padding:12px;
  color:#555;
  font-size:12px;
  line-height:1.55;
}

@media(max-width:1000px){
  .detail-main{
    grid-template-columns:280px minmax(0,1fr);
  }
  .detail-related{
    grid-column:1 / -1;
  }
  .detail-related{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .detail-related-title{
    grid-column:1 / -1;
  }
}

@media(max-width:720px){
  .product-modal-dialog{
    width:calc(100% - 10px);
    max-height:calc(100vh - 10px);
    margin:5px auto;
  }

  .detail-page{
    padding:16px 12px 20px;
  }

  .detail-heading{
    padding-right:38px;
    margin-bottom:10px;
  }

  .detail-heading h2{
    font-size:18px;
  }

  .detail-status-top{
    display:none;
  }

  .detail-main{
    grid-template-columns:1fr;
    gap:14px;
  }

  .detail-image-box{
    height:260px;
  }

  .detail-price{
    font-size:22px;
  }

  .detail-option-row{
    grid-template-columns:1fr;
    gap:5px;
  }

  .detail-option-label{
    padding-top:0;
    color:#666;
    font-size:12px;
  }

  .detail-actions{
    grid-template-columns:1fr;
  }

  .detail-related{
    display:block;
  }

  .detail-lower{
    grid-template-columns:1fr;
  }
}


/* ===== V33 - Chi tiết load thẳng trong trang, không popup ===== */
.inline-product-detail{
  width:100%;
  margin-top:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}

.inline-detail-page{
  padding:20px 22px 26px;
}

.inline-detail-topbar{
  display:flex;
  justify-content:flex-start;
  margin-bottom:10px;
}

.inline-back-btn{
  min-height:34px;
  padding:0 12px;
  border:1px solid #d9dce1;
  border-radius:5px;
  background:#fff;
  color:#333;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.inline-back-btn:hover{
  border-color:#ff5a00;
  color:#e65100;
}

/* Không dùng overlay/modal nữa */
.product-modal,
.product-modal-backdrop,
.product-modal-dialog{
  display:none !important;
}

@media(max-width:720px){
  .inline-detail-page{
    padding:14px 10px 18px;
  }
}


/* ===== V34: Detail opens as the page itself ===== */
body.detail-view-active #productGrid{
  display:none !important;
}

/* Hide catalog/search/filter blocks while viewing a product.
   These selectors cover the current page structure without affecting the detail content. */
body.detail-view-active .catalog-toolbar,
body.detail-view-active .catalog-header,
body.detail-view-active .search-area,
body.detail-view-active .filters,
body.detail-view-active .category-tabs,
body.detail-view-active .result-summary{
  display:none !important;
}

body.detail-view-active #inlineProductDetail{
  display:block !important;
  margin-top:0;
  border-left:0;
  border-right:0;
  border-radius:0;
}

body.detail-view-active .inline-detail-page{
  max-width:1180px;
  margin:0 auto;
}

html{
  scroll-behavior:auto;
}


/* ===== V35 - Thông số kỹ thuật tự lấy từ trang nguồn ===== */
.technical-spec-section{
  margin-top:22px;
  border-top:1px solid #ddd;
  background:#fff;
}

.technical-spec-title{
  padding:12px 0 10px;
  font-size:16px;
  font-weight:700;
  border-bottom:1px solid #ddd;
}

.technical-spec-body{
  padding-top:10px;
}

.tech-spec-table{
  border:1px solid #e1e3e6;
  border-bottom:0;
}

.tech-spec-row{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  border-bottom:1px solid #e1e3e6;
}

.tech-spec-label{
  padding:11px 12px;
  background:#f7f7f7;
  font-size:12px;
  font-weight:700;
}

.tech-spec-value{
  padding:11px 13px;
  white-space:pre-line;
  font-size:12px;
  line-height:1.5;
}

.tech-spec-loading,
.tech-spec-empty{
  padding:22px 14px;
  color:#777;
  text-align:center;
  border:1px solid #e1e3e6;
  font-size:12px;
}

@media(max-width:720px){
  .tech-spec-row{
    grid-template-columns:125px minmax(0,1fr);
  }

  .tech-spec-label,
  .tech-spec-value{
    padding:9px;
    font-size:11px;
  }
}


/* =========================================================
   V39 - Giao diện hiện đại, gọn và cân đối hơn
   ========================================================= */

:root{
  --ui-bg:#f5f6f8;
  --ui-card:#ffffff;
  --ui-text:#171717;
  --ui-muted:#6b7280;
  --ui-line:#e7e9ee;
  --ui-soft:#f8f9fb;
  --ui-orange:#ff5a00;
  --ui-orange-dark:#e94f00;
  --ui-green:#16843b;
  --ui-red:#d90000;
  --ui-shadow:0 8px 28px rgba(20,24,32,.07);
}

body{
  background:var(--ui-bg);
  color:var(--ui-text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--ui-line);
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}

.header-inner{
  width:min(1480px,calc(100% - 40px));
  min-height:70px;
}

.brand-logo-wide{
  height:44px;
}

/* Main page */
.page{
  width:min(1480px,calc(100% - 40px));
  padding-top:22px;
}

.page-title{
  margin-bottom:16px;
}

.page-title h1{
  font-size:25px;
  letter-spacing:-.2px;
}

.page-title p{
  margin-top:6px;
  font-size:13px;
}

.toolbar{
  border:1px solid var(--ui-line);
  border-radius:12px;
  padding:12px;
  background:#fff;
  box-shadow:0 3px 12px rgba(20,24,32,.035);
}

.search{
  height:46px;
  border-radius:9px;
  background:#fff;
}

.clear-btn{
  height:46px;
  border-radius:9px;
  font-weight:700;
}

.category-filters{
  margin-top:6px;
  padding:6px 0 2px;
  border-bottom:0;
}

.category-btn{
  padding:7px 11px;
  border-radius:7px;
  color:#555;
  transition:.15s ease;
}

.category-btn:hover{
  background:#f5f5f5;
  color:#111;
}

.category-btn.active{
  color:var(--ui-orange);
  background:#fff3ec;
  text-decoration:none;
}

.category-btn.best-seller-filter{
  margin-left:12px;
  color:#b94700 !important;
  background:#fff7ef;
}

/* Listing cards */
.product-grid{
  margin-top:16px;
  border:0;
  gap:14px;
  background:transparent;
}

.compact-product-card{
  border:1px solid var(--ui-line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 3px 12px rgba(20,24,32,.04);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.compact-product-card:hover,
.compact-product-card:focus{
  transform:translateY(-2px);
  border-color:#dfe2e7;
  box-shadow:0 10px 24px rgba(20,24,32,.08);
}

.compact-product-media{
  height:240px;
  background:#fff;
}

.compact-product-media .product-image{
  padding:18px;
}

.compact-product-body{
  padding:13px 14px 16px;
}

.compact-product-title{
  min-height:42px;
  font-size:15px;
  line-height:1.35;
}

.compact-product-price{
  margin-top:9px;
  font-size:17px;
  color:var(--ui-red);
}

/* ===== Product detail ===== */
body.detail-view-active{
  background:#f4f5f7;
}

body.detail-view-active .page{
  width:100%;
  max-width:none;
  padding:0;
}

body.detail-view-active .page-title,
body.detail-view-active .toolbar,
body.detail-view-active .summary{
  display:none !important;
}

body.detail-view-active #inlineProductDetail{
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
}

body.detail-view-active .inline-detail-page{
  width:min(1280px,calc(100% - 36px));
  max-width:none;
  margin:24px auto 40px;
  padding:0;
}

/* Back bar */
.inline-detail-topbar{
  margin-bottom:12px;
}

.inline-back-btn{
  height:38px;
  padding:0 14px;
  border:1px solid #dfe2e6;
  border-radius:9px;
  background:#fff;
  color:#333;
  font-size:12px;
  box-shadow:0 2px 7px rgba(0,0,0,.03);
}

.inline-back-btn:hover{
  background:#fff7f2;
  border-color:#ffc6a6;
}

/* Main white detail card */
.detail-page{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.detail-breadcrumb{
  margin:0 0 8px;
  color:#777;
  font-size:12px;
}

.detail-heading{
  margin:0 0 14px;
  padding:0;
  align-items:center;
}

.detail-heading h2{
  font-size:25px;
  letter-spacing:-.25px;
}

.detail-status-top{
  padding:7px 11px;
  border-radius:999px;
  background:#edf9f1;
  color:var(--ui-green);
  font-size:12px;
}

.detail-status-top.out{
  background:#f1f2f4;
  color:#777;
}

/* Hero product section */
.detail-main{
  grid-template-columns:360px minmax(0,1fr) 270px;
  gap:22px;
  padding:20px;
  border:1px solid var(--ui-line);
  border-radius:15px;
  background:#fff;
  box-shadow:var(--ui-shadow);
}

.detail-gallery{
  min-width:0;
}

.detail-image-box{
  height:390px;
  border:0;
  border-radius:12px;
  background:#fafafa;
}

.detail-image-box .product-image{
  padding:18px;
}

.detail-info{
  padding:4px 0;
}

.detail-price{
  margin:0 0 7px;
  font-size:28px;
  letter-spacing:-.2px;
  color:var(--ui-red);
}

.detail-choose-text{
  margin-bottom:18px;
  font-size:13px;
  color:#333;
}

.detail-option-row{
  grid-template-columns:96px minmax(0,1fr);
  margin:14px 0;
}

.detail-option-label{
  font-weight:700;
  color:#444;
}

.detail-color-swatch{
  width:40px;
  height:40px;
  border-radius:7px;
  border:1px solid #dfe2e6;
}

.detail-color-swatch span{
  border-radius:4px;
}

.detail-color-swatch.active{
  border-color:var(--ui-orange);
  box-shadow:0 0 0 2px rgba(255,90,0,.15);
}

.detail-color-swatch.active::after{
  background:var(--ui-orange);
}

.detail-memory-btn{
  min-height:38px;
  padding:6px 14px;
  border-radius:8px;
  font-size:12px;
}

.detail-memory-btn.active{
  color:var(--ui-orange-dark);
  border-color:var(--ui-orange);
  background:#fff7f2;
  box-shadow:none;
}

.detail-color-note{
  color:#555;
  font-weight:700;
}

/* Product info box */
.detail-info-box{
  margin-top:20px;
  border:1px solid var(--ui-line);
  border-radius:10px;
  background:#fbfbfc;
}

.detail-info-box-title{
  display:block;
  position:static;
  margin:0;
  padding:10px 12px;
  border-bottom:1px solid var(--ui-line);
  background:#f6f7f9;
  font-size:13px;
}

.detail-info-line{
  padding:9px 12px;
  border-top:0;
  border-bottom:1px solid #eceef2;
}

.detail-info-line:last-child{
  border-bottom:0;
}

/* Similar products */
.detail-related{
  border:1px solid var(--ui-line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.detail-related-title{
  padding:11px 12px;
  background:#fff6ef;
  color:#a84400;
  border-bottom:1px solid #ffe0cc;
  font-size:13px;
}

.detail-related-item{
  padding:10px;
  background:#fff;
}

.detail-related-item:hover{
  background:#fafafa;
}

.detail-related-thumb{
  width:66px;
  height:66px;
  border-radius:7px;
}

.detail-related-name{
  font-size:11px;
  line-height:1.4;
}

.detail-related-price{
  font-size:12px;
}

/* Lower blocks */
.detail-lower{
  gap:18px;
  margin-top:18px;
  padding-top:0;
  border-top:0;
}

.detail-specs,
.detail-note{
  border:1px solid var(--ui-line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 4px 16px rgba(20,24,32,.035);
}

.detail-section-title{
  padding:12px 14px;
  background:#f8f9fb;
  font-size:14px;
}

.detail-spec-row{
  padding:11px 14px;
  border-bottom:1px solid #eceef2;
}

.detail-note-body{
  padding:14px;
  line-height:1.6;
}

/* Technical specs */
.technical-spec-section{
  margin-top:18px;
  padding:0;
  border:1px solid var(--ui-line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 4px 16px rgba(20,24,32,.035);
}

.technical-spec-title{
  padding:13px 15px;
  background:#f8f9fb;
  border-bottom:1px solid var(--ui-line);
  font-size:16px;
}

.technical-spec-body{
  padding:0;
}

.tech-spec-table{
  border:0;
}

.tech-spec-row{
  grid-template-columns:200px minmax(0,1fr);
  border-bottom:1px solid #eceef2;
}

.tech-spec-row:last-child{
  border-bottom:0;
}

.tech-spec-label{
  padding:13px 15px;
  background:#fafbfc;
  border-right:1px solid #eceef2;
  font-size:12px;
}

.tech-spec-value{
  padding:13px 15px;
  line-height:1.6;
}

.tech-spec-loading,
.tech-spec-empty{
  border:0;
  padding:28px 16px;
  background:#fff;
}

/* Footer less intrusive */
.footer{
  margin-top:26px;
  padding:20px 0 6px;
  border-top:1px solid var(--ui-line);
}

/* Dark mode detail compatibility */
body.dark.detail-view-active{
  background:#111827;
}
body.dark .detail-main,
body.dark .detail-specs,
body.dark .detail-note,
body.dark .technical-spec-section,
body.dark .detail-related,
body.dark .inline-back-btn{
  background:#182235;
  border-color:#2b3950;
}
body.dark .detail-image-box{
  background:#111827;
}
body.dark .detail-info-box,
body.dark .detail-info-box-title,
body.dark .detail-section-title,
body.dark .technical-spec-title,
body.dark .tech-spec-label{
  background:#1f2a3c;
  border-color:#2b3950;
}
body.dark .detail-heading h2,
body.dark .detail-option-label,
body.dark .detail-choose-text{
  color:#f3f4f6;
}

/* Responsive */
@media(max-width:1100px){
  body.detail-view-active .inline-detail-page{
    width:min(100% - 24px,1000px);
  }

  .detail-main{
    grid-template-columns:310px minmax(0,1fr);
  }

  .detail-related{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .detail-related-title{
    grid-column:1 / -1;
  }
}

@media(max-width:720px){
  .header-inner,
  .page{
    width:100%;
  }

  body.detail-view-active .inline-detail-page{
    width:100%;
    margin:0;
  }

  .inline-detail-topbar{
    margin:8px 10px;
  }

  .detail-breadcrumb,
  .detail-heading{
    margin-left:12px;
    margin-right:12px;
  }

  .detail-heading h2{
    font-size:20px;
  }

  .detail-main{
    margin:0 8px;
    padding:12px;
    border-radius:12px;
    grid-template-columns:1fr;
  }

  .detail-image-box{
    height:300px;
  }

  .detail-price{
    font-size:24px;
  }

  .detail-option-row{
    grid-template-columns:1fr;
    gap:6px;
  }

  .detail-lower{
    grid-template-columns:1fr;
    margin:12px 8px 0;
  }

  .technical-spec-section{
    margin:12px 8px 0;
  }

  .tech-spec-row{
    grid-template-columns:118px minmax(0,1fr);
  }

  .tech-spec-label,
  .tech-spec-value{
    padding:10px;
    font-size:11px;
  }

  .product-grid{
    gap:8px;
  }

  .compact-product-card{
    border-radius:9px;
  }

  .compact-product-media{
    height:180px;
  }
}


/* V40 - Tăng kích thước khu vực Sản phẩm tương tự */
@media (min-width:1101px){
  .detail-main{
    grid-template-columns:360px minmax(0,1fr) 340px;
  }

  .detail-related-title{
    padding:13px 15px;
    font-size:14px;
    font-weight:700;
  }

  .detail-related-item{
    grid-template-columns:84px minmax(0,1fr);
    gap:12px;
    padding:12px;
    min-height:108px;
  }

  .detail-related-thumb{
    width:84px;
    height:84px;
  }

  .detail-related-name{
    font-size:13px;
    line-height:1.35;
    font-weight:700;
  }

  .detail-related-price{
    margin-top:5px;
    font-size:14px;
    font-weight:700;
  }
}


/* =========================================================
   V41 - Tối ưu riêng cho mobile
   ========================================================= */
@media(max-width:720px){

  html,body{
    overflow-x:hidden;
  }

  body{
    background:#f5f6f8;
  }

  /* Header gọn */
  .site-header{
    position:sticky;
    top:0;
    z-index:50;
  }

  .header-inner{
    min-height:58px;
    padding:8px 12px;
  }

  .brand-logo-wide{
    height:38px;
  }

  /* Trang chi tiết */
  body.detail-view-active .inline-detail-page{
    width:100%;
    margin:0;
    padding:0 10px 22px;
  }

  .inline-detail-topbar{
    margin:10px 0 8px;
  }

  .inline-back-btn{
    height:36px;
    padding:0 12px;
    border-radius:8px;
    font-size:12px;
  }

  .detail-breadcrumb{
    margin:0 0 5px;
    font-size:11px;
  }

  .detail-heading{
    margin:0 0 10px;
    padding:0;
    display:block;
  }

  .detail-heading h2{
    margin:0;
    font-size:20px;
    line-height:1.3;
  }

  .detail-status-top{
    display:inline-flex;
    margin-top:8px;
    padding:5px 9px;
    font-size:11px;
  }

  /* Hero card */
  .detail-main{
    display:block;
    margin:0;
    padding:12px;
    border-radius:12px;
    box-shadow:0 4px 16px rgba(20,24,32,.06);
  }

  .detail-gallery{
    margin-bottom:12px;
  }

  .detail-image-box{
    height:280px;
    border-radius:10px;
    background:#fafafa;
  }

  .detail-image-box .product-image{
    padding:10px;
  }

  .detail-info{
    padding:0;
  }

  .detail-price{
    margin-top:2px;
    font-size:25px;
  }

  .detail-choose-text{
    margin:5px 0 12px;
    font-size:12px;
  }

  .detail-option-row{
    display:grid;
    grid-template-columns:86px minmax(0,1fr);
    gap:8px;
    margin:10px 0;
  }

  .detail-option-label{
    padding-top:7px;
    font-size:12px;
  }

  .detail-color-options,
  .detail-memory-options{
    gap:6px;
  }

  .detail-color-swatch{
    width:36px;
    height:36px;
  }

  .detail-memory-btn{
    min-height:34px;
    padding:5px 10px;
    font-size:11px;
  }

  .detail-color-note{
    font-size:11px;
  }

  .detail-info-box{
    margin-top:14px;
  }

  .detail-info-box-title{
    padding:9px 10px;
    font-size:12px;
  }

  .detail-info-line{
    padding:8px 10px;
    font-size:11px;
  }

  /* Sản phẩm tương tự - chuyển thành carousel ngang */
  .detail-related{
    display:block !important;
    width:100%;
    margin-top:14px;
    border-radius:10px;
    overflow:hidden;
  }

  .detail-related-title{
    padding:11px 12px;
    font-size:13px;
  }

  .detail-related{
    white-space:normal;
  }

  .detail-related-item{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    width:100%;
    min-height:92px;
    padding:9px 10px;
    gap:10px;
  }

  .detail-related-thumb{
    width:76px;
    height:76px;
  }

  .detail-related-name{
    font-size:12px;
    line-height:1.35;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .detail-related-price{
    margin-top:4px;
    font-size:13px;
  }

  /* Hai khối dưới xếp dọc, đỡ chiếm diện tích */
  .detail-lower{
    display:block;
    margin:12px 0 0;
  }

  .detail-specs,
  .detail-note{
    margin-bottom:12px;
    border-radius:10px;
  }

  .detail-section-title{
    padding:11px 12px;
    font-size:14px;
  }

  .detail-spec-row{
    grid-template-columns:105px minmax(0,1fr);
    padding:10px 12px;
    font-size:12px;
  }

  .detail-note-body{
    padding:12px;
    font-size:12px;
    line-height:1.55;
  }

  /* Thông số kỹ thuật */
  .technical-spec-section{
    margin:12px 0 0;
    border-radius:10px;
  }

  .technical-spec-title{
    padding:12px;
    font-size:15px;
  }

  .tech-spec-row{
    grid-template-columns:105px minmax(0,1fr);
  }

  .tech-spec-label{
    padding:10px 9px;
    font-size:11px;
    line-height:1.35;
  }

  .tech-spec-value{
    padding:10px;
    font-size:11px;
    line-height:1.45;
  }

  /* Footer */
  .footer{
    margin-top:14px;
    padding-top:14px;
  }

  /* Danh sách sản phẩm ngoài */
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:0 8px 10px;
  }

  .compact-product-card{
    border-radius:10px;
  }

  .compact-product-media{
    height:165px;
  }

  .compact-product-media .product-image{
    padding:8px;
  }

  .compact-product-body{
    padding:9px 9px 11px;
  }

  .compact-product-title{
    min-height:38px;
    font-size:12px;
    line-height:1.3;
  }

  .compact-product-price{
    margin-top:6px;
    font-size:14px;
  }
}

/* Điện thoại màn hình nhỏ */
@media(max-width:390px){
  .detail-image-box{
    height:245px;
  }

  .detail-heading h2{
    font-size:18px;
  }

  .detail-price{
    font-size:22px;
  }

  .detail-option-row{
    grid-template-columns:78px minmax(0,1fr);
  }

  .detail-color-swatch{
    width:34px;
    height:34px;
  }

  .product-grid{
    gap:6px;
  }

  .compact-product-media{
    height:150px;
  }
}


/* =========================================================
   V42 - Xây lại hoàn toàn phần đầu trang / bộ lọc
   ========================================================= */

/* Nền tổng thể */
body{
  background:#f4f6f8;
}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid #eceef1;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}

.header-inner{
  width:min(1440px,calc(100% - 36px));
  min-height:68px;
}

.brand-logo-wide{
  height:42px;
}

/* Khung đầu trang như một website thật */
.catalog-shell{
  width:100%;
  margin:20px 0 18px;
  padding:22px;
  border:1px solid #e7e9ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 28px rgba(20,24,32,.05);
}

/* Title row */
.page-title{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:end;
  margin:0 0 18px;
}

.page-title h1{
  margin:0;
  font-size:26px;
  line-height:1.2;
  letter-spacing:-.35px;
}

.page-title p{
  margin:7px 0 0;
  font-size:13px;
  color:#7a8089;
}

.updated-at{
  align-self:end;
  padding-bottom:2px;
  font-size:12px;
  color:#8b9199;
  white-space:nowrap;
}

/* Search row */
.toolbar{
  position:static;
  top:auto;
  display:block;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 58px;
  gap:10px;
  align-items:center;
}

.search{
  height:48px;
  padding:0 16px;
  border:1px solid #dfe3e8;
  border-radius:11px;
  background:#fbfcfd;
  font-size:14px;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.search:focus{
  background:#fff;
  border-color:#ff8b4a;
  box-shadow:0 0 0 3px rgba(255,90,0,.10);
  outline:none;
}

.clear-btn{
  height:48px;
  padding:0 14px;
  border:1px solid #dfe3e8;
  border-radius:11px;
  background:#fff;
  color:#444;
  font-size:13px;
  font-weight:700;
}

.clear-btn:hover{
  border-color:#ffb58c;
  background:#fff7f2;
  color:#d94b00;
}

/* Brand filter section */
.brand-filter-block{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #eef0f3;
}

.filter-label{
  margin-bottom:10px;
  color:#8a9099;
  font-size:11px;
  font-weight:700;
  letter-spacing:.35px;
  text-transform:uppercase;
}

.category-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:0;
  border:0;
}

.category-btn{
  min-height:36px;
  padding:7px 14px;
  border:1px solid transparent;
  border-radius:999px;
  background:#f6f7f9;
  color:#4d535c;
  font-size:12px;
  font-weight:700;
  text-decoration:none !important;
  transition:all .15s ease;
}

.category-btn:hover{
  background:#fff1e8;
  color:#d94b00;
}

.category-btn.active{
  background:#ff5a00;
  color:#fff;
  border-color:#ff5a00;
  box-shadow:0 4px 12px rgba(255,90,0,.18);
}

.category-btn.best-seller-filter{
  margin-left:8px;
  background:#fff7e7;
  color:#a95900 !important;
  border:1px solid #ffe1aa;
}

.category-btn.best-seller-filter.active{
  background:#ff9f2f;
  color:#fff !important;
  border-color:#ff9f2f;
}

/* Summary moved into subtle footer line */
.summary{
  margin-top:14px;
  padding-top:12px;
  border-top:1px dashed #e5e8ec;
  color:#8b9199;
  font-size:12px;
}

/* Products sit visually separate from control panel */
.product-grid{
  margin-top:0;
}

/* Desktop spacing */
@media(min-width:1000px){
  .page{
    width:min(1440px,calc(100% - 36px));
  }
}

/* Tablet/mobile */
@media(max-width:720px){
  .header-inner{
    width:100%;
    padding:8px 12px;
  }

  .page{
    width:100%;
    padding:0 10px 14px;
  }

  .catalog-shell{
    margin:10px 0 12px;
    padding:14px;
    border-radius:12px;
  }

  .page-title{
    display:block;
    margin-bottom:12px;
  }

  .page-title h1{
    font-size:21px;
  }

  .page-title p{
    font-size:12px;
  }

  .updated-at{
    display:block;
    margin-top:7px;
    padding:0;
    font-size:11px;
  }

  .search-row{
    grid-template-columns:minmax(0,1fr) 50px;
    gap:7px;
  }

  .search,
  .clear-btn{
    height:44px;
  }

  .search{
    padding:0 13px;
    font-size:13px;
  }

  .clear-btn{
    padding:0;
    font-size:11px;
  }

  .brand-filter-block{
    margin-top:13px;
    padding-top:13px;
  }

  .filter-label{
    margin-bottom:8px;
    font-size:10px;
  }

  .category-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:7px;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .category-filters::-webkit-scrollbar{
    display:none;
  }

  .category-btn{
    flex:0 0 auto;
    min-height:34px;
    padding:6px 12px;
    font-size:11px;
  }

  .category-btn.best-seller-filter{
    margin-left:0;
  }

  .summary{
    margin-top:10px;
    padding-top:9px;
    font-size:11px;
  }
}


/* =========================================================
   V44 - Header kiểu website bán hàng
   ========================================================= */

:root{
  --brand-orange:#ff5a00;
  --brand-orange-2:#ff7200;
  --brand-orange-soft:#fff2e9;
  --page-bg:#f5f6f8;
  --card:#fff;
  --text:#181818;
  --muted:#6f7680;
  --line:#e7e9ed;
}

html,body{
  color-scheme:light;
}

body{
  margin:0;
  background:var(--page-bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Old header/theme hidden */
.site-header,
.theme-toggle,
#darkMode{
  display:none !important;
}

/* Main orange ecommerce navbar */
.shop-header{
  position:sticky;
  top:0;
  z-index:100;
  background:linear-gradient(90deg,var(--brand-orange),var(--brand-orange-2));
  box-shadow:0 3px 14px rgba(126,48,0,.14);
}

.shop-header-inner{
  width:min(1480px,calc(100% - 32px));
  min-height:72px;
  margin:0 auto;
  display:grid;
  grid-template-columns:190px 118px 178px minmax(280px,1fr) auto;
  gap:12px;
  align-items:center;
}

.shop-brand{
  display:flex;
  align-items:center;
  height:54px;
}

.shop-brand img{
  display:block;
  width:175px;
  max-height:50px;
  object-fit:contain;
  border-radius:7px;
}

.shop-nav-btn{
  height:44px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:8px;
  background:rgba(255,255,255,.19);
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}

.shop-nav-btn:hover{
  background:rgba(255,255,255,.27);
}

.nav-icon{
  font-size:18px;
}

.shop-location{
  height:44px;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:9px;
  border-radius:8px;
  background:rgba(255,255,255,.16);
  color:#fff;
}

.location-icon{
  font-size:23px;
}

.location-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.location-copy small,
.shop-action small{
  font-size:10px;
  color:rgba(255,255,255,.83);
}

.location-copy strong,
.shop-action strong{
  margin-top:2px;
  font-size:12px;
  color:#fff;
}

.shop-search{
  position:relative;
  height:44px;
}

.shop-search input{
  width:100%;
  height:44px;
  padding:0 70px 0 16px;
  border:0;
  border-radius:8px;
  outline:none;
  background:#fff;
  color:#222;
  font-size:14px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.03);
}

.shop-search input:focus{
  box-shadow:0 0 0 3px rgba(255,255,255,.23);
}

.search-symbol{
  position:absolute;
  right:13px;
  top:50%;
  transform:translateY(-50%);
  font-size:23px;
  color:#f15a12;
  pointer-events:none;
}

#clearSearch{
  position:absolute;
  right:42px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#f0f1f3;
  color:#737983;
  line-height:24px;
  cursor:pointer;
}

.shop-actions{
  display:flex;
  align-items:center;
  gap:17px;
  color:#fff;
}

.shop-action{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

.shop-action > span:last-child{
  display:flex;
  flex-direction:column;
}

.action-icon{
  font-size:24px;
}

.shop-icon-action{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:23px;
}

/* Main area */
.page{
  width:min(1480px,calc(100% - 32px));
  margin:0 auto;
  padding:0 0 30px;
}

/* Hero */
.catalog-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:32px 0 22px;
}

.hero-kicker{
  margin-bottom:7px;
  color:var(--brand-orange);
  font-size:11px;
  font-weight:800;
  letter-spacing:1.25px;
}

.catalog-hero h1{
  margin:0;
  font-size:34px;
  line-height:1.15;
  letter-spacing:-.6px;
}

.catalog-hero p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
}

.hero-trust{
  display:flex;
  border:1px solid #ffe0cb;
  border-radius:12px;
  background:#fff8f3;
  overflow:hidden;
}

.trust-item{
  min-width:175px;
  padding:13px 17px;
  display:flex;
  flex-direction:column;
}

.trust-item + .trust-item{
  border-left:1px solid #ffe0cb;
}

.trust-item strong{
  color:#dd5107;
  font-size:12px;
}

.trust-item span{
  margin-top:3px;
  color:#777;
  font-size:11px;
}

/* Filter control card */
.catalog-controls{
  margin-bottom:18px;
  padding:18px 20px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 22px rgba(25,29,35,.05);
}

.controls-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.filter-label{
  margin:0 0 9px;
  color:#818791;
  font-size:10px;
  font-weight:800;
  letter-spacing:.55px;
  text-transform:uppercase;
}

.category-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  border:0;
}

.category-btn{
  min-height:38px;
  padding:7px 16px;
  border:1px solid #edf0f3;
  border-radius:9px;
  background:#f7f8fa;
  color:#454b53;
  font-size:12px;
  font-weight:700;
  text-decoration:none !important;
  cursor:pointer;
}

.category-btn:hover{
  border-color:#ffd2b7;
  background:#fff5ef;
  color:#d84a00;
}

.category-btn.active{
  border-color:var(--brand-orange);
  background:var(--brand-orange);
  color:#fff;
  box-shadow:0 4px 12px rgba(255,90,0,.18);
}

.category-btn.best-seller-filter{
  margin-left:8px;
  border-color:#ffd9a4;
  background:#fff7e9;
  color:#b95e00 !important;
}

.category-btn.best-seller-filter.active{
  border-color:#ff9a28;
  background:#ff9a28;
  color:#fff !important;
}

.updated{
  color:#8a9099;
  font-size:11px;
  white-space:nowrap;
}

.controls-bottom{
  margin-top:13px;
  padding-top:11px;
  border-top:1px dashed #e8eaed;
}

.summary{
  margin:0;
  padding:0;
  border:0;
  color:#7f858e;
  font-size:11px;
}

/* Detail mode: keep ecommerce header, hide catalog landing only */
body.detail-view-active .catalog-hero,
body.detail-view-active .catalog-controls{
  display:none !important;
}

body.detail-view-active .page{
  width:min(1480px,calc(100% - 32px));
  padding-top:18px;
}

/* Remove any legacy dark styles visually */
body.dark{
  background:var(--page-bg) !important;
  color:var(--text) !important;
}

/* Tablet */
@media(max-width:1180px){
  .shop-header-inner{
    grid-template-columns:155px 110px minmax(260px,1fr) auto;
  }

  .shop-location{
    display:none;
  }

  .shop-brand img{
    width:145px;
  }

  .shop-action:nth-child(2){
    display:none;
  }
}

/* Mobile */
@media(max-width:720px){
  .shop-header{
    position:sticky;
    top:0;
  }

  .shop-header-inner{
    width:100%;
    min-height:62px;
    padding:7px 10px;
    box-sizing:border-box;
    display:grid;
    grid-template-columns:48px minmax(0,1fr) 34px;
    gap:8px;
  }

  .shop-brand{
    width:48px;
    height:48px;
  }

  .shop-brand img{
    width:48px;
    height:48px;
    object-fit:cover;
    object-position:left;
    border-radius:9px;
  }

  .shop-nav-btn,
  .shop-location,
  .shop-action,
  .shop-icon-action:first-of-type{
    display:none;
  }

  .shop-search{
    height:44px;
  }

  .shop-search input{
    height:44px;
    padding-left:13px;
    font-size:13px;
  }

  .shop-actions{
    display:block;
  }

  .shop-icon-action{
    width:34px;
    height:44px;
    font-size:23px;
  }

  .page{
    width:100%;
    padding:0 9px 20px;
    box-sizing:border-box;
  }

  .catalog-hero{
    padding:18px 4px 13px;
  }

  .catalog-hero h1{
    font-size:24px;
  }

  .catalog-hero p{
    font-size:12px;
    line-height:1.45;
  }

  .hero-trust{
    display:none;
  }

  .catalog-controls{
    margin-bottom:12px;
    padding:12px;
    border-radius:11px;
  }

  .controls-top{
    display:block;
  }

  .updated{
    margin-top:10px;
  }

  .category-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .category-filters::-webkit-scrollbar{
    display:none;
  }

  .category-btn{
    flex:0 0 auto;
    min-height:34px;
    padding:6px 12px;
    font-size:11px;
  }

  .category-btn.best-seller-filter{
    margin-left:0;
  }

  body.detail-view-active .page{
    width:100%;
    padding-top:8px;
  }
}


/* =========================================================
   V45 - Header thương mại điện tử thực sự
   ========================================================= */

:root{
  --v45-orange:#ff5a00;
  --v45-orange2:#ff6f00;
  --v45-bg:#f5f6f8;
  --v45-card:#fff;
  --v45-text:#191919;
  --v45-muted:#717780;
  --v45-line:#e6e9ed;
}

html,body{
  color-scheme:light;
}

body{
  margin:0;
  background:var(--v45-bg);
  color:var(--v45-text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Completely suppress old page header / dark theme controls */
.site-header,
.catalog-shell,
.theme-toggle,
#darkMode{
  display:none !important;
}

/* Orange top bar */
.commerce-header{
  position:sticky;
  top:0;
  z-index:100;
  width:100%;
  background:linear-gradient(90deg,var(--v45-orange),var(--v45-orange2));
  box-shadow:0 3px 14px rgba(120,45,0,.16);
}

.commerce-header-inner{
  width:min(1500px,calc(100% - 28px));
  min-height:72px;
  margin:0 auto;
  display:grid;
  grid-template-columns:190px 120px 170px minmax(280px,1fr) 135px 125px 38px 38px;
  gap:10px;
  align-items:center;
}

.commerce-logo{
  display:flex;
  align-items:center;
  height:50px;
}

.commerce-logo img{
  width:176px;
  max-height:48px;
  display:block;
  object-fit:contain;
  border-radius:7px;
}

.commerce-category-btn{
  height:44px;
  border:0;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:rgba(255,255,255,.20);
  color:#fff;
  font-size:13px;
  cursor:pointer;
}

.commerce-category-btn:hover{
  background:rgba(255,255,255,.28);
}

.commerce-location,
.commerce-contact,
.commerce-store{
  height:44px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
}

.commerce-location{
  padding:0 11px;
  border-radius:8px;
  background:rgba(255,255,255,.16);
}

.commerce-location > span:last-child,
.commerce-contact > span:last-child,
.commerce-store > span:last-child{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.commerce-location small,
.commerce-contact small,
.commerce-store small{
  color:rgba(255,255,255,.82);
  font-size:10px;
  line-height:1.15;
}

.commerce-location strong,
.commerce-contact strong,
.commerce-store strong{
  margin-top:2px;
  color:#fff;
  font-size:12px;
  line-height:1.15;
}

.commerce-location-icon,
.commerce-contact-icon,
.commerce-store-icon{
  font-size:23px;
}

.commerce-search{
  position:relative;
  height:44px;
}

.commerce-search input{
  width:100%;
  height:44px;
  box-sizing:border-box;
  padding:0 70px 0 16px;
  border:0;
  border-radius:8px;
  background:#fff;
  color:#222;
  font-size:14px;
  outline:none;
}

.commerce-search input:focus{
  box-shadow:0 0 0 3px rgba(255,255,255,.22);
}

#clearSearch{
  position:absolute;
  right:42px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#eff1f3;
  color:#717780;
  cursor:pointer;
}

.commerce-search-icon{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:#f15a10;
  font-size:22px;
  pointer-events:none;
}

.commerce-mini-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:22px;
}

.page{
  width:min(1500px,calc(100% - 30px));
  margin:0 auto;
  padding:0 0 30px;
}

/* Website hero */
.store-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:30px 0 22px;
}

.store-hero-kicker{
  margin-bottom:7px;
  color:var(--v45-orange);
  font-size:11px;
  font-weight:800;
  letter-spacing:1.2px;
}

.store-hero h1{
  margin:0;
  font-size:34px;
  line-height:1.15;
  letter-spacing:-.55px;
}

.store-hero p{
  margin:8px 0 0;
  color:var(--v45-muted);
  font-size:14px;
}

.store-benefits{
  display:flex;
  border:1px solid #ffe0cb;
  border-radius:12px;
  background:#fff8f3;
  overflow:hidden;
}

.store-benefit{
  min-width:180px;
  padding:13px 17px;
  display:flex;
  flex-direction:column;
}

.store-benefit + .store-benefit{
  border-left:1px solid #ffe0cb;
}

.store-benefit strong{
  color:#dd5005;
  font-size:12px;
}

.store-benefit span{
  margin-top:3px;
  color:#777;
  font-size:11px;
}

/* Filter card */
.store-filter-card{
  margin-bottom:18px;
  padding:18px 20px 14px;
  border:1px solid var(--v45-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 22px rgba(24,28,34,.05);
}

.store-filter-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.store-filter-label{
  margin-bottom:9px;
  color:#818791;
  font-size:10px;
  font-weight:800;
  letter-spacing:.55px;
  text-transform:uppercase;
}

.category-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  border:0;
}

.category-btn{
  min-height:38px;
  padding:7px 16px;
  border:1px solid #edf0f3;
  border-radius:9px;
  background:#f7f8fa;
  color:#454b53;
  font-size:12px;
  font-weight:700;
  text-decoration:none !important;
  cursor:pointer;
}

.category-btn:hover{
  border-color:#ffd1b5;
  background:#fff5ef;
  color:#d84a00;
}

.category-btn.active{
  border-color:var(--v45-orange);
  background:var(--v45-orange);
  color:#fff;
  box-shadow:0 4px 12px rgba(255,90,0,.18);
}

.category-btn.best-seller-filter{
  margin-left:8px;
  border-color:#ffd9a4;
  background:#fff7e9;
  color:#b95d00 !important;
}

.category-btn.best-seller-filter.active{
  background:#ff992a;
  border-color:#ff992a;
  color:#fff !important;
}

.store-updated{
  color:#8a9099;
  font-size:11px;
  white-space:nowrap;
}

.store-filter-bottom{
  margin-top:13px;
  padding-top:11px;
  border-top:1px dashed #e8eaed;
}

.summary{
  margin:0;
  padding:0;
  border:0;
  color:#7d848e;
  font-size:11px;
}

/* Detail page keeps orange nav, hides hero/filter */
body.detail-view-active .store-hero,
body.detail-view-active .store-filter-card{
  display:none !important;
}

body.detail-view-active .page{
  padding-top:18px;
}

@media(max-width:1200px){
  .commerce-header-inner{
    grid-template-columns:155px 108px minmax(250px,1fr) 130px 38px 38px;
  }

  .commerce-location,
  .commerce-store{
    display:none;
  }

  .commerce-logo img{
    width:145px;
  }
}

@media(max-width:720px){
  .commerce-header-inner{
    width:100%;
    min-height:62px;
    padding:7px 10px;
    box-sizing:border-box;
    grid-template-columns:48px minmax(0,1fr) 34px;
    gap:8px;
  }

  .commerce-logo{
    width:48px;
    height:48px;
  }

  .commerce-logo img{
    width:48px;
    height:48px;
    object-fit:cover;
    object-position:left;
    border-radius:9px;
  }

  .commerce-category-btn,
  .commerce-location,
  .commerce-contact,
  .commerce-store,
  .commerce-mini-icon:first-of-type{
    display:none;
  }

  .commerce-search{
    height:44px;
  }

  .commerce-search input{
    height:44px;
    padding-left:13px;
    font-size:13px;
  }

  .commerce-mini-icon{
    height:44px;
  }

  .page{
    width:100%;
    padding:0 9px 20px;
    box-sizing:border-box;
  }

  .store-hero{
    padding:17px 4px 13px;
  }

  .store-hero h1{
    font-size:24px;
  }

  .store-hero p{
    font-size:12px;
    line-height:1.45;
  }

  .store-benefits{
    display:none;
  }

  .store-filter-card{
    padding:12px;
    border-radius:11px;
  }

  .store-filter-top{
    display:block;
  }

  .store-updated{
    margin-top:10px;
  }

  .category-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .category-filters::-webkit-scrollbar{
    display:none;
  }

  .category-btn{
    flex:0 0 auto;
    min-height:34px;
    padding:6px 12px;
    font-size:11px;
  }

  .category-btn.best-seller-filter{
    margin-left:0;
  }
}


/* =========================================================
   V46 - Header tối giản, cân đối, giống website bán hàng thật
   ========================================================= */

.commerce-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#ffffff !important;
  border-bottom:1px solid #eceef2;
  box-shadow:0 2px 10px rgba(20,24,32,.04);
}

.commerce-header::before{
  content:"";
  display:block;
  height:4px;
  background:#ff5a00;
}

.commerce-header-inner{
  width:min(1380px,calc(100% - 36px));
  min-height:76px;
  margin:0 auto;
  display:grid;
  grid-template-columns:170px 104px minmax(360px,1fr) auto;
  gap:14px;
  align-items:center;
}

/* logo */
.commerce-logo{
  height:52px;
  display:flex;
  align-items:center;
}

.commerce-logo img{
  width:160px;
  max-height:46px;
  object-fit:contain;
  border-radius:8px;
}

/* category */
.commerce-category-btn{
  height:42px;
  padding:0 14px;
  border:1px solid #ffd6bf;
  border-radius:9px;
  background:#fff7f2;
  color:#df4d00;
  font-size:12px;
  font-weight:700;
}

.commerce-category-btn span{
  font-size:16px;
}

.commerce-category-btn:hover{
  background:#fff0e7;
}

/* hide the location block from desktop header; too much clutter */
.commerce-location{
  display:none !important;
}

/* search */
.commerce-search{
  height:44px;
}

.commerce-search input{
  height:44px;
  border:1px solid #dfe3e8;
  border-radius:10px;
  background:#f9fafb;
  padding:0 72px 0 15px;
  font-size:13px;
  color:#222;
  transition:.15s ease;
}

.commerce-search input:focus{
  background:#fff;
  border-color:#ff8d50;
  box-shadow:0 0 0 3px rgba(255,90,0,.10);
}

#clearSearch{
  right:42px;
  background:#eef0f2;
}

.commerce-search-icon{
  right:13px;
  color:#ff5a00;
}

/* actions grouped on right */
.commerce-header-inner > .commerce-contact,
.commerce-header-inner > .commerce-store,
.commerce-header-inner > .commerce-mini-icon{
  display:none;
}

.commerce-header-inner::after{
  content:"Tư vấn  |  Cửa hàng Quy Nhơn";
  justify-self:end;
  color:#555;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

/* main top area */
.store-hero{
  padding:24px 0 18px;
}

.store-hero-kicker{
  display:none;
}

.store-hero h1{
  font-size:30px;
  letter-spacing:-.4px;
}

.store-hero p{
  margin-top:6px;
  font-size:13px;
}

/* benefits smaller and cleaner */
.store-benefits{
  border:0;
  background:transparent;
  gap:10px;
}

.store-benefit{
  min-width:155px;
  padding:10px 13px;
  border:1px solid #ffe0cb;
  border-radius:10px;
  background:#fff8f3;
}

.store-benefit + .store-benefit{
  border-left:1px solid #ffe0cb;
}

.store-benefit strong{
  font-size:11px;
}

.store-benefit span{
  font-size:10px;
}

/* filter card simpler */
.store-filter-card{
  padding:14px 16px 12px;
  border-radius:12px;
  box-shadow:0 4px 16px rgba(20,24,32,.04);
}

.category-btn{
  min-height:35px;
  padding:6px 14px;
  border-radius:8px;
}

.store-filter-bottom{
  margin-top:10px;
  padding-top:9px;
}

/* Tablet */
@media(max-width:1050px){
  .commerce-header-inner{
    grid-template-columns:145px 96px minmax(260px,1fr);
  }

  .commerce-header-inner::after{
    display:none;
  }

  .commerce-logo img{
    width:140px;
  }
}

/* Mobile */
@media(max-width:720px){
  .commerce-header::before{
    height:3px;
  }

  .commerce-header-inner{
    width:100%;
    min-height:64px;
    padding:7px 10px;
    box-sizing:border-box;
    display:grid;
    grid-template-columns:46px minmax(0,1fr);
    gap:8px;
  }

  .commerce-logo{
    width:46px;
    height:46px;
  }

  .commerce-logo img{
    width:46px;
    height:46px;
    object-fit:cover;
    object-position:left;
    border-radius:9px;
  }

  .commerce-category-btn{
    display:none;
  }

  .commerce-header-inner::after{
    display:none;
  }

  .commerce-search{
    height:42px;
  }

  .commerce-search input{
    height:42px;
    font-size:12px;
  }

  .store-hero{
    padding:15px 2px 11px;
  }

  .store-hero h1{
    font-size:22px;
  }

  .store-benefits{
    display:none;
  }
}


/* =========================================================
   V47 - Card có trạng thái + Xem chi tiết
   ========================================================= */
.compact-product-meta{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #eef0f3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.compact-stock{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.compact-stock.in-stock{
  background:#edf9f1;
  color:#16843b;
}

.compact-stock.out-stock{
  background:#f1f2f4;
  color:#7a7f87;
}

.compact-detail-btn{
  min-height:32px;
  padding:0 12px;
  border:1px solid #ff5a00;
  border-radius:7px;
  background:#fff;
  color:#e34e00;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}

.compact-detail-btn:hover{
  background:#ff5a00;
  color:#fff;
}

@media(max-width:720px){
  .compact-product-meta{
    margin-top:9px;
    padding-top:8px;
    gap:6px;
  }

  .compact-stock{
    min-height:26px;
    padding:0 7px;
    font-size:10px;
  }

  .compact-detail-btn{
    min-height:29px;
    padding:0 8px;
    font-size:10px;
  }
}


/* =========================================================
   V49 - Xây lại hoàn toàn khu vực tiêu đề + hãng
   ========================================================= */

.catalog-overview{
  margin:24px 0 18px;
  overflow:hidden;
  border:1px solid #e7e9ed;
  border-radius:16px;
  background:#fff;
  box-shadow:0 7px 24px rgba(20,24,32,.045);
}

.catalog-overview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:20px 22px 18px;
}

.catalog-title-wrap{
  min-width:0;
}

.catalog-eyebrow{
  display:block;
  margin-bottom:5px;
  color:#ff5a00;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.2px;
}

.catalog-title-wrap h1{
  margin:0;
  font-size:27px;
  line-height:1.18;
  letter-spacing:-.4px;
}

.catalog-title-wrap p{
  margin:6px 0 0;
  color:#7a8089;
  font-size:12px;
}

.catalog-update-box{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:185px;
  padding:10px 13px;
  border:1px solid #eceef2;
  border-radius:10px;
  background:#fafbfc;
}

.update-dot{
  width:9px;
  height:9px;
  flex:0 0 auto;
  border-radius:50%;
  background:#22a447;
  box-shadow:0 0 0 4px #e8f7ed;
}

.catalog-update-box > div{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.catalog-update-box small{
  color:#8a9099;
  font-size:10px;
}

.catalog-update-box strong{
  margin-top:2px;
  color:#333;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.catalog-nav-row{
  padding:14px 22px;
  border-top:1px solid #f0f1f3;
  border-bottom:1px solid #f0f1f3;
  background:#fcfcfd;
}

.catalog-brand-area{
  display:flex;
  align-items:center;
  gap:16px;
}

.catalog-brand-label{
  flex:0 0 auto;
  color:#8b9199;
  font-size:10px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
}

.catalog-overview .category-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  border:0;
}

.catalog-overview .category-btn{
  min-height:34px;
  padding:6px 14px;
  border:1px solid #e8ebef;
  border-radius:999px;
  background:#fff;
  color:#4b5159;
  font-size:11px;
  font-weight:700;
  box-shadow:none;
  transition:.15s ease;
}

.catalog-overview .category-btn:hover{
  border-color:#ffc6a4;
  background:#fff7f2;
  color:#d94b00;
}

.catalog-overview .category-btn.active{
  border-color:#ff5a00;
  background:#ff5a00;
  color:#fff;
  box-shadow:0 3px 9px rgba(255,90,0,.15);
}

.catalog-overview .category-btn.best-seller-filter{
  margin-left:6px;
  border-color:#ffd7a2;
  background:#fff8e9;
  color:#af5a00 !important;
}

.catalog-overview .category-btn.best-seller-filter.active{
  border-color:#ff9a2f;
  background:#ff9a2f;
  color:#fff !important;
}

.catalog-meta-row{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 22px;
}

.catalog-meta-row .summary{
  margin:0;
  padding:0;
  border:0;
  color:#656c75;
  font-size:11px;
}

.catalog-meta-note{
  color:#9a9fa7;
  font-size:10px;
  text-align:right;
}

/* Hide old landing blocks if any styles still target them */
.store-hero,
.store-filter-card{
  display:none !important;
}

/* Detail mode */
body.detail-view-active .catalog-overview{
  display:none !important;
}

/* Mobile */
@media(max-width:720px){
  .catalog-overview{
    margin:10px 0 12px;
    border-radius:12px;
  }

  .catalog-overview-head{
    display:block;
    padding:14px 14px 12px;
  }

  .catalog-title-wrap h1{
    font-size:22px;
  }

  .catalog-title-wrap p{
    font-size:11px;
    line-height:1.45;
  }

  .catalog-update-box{
    margin-top:11px;
    min-width:0;
    width:fit-content;
    padding:7px 9px;
  }

  .catalog-nav-row{
    padding:10px 12px;
  }

  .catalog-brand-area{
    display:block;
  }

  .catalog-brand-label{
    margin-bottom:7px;
  }

  .catalog-overview .category-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:7px;
    scrollbar-width:none;
  }

  .catalog-overview .category-filters::-webkit-scrollbar{
    display:none;
  }

  .catalog-overview .category-btn{
    flex:0 0 auto;
    min-height:32px;
    padding:5px 11px;
    font-size:10px;
  }

  .catalog-overview .category-btn.best-seller-filter{
    margin-left:0;
  }

  .catalog-meta-row{
    min-height:40px;
    padding:0 12px;
  }

  .catalog-meta-note{
    display:none;
  }
}


/* =========================================================
   V50 - Fix logo mobile
   ========================================================= */

.commerce-logo-wide{
  display:block;
}

.commerce-logo-mobile{
  display:none !important;
}

@media(max-width:720px){
  .commerce-header-inner{
    grid-template-columns:52px minmax(0,1fr) !important;
    gap:9px !important;
  }

  .commerce-logo{
    width:52px !important;
    height:52px !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
  }

  .commerce-logo-wide{
    display:none !important;
  }

  .commerce-logo-mobile{
    display:block !important;
    width:48px !important;
    height:48px !important;
    max-height:none !important;
    object-fit:cover !important;
    object-position:center !important;
    border-radius:11px !important;
  }
}


/* =========================================================
   V53 - Fix font toàn website
   Dùng system font ổn định, không phụ thuộc font ngoài
   ========================================================= */

:root{
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

html,
body,
button,
input,
select,
textarea{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

/* Bỏ letter-spacing quá gắt ở các nhãn nhỏ */
.catalog-eyebrow,
.catalog-brand-label,
.store-filter-label,
.filter-label{
  letter-spacing:.35px !important;
}

/* Font weight đồng đều */
.catalog-title-wrap h1,
.store-hero h1,
.detail-heading h2,
.compact-product-title{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight:700 !important;
}

.category-btn,
.compact-product-price,
.detail-price,
.detail-option-label,
.detail-section-title,
.technical-spec-title,
.tech-spec-label{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Tránh chữ nhỏ bị thô/nhòe */
.catalog-title-wrap p,
.catalog-update-box,
.catalog-meta-row,
.summary,
.store-updated,
.updated{
  font-weight:400 !important;
}

/* Mobile */
@media(max-width:720px){
  html,
  body{
    font-size:16px;
  }

  .catalog-title-wrap h1{
    font-size:22px !important;
    line-height:1.25 !important;
  }

  .catalog-title-wrap p{
    font-size:12px !important;
    line-height:1.5 !important;
  }

  .catalog-brand-label{
    font-size:10px !important;
  }

  .category-btn{
    font-size:11px !important;
    font-weight:600 !important;
  }
}


/* V54 - Menu Danh mục */
.commerce-category-menu{
  position:relative;
  flex:0 0 auto;
}
.commerce-category-menu .commerce-category-btn{
  height:44px;
}
.commerce-category-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:280px;
  padding:8px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 14px 36px rgba(15,23,42,.14);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:.16s ease;
  z-index:1000;
}
.commerce-category-menu.open .commerce-category-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.commerce-category-dropdown button{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:0;
  border-radius:9px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.commerce-category-dropdown button:hover{
  background:#fff5ef;
}
.category-menu-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 38px;
  border-radius:9px;
  background:#fff1e8;
  color:#ff5a00;
  font-size:24px;
}
.commerce-category-dropdown strong{
  display:block;
  font-size:14px;
  color:#111827;
}
.commerce-category-dropdown small{
  display:block;
  margin-top:3px;
  color:#6b7280;
  font-size:11px;
  font-weight:400;
}
@media(max-width:720px){
  .commerce-category-dropdown{
    position:fixed;
    top:70px;
    left:12px;
    right:12px;
    width:auto;
  }
}


/* V55 - Danh mục lấy trực tiếp từ dữ liệu KiotViet */
.category-menu-loading{
  padding:14px 12px;
  color:#777;
  font-size:12px;
}

.commerce-category-dropdown button.active{
  background:#fff3eb;
}

.commerce-category-dropdown small{
  color:#8a9099;
}


/* =========================================================
   V63 - Tăng font + polish giao diện toàn site
   ========================================================= */

:root{
  --ui-text:#171717;
  --ui-muted:#6f7680;
  --ui-line:#e7e9ee;
  --ui-card:#ffffff;
  --ui-bg:#f5f6f8;
  --ui-orange:#ff5a00;
}

/* Base typography */
html{
  font-size:17px;
}

body{
  font-size:1rem;
  line-height:1.5;
  background:var(--ui-bg);
  color:var(--ui-text);
}

body,
button,
input,
select,
textarea{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button,
input,
select,
textarea{
  font-size:.95rem;
}

/* Header */
.commerce-header-inner{
  min-height:78px;
}

.commerce-logo img{
  max-height:50px;
}

.commerce-search input{
  height:46px;
  font-size:.95rem;
}

.commerce-category-btn{
  height:46px;
  font-size:.9rem;
}

/* Catalog area */
.catalog-overview{
  border-radius:18px;
}

.catalog-overview-head{
  padding:24px 24px 20px;
}

.catalog-title-wrap h1{
  font-size:2rem;
  line-height:1.18;
  font-weight:800;
}

.catalog-title-wrap p{
  margin-top:7px;
  font-size:.9rem;
  line-height:1.55;
}

.catalog-eyebrow{
  font-size:.7rem;
}

.catalog-update-box{
  padding:12px 14px;
}

.catalog-update-box small{
  font-size:.72rem;
}

.catalog-update-box strong{
  font-size:.8rem;
}

.catalog-nav-row{
  padding:15px 24px;
}

.catalog-brand-label{
  font-size:.72rem;
}

.catalog-overview .category-btn{
  min-height:38px;
  padding:7px 16px;
  font-size:.82rem;
}

.catalog-meta-row{
  min-height:48px;
  padding:0 24px;
}

.catalog-meta-row .summary,
.catalog-meta-note{
  font-size:.74rem;
}

/* Product grid */
.product-grid{
  gap:16px;
}

.compact-product-card{
  border-radius:14px;
  box-shadow:0 5px 18px rgba(20,24,32,.05);
}

.compact-product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(20,24,32,.09);
}

.compact-product-media{
  height:255px;
}

.compact-product-body{
  padding:15px 15px 16px;
}

.compact-product-title{
  min-height:48px;
  font-size:.98rem;
  line-height:1.38;
  font-weight:750;
}

.compact-product-price{
  margin-top:10px;
  font-size:1.1rem;
  font-weight:800;
}

.compact-stock{
  font-size:.72rem;
}

.compact-detail-btn{
  min-height:34px;
  padding:0 13px;
  font-size:.72rem;
}

/* Detail page */
.detail-heading h2{
  font-size:1.7rem;
  line-height:1.25;
}

.detail-breadcrumb{
  font-size:.8rem;
}

.detail-price{
  font-size:2rem;
  font-weight:800;
}

.detail-choose-text{
  font-size:.9rem;
}

.detail-option-label{
  font-size:.88rem;
}

.detail-memory-btn{
  font-size:.82rem;
}

.detail-color-note{
  font-size:.8rem;
}

.detail-info-box-title{
  font-size:.9rem;
  font-weight:800;
}

.detail-info-line{
  font-size:.84rem;
}

.detail-related-title{
  font-size:.9rem;
  font-weight:800;
}

.detail-related-name{
  font-size:.84rem;
}

.detail-related-price{
  font-size:.88rem;
}

/* Lower detail boxes */
.detail-section-title{
  font-size:1rem;
  font-weight:800;
}

.detail-spec-row{
  font-size:.88rem;
}

.detail-note-body{
  font-size:.88rem;
  line-height:1.65;
}

/* Technical spec table */
.technical-spec-title{
  padding:15px 17px;
  font-size:1.08rem;
  font-weight:800;
}

.tech-spec-row{
  grid-template-columns:220px minmax(0,1fr);
}

.tech-spec-label{
  padding:14px 16px;
  font-size:.88rem;
  font-weight:800;
  line-height:1.45;
}

.tech-spec-value{
  padding:14px 16px;
  font-size:.9rem;
  line-height:1.58;
}

/* Admin-friendly readability */
.footer{
  font-size:.8rem;
}

/* Tablet */
@media(max-width:980px){
  html{
    font-size:16px;
  }

  .compact-product-media{
    height:225px;
  }

  .detail-main{
    gap:18px;
  }

  .tech-spec-row{
    grid-template-columns:180px minmax(0,1fr);
  }
}

/* Mobile */
@media(max-width:720px){
  html{
    font-size:16px;
  }

  body{
    line-height:1.5;
  }

  .commerce-header-inner{
    min-height:66px;
  }

  .commerce-search input{
    height:44px;
    font-size:.86rem;
  }

  .catalog-overview-head{
    padding:16px 15px 14px;
  }

  .catalog-title-wrap h1{
    font-size:1.45rem;
  }

  .catalog-title-wrap p{
    font-size:.8rem;
  }

  .catalog-nav-row{
    padding:11px 13px;
  }

  .catalog-overview .category-btn{
    min-height:34px;
    padding:6px 12px;
    font-size:.76rem;
  }

  .product-grid{
    gap:9px;
  }

  .compact-product-media{
    height:175px;
  }

  .compact-product-body{
    padding:10px 10px 12px;
  }

  .compact-product-title{
    min-height:42px;
    font-size:.82rem;
    line-height:1.35;
  }

  .compact-product-price{
    font-size:.95rem;
  }

  .compact-product-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
  }

  .compact-stock{
    width:fit-content;
    font-size:.68rem;
  }

  .compact-detail-btn{
    width:100%;
    min-height:32px;
    font-size:.7rem;
  }

  .detail-heading h2{
    font-size:1.35rem;
  }

  .detail-price{
    font-size:1.65rem;
  }

  .detail-option-label,
  .detail-choose-text{
    font-size:.8rem;
  }

  .detail-related-name{
    font-size:.78rem;
  }

  .detail-related-price{
    font-size:.82rem;
  }

  .detail-section-title{
    font-size:.95rem;
  }

  .detail-spec-row,
  .detail-note-body{
    font-size:.8rem;
  }

  .technical-spec-title{
    font-size:1rem;
  }

  .tech-spec-row{
    grid-template-columns:118px minmax(0,1fr);
  }

  .tech-spec-label{
    padding:11px 10px;
    font-size:.74rem;
  }

  .tech-spec-value{
    padding:11px;
    font-size:.78rem;
    line-height:1.5;
  }
}

/* Very small mobile */
@media(max-width:390px){
  .catalog-title-wrap h1{
    font-size:1.35rem;
  }

  .compact-product-media{
    height:160px;
  }

  .compact-product-title{
    font-size:.78rem;
  }

  .tech-spec-row{
    grid-template-columns:108px minmax(0,1fr);
  }
}


/* =========================================================
   V65 - Fix font giá
   ========================================================= */

/* Giá bị quá đậm/thô ở V63 do font-weight cao + synthetic bold.
   Dùng font system chuẩn, weight 700 và line-height gọn hơn. */
.detail-price,
.compact-product-price,
.detail-related-price{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis:none !important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  letter-spacing:-0.25px !important;
}

.detail-price{
  font-size:1.9rem !important;
  font-weight:700 !important;
  line-height:1.12 !important;
  color:#d90000 !important;
}

.compact-product-price{
  font-weight:700 !important;
  line-height:1.2 !important;
}

.detail-related-price{
  font-weight:700 !important;
}

/* Tránh ký hiệu đ bị nặng hơn số */
.detail-price,
.compact-product-price{
  font-variant-numeric:tabular-nums;
}

@media(max-width:720px){
  .detail-price{
    font-size:1.6rem !important;
    letter-spacing:-0.15px !important;
  }
}


/* =========================================================
   V66 - Bộ lọc sản phẩm theo giá
   ========================================================= */

.catalog-nav-row{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.catalog-price-area{
  display:flex;
  align-items:center;
  gap:16px;
  padding-top:13px;
  border-top:1px solid #eef0f3;
}

.price-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.price-filter-btn{
  min-height:36px;
  padding:6px 14px;
  border:1px solid #e6e9ed;
  border-radius:999px;
  background:#fff;
  color:#4c525a;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:.78rem;
  font-weight:650;
  cursor:pointer;
  transition:.15s ease;
}

.price-filter-btn:hover{
  border-color:#ffc6a5;
  background:#fff7f2;
  color:#d94b00;
}

.price-filter-btn.active{
  border-color:#ff5a00;
  background:#fff2e9;
  color:#e34e00;
  box-shadow:0 2px 8px rgba(255,90,0,.08);
}

/* Mobile: kéo ngang như bộ lọc hãng */
@media(max-width:720px){
  .catalog-price-area{
    display:block;
    padding-top:10px;
  }

  .catalog-price-area .catalog-brand-label{
    margin-bottom:7px;
  }

  .price-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:7px;
    padding-bottom:2px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .price-filters::-webkit-scrollbar{
    display:none;
  }

  .price-filter-btn{
    flex:0 0 auto;
    min-height:33px;
    padding:5px 11px;
    font-size:.72rem;
  }
}


/* V67 - Bỏ phần hero "Sản phẩm nổi bật" để tiết kiệm diện tích */
.catalog-overview{
  padding-top:16px !important;
}
.catalog-nav-row{
  margin-top:0 !important;
}
@media(max-width:720px){
  .catalog-overview{
    padding-top:11px !important;
  }
}


/* =========================================================
   V68 - Fix mobile header bị vỡ layout
   Nguyên nhân: wrapper .commerce-category-menu vẫn chiếm một ô grid
   dù nút Danh mục đã bị ẩn, làm ô search rơi xuống hàng dưới.
   ========================================================= */

@media(max-width:720px){

  .commerce-header{
    position:sticky !important;
    top:0 !important;
    z-index:100 !important;
    background:#fff !important;
  }

  .commerce-header::before{
    height:3px !important;
  }

  .commerce-header-inner{
    width:100% !important;
    min-height:64px !important;
    padding:8px 12px !important;
    display:grid !important;
    grid-template-columns:48px minmax(0,1fr) !important;
    grid-template-rows:48px !important;
    gap:10px !important;
    align-items:center !important;
    box-sizing:border-box !important;
  }

  /* Quan trọng: ẩn luôn wrapper Danh mục, không chỉ ẩn button */
  .commerce-category-menu,
  .commerce-location,
  .commerce-contact,
  .commerce-store,
  .commerce-mini-icon{
    display:none !important;
  }

  .commerce-logo{
    grid-column:1 !important;
    grid-row:1 !important;
    width:48px !important;
    height:48px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .commerce-logo-wide{
    display:none !important;
  }

  .commerce-logo-mobile{
    display:block !important;
    width:46px !important;
    height:46px !important;
    max-width:46px !important;
    max-height:46px !important;
    object-fit:cover !important;
    object-position:center !important;
    border-radius:10px !important;
    margin:0 !important;
  }

  .commerce-search{
    grid-column:2 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    margin:0 !important;
    padding:0 !important;
    position:relative !important;
  }

  .commerce-search input{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    padding:0 68px 0 13px !important;
    border:1px solid #dfe3e8 !important;
    border-radius:10px !important;
    background:#f8f9fa !important;
    font-size:13px !important;
    box-sizing:border-box !important;
  }

  #clearSearch{
    right:38px !important;
    width:24px !important;
    height:24px !important;
  }

  .commerce-search-icon{
    right:11px !important;
    font-size:20px !important;
  }

  /* Trang bắt đầu ngay dưới header, không để khoảng trắng giả */
  .page{
    padding-top:0 !important;
  }

  .catalog-overview{
    margin-top:10px !important;
  }
}

/* Màn hình rất nhỏ */
@media(max-width:390px){
  .commerce-header-inner{
    grid-template-columns:44px minmax(0,1fr) !important;
    padding:7px 9px !important;
    gap:8px !important;
  }

  .commerce-logo,
  .commerce-logo-mobile{
    width:44px !important;
    height:44px !important;
    max-width:44px !important;
    max-height:44px !important;
  }

  .commerce-search,
  .commerce-search input{
    height:42px !important;
  }

  .commerce-search input{
    font-size:12px !important;
  }
}


/* =========================================================
   V69 - Sắp xếp + URL bộ lọc
   ========================================================= */

.catalog-sort-area{
  display:flex;
  align-items:center;
  gap:16px;
  padding-top:13px;
  border-top:1px solid #eef0f3;
}

.sort-select{
  min-width:210px;
  height:38px;
  padding:0 36px 0 13px;
  border:1px solid #e3e6ea;
  border-radius:10px;
  background:#fff;
  color:#333;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:.78rem;
  font-weight:650;
  outline:none;
  cursor:pointer;
}

.sort-select:focus{
  border-color:#ff9a63;
  box-shadow:0 0 0 3px rgba(255,90,0,.08);
}

@media(max-width:720px){
  .catalog-sort-area{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top:10px;
  }

  .catalog-sort-area .catalog-brand-label{
    margin:0;
    flex:0 0 auto;
  }

  .sort-select{
    min-width:0;
    width:min(220px,68vw);
    height:36px;
    font-size:.74rem;
  }
}


/* =========================================================
   V75 - Nút Zalo ở giữa cạnh phải màn hình
   ========================================================= */
#zaloConsultBtn.zalo-float{
  position:fixed !important;
  top:50% !important;
  right:18px !important;
  left:auto !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;
  z-index:2147483647 !important;

  display:flex !important;
  align-items:center !important;
  gap:9px !important;

  visibility:visible !important;
  opacity:1 !important;

  color:#0866c6 !important;
  text-decoration:none !important;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#zaloConsultBtn .zalo-float__icon{
  width:58px !important;
  height:58px !important;
  flex:0 0 58px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  background:#0068ff !important;
  color:#fff !important;
  border:4px solid #fff !important;
  box-shadow:0 0 0 2px rgba(0,104,255,.18),0 6px 20px rgba(0,0,0,.16) !important;
  font-size:14px !important;
  font-weight:800 !important;
}

#zaloConsultBtn .zalo-float__text{
  display:block !important;
  padding:8px 10px !important;
  border:1px solid #d9e5f5 !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#0866c6 !important;
  box-shadow:0 4px 14px rgba(0,0,0,.10) !important;
  white-space:nowrap !important;
  font-size:13px !important;
  font-weight:700 !important;
}

#zaloConsultBtn:hover{
  transform:translateY(-50%) scale(1.03) !important;
}

@media(max-width:720px){
  #zaloConsultBtn.zalo-float{
    right:10px !important;
    top:56% !important;
  }

  #zaloConsultBtn .zalo-float__icon{
    width:52px !important;
    height:52px !important;
    flex-basis:52px !important;
    font-size:13px !important;
  }

  #zaloConsultBtn .zalo-float__text{
    padding:7px 9px !important;
    font-size:12px !important;
  }
}

@media(max-width:390px){
  #zaloConsultBtn .zalo-float__text{
    display:none !important;
  }
}


/* =========================================================
   V76 - Icon Zalo người dùng cung cấp + hiệu ứng thu hút
   ========================================================= */
#zaloConsultBtn .zalo-float__icon{
  position:relative !important;
  width:72px !important;
  height:72px !important;
  flex:0 0 72px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  animation:zaloAttention 2.2s ease-in-out infinite !important;
}

#zaloConsultBtn .zalo-float__icon img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.16)) !important;
}

/* Vòng sáng nháy nhẹ phía sau icon */
#zaloConsultBtn .zalo-float__icon::before{
  content:"" !important;
  position:absolute !important;
  inset:8px !important;
  z-index:-1 !important;
  border-radius:50% !important;
  background:rgba(0,104,255,.18) !important;
  animation:zaloPulse 2.2s ease-out infinite !important;
}

@keyframes zaloAttention{
  0%, 72%, 100% { transform:scale(1) rotate(0deg); }
  76% { transform:scale(1.10) rotate(-5deg); }
  80% { transform:scale(1.05) rotate(5deg); }
  84% { transform:scale(1.10) rotate(-4deg); }
  88% { transform:scale(1) rotate(0deg); }
}

@keyframes zaloPulse{
  0%, 55% { transform:scale(.85); opacity:0; }
  65% { opacity:.65; }
  100% { transform:scale(1.55); opacity:0; }
}

@media(max-width:720px){
  #zaloConsultBtn .zalo-float__icon{
    width:64px !important;
    height:64px !important;
    flex-basis:64px !important;
  }
}

/* Tôn trọng cài đặt giảm chuyển động của thiết bị */
@media(prefers-reduced-motion:reduce){
  #zaloConsultBtn .zalo-float__icon,
  #zaloConsultBtn .zalo-float__icon::before{
    animation:none !important;
  }
}


/* =========================================================
   V85 - Header desktop tinh gọn, đồng bộ thương hiệu
   ========================================================= */

@media(min-width:721px){
  .commerce-header{
    position:sticky !important;
    top:0 !important;
    z-index:1000 !important;
    background:#fff !important;
    border-top:3px solid #ff5a00 !important;
    border-bottom:1px solid #e9edf1 !important;
    box-shadow:0 4px 16px rgba(15,23,42,.035) !important;
  }

  .commerce-header-inner{
    width:min(1280px,calc(100% - 40px)) !important;
    min-height:76px !important;
    margin:0 auto !important;
    padding:10px 0 !important;

    display:grid !important;
    grid-template-columns:176px 112px minmax(360px,1fr) auto !important;
    gap:14px !important;
    align-items:center !important;
  }

  /* Logo được đặt trong khối cùng tone nền thay vì 1 mảng cam tách biệt */
  .commerce-brand-block{
    height:50px !important;
    display:flex !important;
    align-items:center !important;
    padding:0 12px !important;
    border:1px solid #ffe0cf !important;
    border-radius:12px !important;
    background:linear-gradient(180deg,#fffaf7 0%,#fff5ef 100%) !important;
  }

  .commerce-logo{
    width:100% !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }

  .commerce-logo-wide{
    display:block !important;
    width:142px !important;
    height:auto !important;
    max-height:34px !important;
    object-fit:contain !important;
    border-radius:0 !important;
    mix-blend-mode:multiply;
  }

  .commerce-logo-mobile{
    display:none !important;
  }

  .commerce-category-menu{
    position:relative !important;
    width:100% !important;
  }

  .commerce-category-btn{
    width:100% !important;
    height:46px !important;
    padding:0 14px !important;
    border:1px solid #ffd6bf !important;
    border-radius:11px !important;
    background:#fff7f2 !important;
    color:#d94b00 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:9px !important;

    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size:13px !important;
    font-weight:650 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
  }

  .commerce-category-btn span{
    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size:17px !important;
    font-weight:400 !important;
    line-height:1 !important;
    transform:translateY(-1px);
  }

  .commerce-category-btn strong{
    font-size:13px !important;
    font-weight:650 !important;
    letter-spacing:0 !important;
  }

  .commerce-category-btn:hover{
    background:#fff0e8 !important;
    border-color:#ffb98f !important;
  }

  .commerce-search{
    width:100% !important;
    height:46px !important;
    margin:0 !important;
  }

  .commerce-search input{
    width:100% !important;
    height:46px !important;
    padding:0 72px 0 16px !important;
    border:1px solid #dde2e8 !important;
    border-radius:12px !important;
    background:#f8f9fb !important;
    color:#1f2937 !important;
    font-size:14px !important;
    font-weight:400 !important;
    transition:border-color .15s ease,background .15s ease,box-shadow .15s ease !important;
  }

  .commerce-search input::placeholder{
    color:#8a919b !important;
    opacity:1 !important;
  }

  .commerce-search input:focus{
    background:#fff !important;
    border-color:#ff9f69 !important;
    box-shadow:0 0 0 3px rgba(255,90,0,.08) !important;
  }

  #clearSearch{
    right:42px !important;
    width:26px !important;
    height:26px !important;
    border-radius:50% !important;
    background:#eef1f4 !important;
    color:#777 !important;
  }

  .commerce-search-icon{
    right:14px !important;
    color:#ff5a00 !important;
    font-size:19px !important;
  }

  .commerce-header-note{
    justify-self:end !important;
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    color:#515862 !important;
    font-size:12px !important;
    font-weight:650 !important;
    white-space:nowrap !important;
  }

  .commerce-header-note span{
    color:#ff8c52 !important;
  }

  /* Những khối cũ không còn cần trên desktop */
  .commerce-location,
  .commerce-contact,
  .commerce-store,
  .commerce-mini-icon{
    display:none !important;
  }

  /* Vô hiệu pseudo text cũ để tránh trùng */
  .commerce-header-inner::after{
    content:none !important;
    display:none !important;
  }
}

/* Desktop hẹp */
@media(min-width:721px) and (max-width:980px){
  .commerce-header-inner{
    width:calc(100% - 24px) !important;
    grid-template-columns:150px 104px minmax(260px,1fr) !important;
    gap:10px !important;
  }

  .commerce-header-note{
    display:none !important;
  }

  .commerce-brand-block{
    padding:0 9px !important;
  }

  .commerce-logo-wide{
    width:126px !important;
  }
}

/* Mobile giữ layout V68 nhưng làm logo hòa với header hơn */
@media(max-width:720px){
  .commerce-header{
    background:#fff !important;
    border-top:3px solid #ff5a00 !important;
    box-shadow:0 3px 12px rgba(15,23,42,.04) !important;
  }

  .commerce-brand-block{
    display:contents !important;
  }

  .commerce-header-note{
    display:none !important;
  }

  .commerce-logo{
    background:#fff7f2 !important;
    border:1px solid #ffe0cf !important;
    border-radius:11px !important;
  }

  .commerce-logo-mobile{
    border-radius:9px !important;
  }
}


/* =========================================================
   V86 - Header clean: bỏ khối kem + bỏ logo chữ trong ảnh
   ========================================================= */
@media(min-width:721px){
  .commerce-header{
    background:#fff !important;
    border-top:3px solid #ff5a00 !important;
    border-bottom:1px solid #e9edf1 !important;
    box-shadow:0 3px 14px rgba(15,23,42,.035) !important;
  }

  .commerce-header-inner{
    width:min(1280px,calc(100% - 40px)) !important;
    min-height:72px !important;
    padding:9px 0 !important;
    grid-template-columns:188px 118px minmax(380px,1fr) auto !important;
    gap:14px !important;
  }

  /* Brand phẳng, không pill, không nền kem */
  .commerce-brand-block{
    height:46px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    display:flex !important;
    align-items:center !important;
  }

  .commerce-logo{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    width:auto !important;
    color:#161616 !important;
    text-decoration:none !important;
  }

  .commerce-logo-mark{
    display:block !important;
    width:42px !important;
    height:42px !important;
    flex:0 0 42px !important;
    object-fit:cover !important;
    border-radius:9px !important;
  }

  .commerce-logo-text{
    display:block !important;
    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size:17px !important;
    line-height:1 !important;
    font-weight:800 !important;
    letter-spacing:-.35px !important;
    white-space:nowrap !important;
  }

  .commerce-logo-wide,
  .commerce-logo-mobile{
    display:none !important;
  }

  /* Danh mục: bỏ cảm giác nút cồng kềnh */
  .commerce-category-btn{
    width:100% !important;
    height:44px !important;
    padding:0 13px !important;
    border:1px solid #e4e7eb !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#292d32 !important;
    box-shadow:none !important;
    gap:8px !important;
    font-size:13px !important;
    font-weight:600 !important;
  }

  .commerce-category-btn span{
    color:#ff5a00 !important;
    font-size:17px !important;
    font-weight:500 !important;
  }

  .commerce-category-btn strong{
    color:#292d32 !important;
    font-size:13px !important;
    font-weight:600 !important;
  }

  .commerce-category-btn:hover{
    background:#fafafa !important;
    border-color:#d9dde2 !important;
  }

  /* Search là thành phần chính */
  .commerce-search{
    height:44px !important;
  }

  .commerce-search input{
    height:44px !important;
    border:1px solid #dfe3e8 !important;
    border-radius:10px !important;
    background:#f7f8fa !important;
    padding-left:15px !important;
    font-size:14px !important;
  }

  .commerce-search input:focus{
    background:#fff !important;
    border-color:#ff8f54 !important;
    box-shadow:0 0 0 3px rgba(255,90,0,.07) !important;
  }

  .commerce-header-note{
    font-size:12px !important;
    font-weight:600 !important;
    color:#59616b !important;
  }
}

/* Màn hình desktop hẹp */
@media(min-width:721px) and (max-width:980px){
  .commerce-header-inner{
    grid-template-columns:166px 108px minmax(260px,1fr) !important;
  }

  .commerce-logo-mark{
    width:38px !important;
    height:38px !important;
    flex-basis:38px !important;
  }

  .commerce-logo-text{
    font-size:15px !important;
  }
}

/* Mobile: chỉ dùng icon vuông, không bị dính nền */
@media(max-width:720px){
  .commerce-brand-block{
    display:contents !important;
  }

  .commerce-logo{
    width:46px !important;
    height:46px !important;
    border:0 !important;
    background:transparent !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .commerce-logo-mark{
    display:block !important;
    width:44px !important;
    height:44px !important;
    border-radius:10px !important;
    object-fit:cover !important;
  }

  .commerce-logo-text{
    display:none !important;
  }

  .commerce-logo-wide,
  .commerce-logo-mobile{
    display:none !important;
  }
}


/* V87 - Hạ nút Zalo xuống gần góc dưới hơn */
#zaloFloat,
.zalo-float,
.zalo-float-btn,
.zalo-floating,
.zalo-chat,
.floating-zalo,
a[href*="zalo.me"]{
  bottom:18px !important;
}

@media(max-width:720px){
  #zaloFloat,
  .zalo-float,
  .zalo-float-btn,
  .zalo-floating,
  .zalo-chat,
  .floating-zalo,
  a[href*="zalo.me"]{
    bottom:14px !important;
  }
}


/* =========================================================
   V88 - FIX THẬT SỰ vị trí Zalo
   Rule cũ dùng top:50% + bottom:auto nên V87 không di chuyển.
   Hạ từ giữa màn hình xuống khoảng 68% chiều cao.
   ========================================================= */
#zaloConsultBtn.zalo-float{
  top:68% !important;
  bottom:auto !important;
  right:18px !important;
  left:auto !important;
  transform:translateY(-50%) !important;
}

#zaloConsultBtn.zalo-float:hover{
  transform:translateY(-50%) scale(1.03) !important;
}

@media(max-width:720px){
  #zaloConsultBtn.zalo-float{
    top:70% !important;
    right:10px !important;
    bottom:auto !important;
    transform:translateY(-50%) !important;
  }
}

@media(max-width:390px){
  #zaloConsultBtn.zalo-float{
    top:72% !important;
  }
}


/* =========================================================
   V89 - Căn lại Zalo riêng cho giao diện máy tính
   ========================================================= */
@media(min-width:721px){
  #zaloConsultBtn.zalo-float{
    position:fixed !important;
    top:auto !important;
    bottom:28px !important;
    right:28px !important;
    left:auto !important;
    transform:none !important;
    z-index:999 !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
  }

  #zaloConsultBtn.zalo-float:hover{
    transform:translateY(-2px) !important;
  }

  #zaloConsultBtn .zalo-float__icon{
    width:54px !important;
    height:54px !important;
    flex:0 0 54px !important;
  }

  #zaloConsultBtn .zalo-float__label{
    min-height:38px !important;
    padding:0 13px !important;
    display:flex !important;
    align-items:center !important;
    border-radius:10px !important;
    font-size:13px !important;
    font-weight:650 !important;
    white-space:nowrap !important;
    box-shadow:0 4px 14px rgba(15,23,42,.12) !important;
  }
}

/* Laptop/desktop màn hình thấp: vẫn sát góc và không che sản phẩm */
@media(min-width:721px) and (max-height:760px){
  #zaloConsultBtn.zalo-float{
    bottom:20px !important;
    right:22px !important;
  }
}


/* =========================================================
   V101 - So sánh sản phẩm
   ========================================================= */
.compact-card-actions{
  display:flex;
  align-items:center;
  gap:6px;
}

.compact-compare-btn{
  min-height:32px;
  padding:0 10px;
  border:1px solid #d8dde3;
  border-radius:7px;
  background:#fff;
  color:#525a64;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.compact-compare-btn:hover{
  border-color:#ff9b66;
  color:#e34e00;
}
.compact-compare-btn.active{
  border-color:#ff5a00;
  background:#fff3ec;
  color:#e34e00;
}

.compare-bar{
  position:fixed;
  left:50%;
  bottom:18px;
  z-index:980;
  width:min(980px,calc(100% - 36px));
  min-height:66px;
  transform:translate(-50%,120px);
  opacity:0;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border:1px solid #e2e5e9;
  border-radius:14px;
  background:rgba(255,255,255,.97);
  box-shadow:0 12px 36px rgba(15,23,42,.18);
  transition:.22s ease;
}
.compare-bar.show{
  transform:translate(-50%,0);
  opacity:1;
  pointer-events:auto;
}
.compare-bar-items{
  display:flex;
  gap:8px;
  align-items:center;
  overflow:auto;
}
.compare-chip{
  display:flex;
  align-items:center;
  gap:7px;
  max-width:260px;
  padding:8px 9px 8px 11px;
  border-radius:10px;
  background:#f6f7f9;
  color:#30343a;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.compare-chip span{
  overflow:hidden;
  text-overflow:ellipsis;
}
.compare-chip button{
  width:22px;height:22px;border:0;border-radius:50%;background:#e8eaed;cursor:pointer;font-size:16px;
}
.compare-bar-actions{display:flex;gap:8px;flex:0 0 auto}
.compare-clear-btn,.compare-open-btn{
  min-height:38px;padding:0 14px;border-radius:9px;font-size:12px;font-weight:800;cursor:pointer;
}
.compare-clear-btn{border:1px solid #dfe3e8;background:#fff;color:#555}
.compare-open-btn{border:1px solid #ff5a00;background:#ff5a00;color:#fff}
.compare-open-btn:disabled{opacity:.45;cursor:not-allowed}

.compare-notice{
  position:fixed;left:50%;bottom:98px;z-index:1100;transform:translate(-50%,15px);
  padding:10px 14px;border-radius:9px;background:#222;color:#fff;font-size:12px;font-weight:700;
  opacity:0;pointer-events:none;transition:.18s ease;
}
.compare-notice.show{opacity:1;transform:translate(-50%,0)}

.compare-modal{
  position:fixed;inset:0;z-index:1200;display:none;
}
.compare-modal.open{display:block}
.compare-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.52)}
.compare-modal-dialog{
  position:relative;
  width:min(1380px,calc(100% - 30px));
  max-height:calc(100vh - 30px);
  overflow:auto;
  margin:15px auto;
  background:#fff;
  border-radius:16px;
  box-shadow:0 24px 70px rgba(0,0,0,.26);
}
.compare-modal-close{
  position:absolute;right:16px;top:14px;z-index:2;
  width:38px;height:38px;border:0;border-radius:50%;background:#f0f2f5;font-size:24px;cursor:pointer;
}
.compare-modal-head{padding:24px 26px 18px;border-bottom:1px solid #eceff2}
.compare-modal-head h2{margin:0;font-size:26px}
.compare-modal-head p{margin:6px 0 0;color:#737b85;font-size:13px}
.compare-loading,.compare-empty{padding:50px 24px;text-align:center;color:#737b85}
.compare-table-wrap{overflow:auto}
.compare-table{min-width:900px}
.compare-row{
  display:grid;
  grid-template-columns:190px repeat(3,minmax(240px,1fr));
  border-bottom:1px solid #e7eaee;
}
.compare-row>div{padding:15px 16px;border-right:1px solid #e7eaee}
.compare-row>div:last-child{border-right:0}
.compare-header-row{position:sticky;top:0;z-index:1;background:#fff}
.compare-label{background:#fafbfc;font-size:13px;font-weight:800}
.compare-value{font-size:13px;line-height:1.55;white-space:pre-line}
.compare-product-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
.compare-product-image{height:150px;width:100%;display:flex;align-items:center;justify-content:center}
.compare-product-image .product-image{max-width:150px;max-height:145px;object-fit:contain}
.compare-product-head strong{font-size:14px;line-height:1.35}
.compare-product-price{color:#d90000;font-size:16px;font-weight:800}
.compare-product-stock{padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700}
.compare-product-stock.in{background:#edf9f1;color:#16843b}
.compare-product-stock.out{background:#f1f2f4;color:#7a7f87}

@media(max-width:720px){
  .compact-product-meta{
    align-items:flex-end;
  }
  .compact-card-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .compact-compare-btn,.compact-detail-btn{
    min-height:28px;
    padding:0 7px;
    font-size:9px;
  }
  .compare-bar{
    width:calc(100% - 20px);
    bottom:10px;
    align-items:stretch;
    flex-direction:column;
    gap:8px;
  }
  .compare-bar-actions{justify-content:flex-end}
  .compare-chip{max-width:200px;font-size:11px}
  .compare-modal-dialog{width:calc(100% - 12px);margin:6px auto;max-height:calc(100vh - 12px)}
  .compare-modal-head{padding:18px 52px 14px 16px}
  .compare-modal-head h2{font-size:20px}
  .compare-row{grid-template-columns:130px repeat(3,minmax(190px,1fr))}
  .compare-row>div{padding:12px 10px}
}


/* =========================================================
   V102 - Nút So sánh ngay trong trang chi tiết
   ========================================================= */
.detail-heading{
  position:relative;
}

.detail-compare-btn{
  margin-left:auto;
  min-height:38px;
  padding:0 14px;
  border:1px solid #ff5a00;
  border-radius:9px;
  background:#fff;
  color:#e34e00;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:.15s ease;
}

.detail-compare-btn:hover{
  background:#fff3ec;
}

.detail-compare-btn.active{
  background:#ff5a00;
  color:#fff;
}

.detail-compare-hint{
  margin-top:8px;
  color:#6b7280;
  font-size:12px;
  line-height:1.45;
}

@media(max-width:720px){
  .detail-heading{
    display:grid !important;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:start;
  }

  .detail-heading h2{
    grid-column:1 / -1;
  }

  .detail-status-top{
    grid-column:1;
  }

  .detail-compare-btn{
    grid-column:2;
    min-height:34px;
    padding:0 10px;
    font-size:10px;
  }

  .detail-compare-hint{
    font-size:11px;
  }
}


/* =========================================================
   V103 - So sánh mobile dễ đọc / thao tác rõ ràng
   ========================================================= */
body.modal-open #zaloConsultBtn{
  display:none !important;
}

.compare-bar-actions{
  align-items:center;
}
.compare-bar-instruction{
  color:#6b7280;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.compare-mobile{
  display:none;
}

@media(max-width:720px){
  .detail-compare-btn{
    border-radius:9px;
    background:#fff7f2;
    font-size:11px;
    font-weight:800;
  }

  .compact-card-actions{
    width:100%;
  }

  .compact-compare-btn{
    background:#fff7f2;
    border-color:#ffc9aa;
    color:#d94b00;
  }

  .compare-bar{
    padding:10px;
  }

  .compare-bar-items{
    width:100%;
  }

  .compare-bar-actions{
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:7px;
  }

  .compare-bar-instruction{
    white-space:normal;
    line-height:1.35;
    font-size:10px;
  }

  .compare-clear-btn{
    min-height:36px;
    padding:0 10px;
  }

  .compare-open-btn{
    min-height:36px;
    padding:0 12px;
  }

  .compare-modal-dialog{
    border-radius:18px 18px 0 0;
    width:100%;
    height:94vh;
    max-height:94vh;
    margin:6vh 0 0;
  }

  .compare-modal-head{
    position:sticky;
    top:0;
    z-index:8;
    background:#fff;
    padding:18px 58px 14px 16px;
    box-shadow:0 1px 0 #eceff2;
  }

  .compare-modal-head h2{
    font-size:22px;
    line-height:1.2;
  }

  .compare-modal-head p{
    font-size:12px;
    line-height:1.4;
  }

  .compare-modal-close{
    position:fixed;
    top:calc(6vh + 12px);
    right:14px;
    z-index:10;
    width:42px;
    height:42px;
  }

  .compare-table{
    display:none;
  }

  .compare-mobile{
    display:block;
    padding-bottom:24px;
  }

  .compare-mobile-products{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:14px;
    background:#f7f8fa;
    border-bottom:1px solid #e5e7eb;
  }

  .compare-mobile-product-card{
    min-width:0;
    padding:12px 9px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    text-align:center;
  }

  .compare-mobile-product-card:nth-child(3){
    grid-column:1 / -1;
    width:50%;
    justify-self:center;
  }

  .compare-mobile-product-image{
    height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .compare-mobile-product-image .product-image{
    max-width:108px;
    max-height:105px;
    object-fit:contain;
  }

  .compare-mobile-product-name{
    margin-top:7px;
    min-height:38px;
    font-size:12px;
    line-height:1.35;
    font-weight:800;
    overflow:hidden;
  }

  .compare-mobile-product-card .compare-product-price{
    margin-top:7px;
    font-size:15px;
  }

  .compare-mobile-product-card .compare-product-stock{
    display:inline-flex;
    margin-top:7px;
  }

  .compare-mobile-spec{
    margin:12px 12px 0;
    overflow:hidden;
    border:1px solid #e4e7eb;
    border-radius:12px;
    background:#fff;
  }

  .compare-mobile-spec h3{
    margin:0;
    padding:11px 13px;
    background:#f7f8fa;
    border-bottom:1px solid #e4e7eb;
    color:#111827;
    font-size:14px;
    line-height:1.3;
  }

  .compare-mobile-spec-item{
    padding:11px 13px 12px;
    border-bottom:1px solid #edf0f2;
  }

  .compare-mobile-spec-item:last-child{
    border-bottom:0;
  }

  .compare-mobile-spec-name{
    margin-bottom:5px;
    color:#6b7280;
    font-size:10px;
    line-height:1.3;
    font-weight:700;
  }

  .compare-mobile-spec-value{
    color:#111827;
    font-size:13px;
    line-height:1.55;
    white-space:pre-line;
  }

  .compare-table-wrap{
    overflow:visible;
  }
}

@media(max-width:390px){
  .compare-bar-actions{
    grid-template-columns:1fr auto;
  }
  .compare-bar-instruction{
    grid-column:1 / -1;
  }
  .compare-mobile-products{
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:10px;
  }
}


/* =========================================================
   V104 - Tinh gọn trang chi tiết
   Bỏ 2 khối lặp: Thông tin sản phẩm + Thông tin phiên bản
   ========================================================= */
.detail-info{
  padding-bottom:8px;
}

.detail-note-compact{
  margin-top:16px;
  border:1px solid #eceff2;
  border-radius:12px;
  background:#fff;
}

.detail-note-compact .detail-note-body{
  padding:14px 16px;
  color:#6b7280;
  font-size:12px;
  line-height:1.55;
}

@media(max-width:720px){
  .detail-note-compact{
    margin-top:12px;
  }
  .detail-note-compact .detail-note-body{
    padding:12px 13px;
    font-size:11px;
  }
}


/* =========================================================
   V105 - Hành động ngay trong khu vực chọn phiên bản
   ========================================================= */
.detail-actions{
  display:flex;
  align-items:stretch;
  gap:10px;
  margin-top:18px;
  width:100%;
}

.detail-actions .detail-compare-btn,
.detail-buy-zalo-btn{
  min-height:44px;
  padding:0 18px;
  border-radius:10px;
  font:inherit;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  box-sizing:border-box;
}

.detail-actions .detail-compare-btn{
  position:static;
  margin:0;
  flex:1 1 0;
}

.detail-buy-zalo-btn{
  flex:1 1 0;
  border:1px solid #ff5a00;
  background:#ff5a00;
  color:#fff;
}

.detail-buy-zalo-btn:hover{
  filter:brightness(.96);
}

@media(max-width:720px){
  .detail-actions{
    gap:8px;
    margin-top:14px;
  }
  .detail-actions .detail-compare-btn,
  .detail-buy-zalo-btn{
    min-height:43px;
    padding:0 10px;
    font-size:13px;
    text-align:center;
  }
}


/* =========================================================
   V107 - AI phân tích trong So sánh sản phẩm
   ========================================================= */
.compare-ai-box{
  margin:18px 20px 4px;
  overflow:hidden;
  border:1px solid #ffd6c2;
  border-radius:14px;
  background:linear-gradient(180deg,#fffaf7 0%,#fff 100%);
}

.compare-ai-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-bottom:1px solid #ffe5d7;
}

.compare-ai-title-wrap{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.compare-ai-title-wrap strong{
  color:#161616;
  font-size:17px;
  font-weight:850;
}
.compare-ai-title-wrap span{
  margin-top:4px;
  color:#707782;
  font-size:12px;
  line-height:1.4;
}

.compare-ai-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.compare-ai-select{
  min-height:40px;
  max-width:210px;
  padding:0 34px 0 11px;
  border:1px solid #dfe3e8;
  border-radius:9px;
  background:#fff;
  color:#333;
  font-size:12px;
  font-weight:650;
}

.compare-ai-btn{
  min-height:40px;
  padding:0 15px;
  border:1px solid #ff5a00;
  border-radius:9px;
  background:#ff5a00;
  color:#fff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.compare-ai-btn:disabled{
  opacity:.65;
  cursor:wait;
}

.compare-ai-result{
  padding:16px 18px 18px;
  color:#24272c;
  font-size:13px;
  line-height:1.6;
}
.compare-ai-placeholder,
.compare-ai-wait{
  color:#787f89;
}
.compare-ai-line{
  margin:5px 0;
  white-space:pre-line;
}
.compare-ai-line.heading{
  margin-top:12px;
  color:#111827;
  font-weight:850;
}
.compare-ai-line.heading:first-child{
  margin-top:0;
}
.compare-ai-line.bullet{
  padding-left:2px;
}
.compare-ai-error{
  padding:10px 12px;
  border:1px solid #fecaca;
  border-radius:9px;
  background:#fff5f5;
  color:#b42318;
  font-weight:650;
}

@media(max-width:720px){
  .compare-ai-box{
    margin:12px 10px 2px;
    border-radius:12px;
  }
  .compare-ai-top{
    align-items:stretch;
    flex-direction:column;
    padding:13px;
    gap:11px;
  }
  .compare-ai-title-wrap strong{
    font-size:16px;
  }
  .compare-ai-controls{
    display:grid;
    grid-template-columns:1fr auto;
    width:100%;
  }
  .compare-ai-select{
    width:100%;
    max-width:none;
    min-width:0;
    font-size:11px;
  }
  .compare-ai-btn{
    padding:0 12px;
    font-size:11px;
  }
  .compare-ai-result{
    padding:13px;
    font-size:12px;
    line-height:1.55;
  }
}


/* =========================================================
   V109 - Không để So sánh treo khi thông số lỗi/chậm
   ========================================================= */
.compare-spec-warning{
  margin:14px 20px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid #fed7aa;
  border-radius:11px;
  background:#fff7ed;
}
.compare-spec-warning-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
  color:#9a3412;
  font-size:12px;
}
.compare-spec-warning-text strong{
  color:#7c2d12;
}
.compare-spec-warning-text span{
  overflow:hidden;
  text-overflow:ellipsis;
}
.compare-spec-retry-btn{
  flex:0 0 auto;
  min-height:34px;
  padding:0 11px;
  border:1px solid #fdba74;
  border-radius:8px;
  background:#fff;
  color:#c2410c;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.compare-spec-retry-btn:disabled{
  opacity:.6;
  cursor:wait;
}

@media(max-width:720px){
  .compare-spec-warning{
    margin:10px 10px 0;
    align-items:stretch;
    flex-direction:column;
  }
  .compare-spec-retry-btn{
    width:100%;
  }
}




/* =========================================================
   V117 - Nút Nghe tư vấn luôn hiển thị
   ========================================================= */
.compare-ai-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.compare-ai-voice-btn{
  min-height:40px;
  padding:0 13px;
  border:1px solid #ff5a00;
  border-radius:9px;
  background:#fff;
  color:#e34e00;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:.15s ease;
}

.compare-ai-voice-btn:hover:not(:disabled){
  background:#fff4ed;
}

.compare-ai-voice-btn.speaking{
  background:#ff5a00;
  color:#fff;
}

.compare-ai-voice-btn:disabled{
  border-color:#dfe3e8;
  background:#f6f7f9;
  color:#9aa1aa;
  cursor:not-allowed;
  opacity:1;
}

@media(max-width:720px){
  .compare-ai-controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .compare-ai-select{
    grid-column:1 / -1;
  }

  .compare-ai-btn,
  .compare-ai-voice-btn{
    width:100%;
    min-height:40px;
    padding:0 10px;
    font-size:11px;
  }
}


/* V118 - thông báo giọng đọc tiếng Việt */
.compare-ai-voice-btn:disabled{
  cursor:wait;
}


/* =========================================================
   V119 - Fix nút Nghe/Dừng đọc trên mobile
   ========================================================= */
.compare-ai-voice-btn.speaking,
.compare-ai-voice-btn.speaking:hover,
.compare-ai-voice-btn.speaking:focus,
.compare-ai-voice-btn.speaking:active{
  background:#ff5a00 !important;
  border-color:#ff5a00 !important;
  color:#fff !important;
  opacity:1 !important;
  visibility:visible !important;
  filter:none !important;
  box-shadow:0 5px 14px rgba(0,0,0,.12) !important;
  cursor:pointer !important;
  -webkit-text-fill-color:#fff !important;
}

.compare-ai-voice-btn.speaking:disabled{
  opacity:1 !important;
  background:#ff5a00 !important;
  border-color:#ff5a00 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

@media(max-width:720px){
  .compare-ai-voice-btn.speaking{
    min-height:48px !important;
    font-weight:800 !important;
    font-size:14px !important;
  }
}


/* =========================================================
   V120 - Gợi ý sản phẩm ngay dưới thanh tìm kiếm
   ========================================================= */
.commerce-search{
  position:relative;
  z-index:80;
}
.search-suggestions{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:9999;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 14px 35px rgba(15,23,42,.18);
  overflow:hidden;
  max-height:min(460px,60vh);
  overflow-y:auto;
}
.search-suggestions[hidden]{display:none!important}
.search-suggestion-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid #f0f1f3;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.search-suggestion-item:hover{background:#fff8f4}
.search-suggestion-image{
  width:58px;
  height:58px;
  flex:0 0 58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:#fafafa;
  overflow:hidden;
}
.search-suggestion-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.search-suggestion-info{min-width:0;flex:1}
.search-suggestion-name{
  font-size:13px;
  line-height:1.3;
  font-weight:700;
  color:#16181d;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.search-suggestion-bottom{
  margin-top:5px;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.search-suggestion-price{font-weight:800;color:#d90000;font-size:13px}
.search-suggestion-stock{font-size:11px;font-weight:700}
.search-suggestion-stock.in{color:#16813d}
.search-suggestion-stock.out{color:#8b9098}
.search-suggestion-all{
  width:100%;
  border:0;
  background:#fff8f4;
  color:#e54b00;
  padding:11px 12px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.search-suggestion-empty{
  padding:15px;
  text-align:center;
  font-size:12px;
  color:#737982;
}

@media(max-width:720px){
  .commerce-search{
    z-index:10000!important;
  }
  .search-suggestions{
    top:calc(100% + 6px);
    left:0;
    right:0;
    border-radius:12px;
    max-height:min(390px,48vh);
    box-shadow:0 12px 28px rgba(15,23,42,.22);
  }
  .search-suggestion-item{
    padding:8px 10px;
    gap:9px;
  }
  .search-suggestion-image{
    width:50px;
    height:50px;
    flex-basis:50px;
  }
  .search-suggestion-name{font-size:12px}
  .search-suggestion-price{font-size:12px}
  .search-suggestion-stock{font-size:10px}
  .search-suggestion-all{padding:10px;font-size:11px}
}


/* =========================================================
   V137 - AI Chat
   ========================================================= */
.ai-chat-launcher{
  position:fixed;
  right:22px;
  bottom:92px;
  z-index:9980;
  height:46px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 14px 0 8px;
  border:0;
  border-radius:24px;
  background:#151515;
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  cursor:pointer;
  font:inherit;
  font-weight:800;
}
.ai-chat-launcher-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.ai-chat-launcher-text{font-size:12px}

.ai-chat-panel{
  position:fixed;
  right:22px;
  bottom:148px;
  z-index:9990;
  width:min(390px,calc(100vw - 28px));
  height:min(590px,calc(100dvh - 175px));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #e2e5e9;
  border-radius:18px;
  background:#fff;
  box-shadow:0 20px 55px rgba(15,23,42,.22);
}
.ai-chat-panel[hidden]{display:none!important}
.ai-chat-head{
  min-height:66px;
  padding:11px 12px 11px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid #eceef1;
  background:#fff;
}
.ai-chat-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.ai-chat-brand img{
  width:37px;
  height:37px;
  border-radius:10px;
}
.ai-chat-brand div{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.ai-chat-brand strong{
  font-size:13px;
  color:#111827;
}
.ai-chat-brand span{
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9px;
  color:#8a9099;
}
.ai-chat-close{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border:0;
  border-radius:50%;
  background:#f2f4f7;
  color:#111827;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.ai-chat-messages{
  flex:1;
  overflow-y:auto;
  padding:14px 12px;
  background:#f7f8fa;
}
.ai-chat-message{
  display:flex;
  margin:0 0 10px;
}
.ai-chat-message.user{justify-content:flex-end}
.ai-chat-bubble{
  max-width:86%;
  padding:10px 11px;
  border-radius:14px;
  background:#fff;
  border:1px solid #e7e9ed;
  color:#24272c;
  font-size:12px;
  line-height:1.5;
  white-space:pre-wrap;
  box-shadow:0 2px 5px rgba(15,23,42,.025);
}
.ai-chat-message.user .ai-chat-bubble{
  background:#ff5a00;
  border-color:#ff5a00;
  color:#fff;
  border-bottom-right-radius:5px;
}
.ai-chat-message.assistant .ai-chat-bubble{
  border-bottom-left-radius:5px;
}
.ai-chat-suggestions{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding:9px 10px 7px;
  border-top:1px solid #eceef1;
  background:#fff;
  scrollbar-width:none;
}
.ai-chat-suggestions::-webkit-scrollbar{display:none}
.ai-chat-suggestions button{
  flex:0 0 auto;
  min-height:31px;
  padding:0 10px;
  border:1px solid #e1e4e8;
  border-radius:16px;
  background:#fff;
  color:#4b5563;
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.ai-chat-suggestions button:hover{
  color:#d94800;
  border-color:#ffc5a8;
  background:#fff8f4;
}
.ai-chat-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  padding:8px 10px;
  border-top:1px solid #eceef1;
  background:#fff;
}
.ai-chat-form textarea{
  width:100%;
  max-height:82px;
  min-height:40px;
  resize:none;
  border:1px solid #dfe3e8;
  border-radius:11px;
  padding:10px 11px;
  outline:none;
  font:inherit;
  font-size:12px;
  line-height:1.35;
}
.ai-chat-form textarea:focus{
  border-color:#ff9c67;
  box-shadow:0 0 0 3px rgba(255,90,0,.08);
}
.ai-chat-form button{
  min-width:58px;
  border:0;
  border-radius:10px;
  background:#ff5a00;
  color:#fff;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.ai-chat-form button:disabled{opacity:.55;cursor:wait}
.ai-chat-foot{
  padding:0 10px 8px;
  background:#fff;
  color:#9aa0a8;
  font-size:8px;
  text-align:center;
}
.ai-chat-typing{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:52px;
}
.ai-chat-typing span{
  width:5px;height:5px;border-radius:50%;background:#9ca3af;
  animation:aiChatDot 1s infinite ease-in-out;
}
.ai-chat-typing span:nth-child(2){animation-delay:.15s}
.ai-chat-typing span:nth-child(3){animation-delay:.3s}
@keyframes aiChatDot{0%,70%,100%{transform:translateY(0);opacity:.45}35%{transform:translateY(-3px);opacity:1}}

@media(max-width:720px){
  .ai-chat-launcher{
    right:12px;
    bottom:82px;
    height:43px;
    padding-right:11px;
  }
  .ai-chat-launcher-text{display:none}
  .ai-chat-launcher-icon{width:31px;height:31px}
  .ai-chat-panel{
    right:8px;
    bottom:132px;
    width:calc(100vw - 16px);
    height:min(560px,calc(100dvh - 150px));
    border-radius:17px;
  }
  .ai-chat-bubble{
    max-width:91%;
    font-size:12px;
  }
}


/* =========================================================
   V139 - AI tư vấn trước, Zalo chỉ khi cần chuyển người thật
   ========================================================= */
.ai-first-help{
  cursor:pointer;
}
.ai-human-handoff{
  margin:8px 10px 0;
  padding:10px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  border:1px solid #ffd8c4;
  border-radius:11px;
  background:#fff8f4;
}
.ai-human-handoff[hidden]{display:none!important}
.ai-human-handoff div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.ai-human-handoff strong{
  font-size:11px;
  color:#7a2f0a;
}
.ai-human-handoff span{
  font-size:9px;
  color:#8a5b45;
  line-height:1.4;
}
.ai-human-handoff a{
  min-width:78px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border-radius:9px;
  background:#0068ff;
  color:#fff;
  text-decoration:none;
  font-size:10px;
  font-weight:800;
}
.ai-human-handoff a:hover{filter:brightness(.96)}

@media(max-width:720px){
  .ai-human-handoff{
    grid-template-columns:1fr;
  }
  .ai-human-handoff a{
    width:100%;
  }
}

/* V140 - Chỉ giữ một nút hỗ trợ AI */
.ai-chat-launcher{display:none!important}
.ai-support-icon{
  display:grid!important;
  place-items:center;
  background:#ff5a00!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
}
.ai-support-icon img{display:none!important}


/* =========================================================
   V145 - FIX dứt điểm nút tròn bị CSS Zalo cũ phóng to
   ========================================================= */
#zaloConsultBtn.ai-round-float{
  position:fixed!important;
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  max-width:58px!important;
  max-height:58px!important;
  padding:0!important;
  margin:0!important;

  top:auto!important;
  left:auto!important;
  right:14px!important;
  bottom:92px!important;

  transform:none!important;
  display:grid!important;
  place-items:center!important;
  gap:0!important;

  border:4px solid #fff!important;
  border-radius:50%!important;
  background:#ff5a00!important;
  color:transparent!important;
  overflow:hidden!important;

  box-shadow:
    0 10px 24px rgba(15,23,42,.20),
    0 0 0 1px rgba(255,90,0,.12)!important;

  visibility:visible!important;
  opacity:1!important;
  z-index:9990!important;
  animation:none!important;

  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}

#zaloConsultBtn.ai-round-float:hover{
  transform:none!important;
}

#zaloConsultBtn.ai-round-float.is-dragging{
  transform:scale(1.08)!important;
  box-shadow:
    0 16px 34px rgba(15,23,42,.26),
    0 0 0 3px rgba(255,90,0,.14)!important;
}

#zaloConsultBtn.ai-round-float .ai-round-logo{
  position:static!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  max-width:50px!important;
  max-height:50px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
  animation:none!important;
}

#zaloConsultBtn.ai-round-float .ai-round-logo::before,
#zaloConsultBtn.ai-round-float .ai-round-logo::after{
  display:none!important;
  content:none!important;
}

#zaloConsultBtn.ai-round-float .ai-round-logo img{
  position:static!important;
  display:block!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  max-width:50px!important;
  max-height:50px!important;
  object-fit:cover!important;
  border-radius:50%!important;
  margin:0!important;
  padding:0!important;
  filter:none!important;
  transform:none!important;
}

#zaloConsultBtn.ai-round-float .zalo-float__text,
#zaloConsultBtn.ai-round-float .zalo-float__icon{
  display:none!important;
}

@media(max-width:390px){
  #zaloConsultBtn.ai-round-float{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    min-height:54px!important;
    max-width:54px!important;
    max-height:54px!important;
  }
  #zaloConsultBtn.ai-round-float .ai-round-logo,
  #zaloConsultBtn.ai-round-float .ai-round-logo img{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
  }
}


/* =========================================================
   V146 - Hiệu ứng nháy + nhãn "Chat tư vấn" trên mobile
   ========================================================= */
@media(max-width:720px){
  #zaloConsultBtn.ai-round-float{
    overflow:visible!important;
  }

  #zaloConsultBtn.ai-round-float::before{
    content:""!important;
    position:absolute!important;
    inset:-7px!important;
    border-radius:50%!important;
    border:2px solid rgba(255,90,0,.34)!important;
    box-shadow:0 0 0 0 rgba(255,90,0,.24)!important;
    animation:aiSupportPulse 1.9s ease-out infinite!important;
    pointer-events:none!important;
  }

  #zaloConsultBtn.ai-round-float::after{
    content:""!important;
    position:absolute!important;
    inset:-2px!important;
    border-radius:50%!important;
    background:rgba(255,90,0,.08)!important;
    animation:aiSupportGlow 1.9s ease-in-out infinite!important;
    pointer-events:none!important;
  }

  #zaloConsultBtn.ai-round-float.is-dragging::before,
  #zaloConsultBtn.ai-round-float.is-dragging::after{
    animation:none!important;
    opacity:0!important;
  }

  .ai-chat-float-label{
    position:fixed;
    z-index:9989;
    height:30px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 10px;
    border-radius:15px;
    background:#fff;
    color:#111827;
    border:1px solid #e5e7eb;
    box-shadow:0 6px 18px rgba(15,23,42,.12);
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
    pointer-events:none;
    animation:aiSupportLabelBlink 2.4s ease-in-out infinite;
  }

  .ai-chat-float-dot{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 0 3px rgba(34,197,94,.12);
  }

  body.ai-chat-open .ai-chat-float-label{
    display:none!important;
  }
}

@media(min-width:721px){
  .ai-chat-float-label{
    display:none!important;
  }
}

@keyframes aiSupportPulse{
  0%{
    transform:scale(.92);
    opacity:.7;
    box-shadow:0 0 0 0 rgba(255,90,0,.28);
  }
  70%{
    transform:scale(1.18);
    opacity:0;
    box-shadow:0 0 0 12px rgba(255,90,0,0);
  }
  100%{
    transform:scale(1.18);
    opacity:0;
  }
}

@keyframes aiSupportGlow{
  0%,100%{opacity:.25}
  50%{opacity:.7}
}

@keyframes aiSupportLabelBlink{
  0%,100%{opacity:1;transform:translateY(0)}
  50%{opacity:.72;transform:translateY(-1px)}
}

@media(prefers-reduced-motion:reduce){
  #zaloConsultBtn.ai-round-float::before,
  #zaloConsultBtn.ai-round-float::after,
  .ai-chat-float-label{
    animation:none!important;
  }
}


/* =========================================================
   V147 - Mobile chat: không tự bật bàn phím + ẩn icon khi mở chat
   ========================================================= */
body.ai-chat-open #zaloConsultBtn.ai-round-float{
  display:none!important;
}

body.ai-chat-open .ai-chat-float-label{
  display:none!important;
}

@media(max-width:720px){
  /* Không để hiệu ứng focus cũ làm trình duyệt gọi bàn phím ngoài ý muốn */
  body.ai-chat-open .ai-chat-form textarea:not(:focus){
    caret-color:transparent;
  }
}


/* =========================================================
   V148 - Hiệu ứng bong bóng chat kiểu Zalo
   ========================================================= */

/* Nhịp nổi nhẹ, không giật mạnh */
@keyframes sddChatFloat {
  0%,100% { transform:translateY(0) scale(1); }
  50% { transform:translateY(-4px) scale(1.02); }
}

/* Vòng sóng lan nhẹ quanh bong bóng */
@keyframes sddChatRing {
  0% {
    transform:scale(.86);
    opacity:.48;
    box-shadow:0 0 0 0 rgba(255,90,0,.25);
  }
  70% {
    transform:scale(1.28);
    opacity:0;
    box-shadow:0 0 0 12px rgba(255,90,0,0);
  }
  100% {
    transform:scale(1.28);
    opacity:0;
  }
}

/* Chấm thông báo nháy nhẹ */
@keyframes sddNotifyBlink {
  0%,100% { transform:scale(1); opacity:1; }
  50% { transform:scale(1.28); opacity:.65; }
}

/* Nhãn Chat tư vấn nhấp nhẹ đồng bộ */
@keyframes sddLabelBreath {
  0%,100% { transform:translateY(0); opacity:1; }
  50% { transform:translateY(-1px); opacity:.84; }
}

#zaloConsultBtn.ai-round-float{
  overflow:visible!important;
}

#zaloConsultBtn.ai-round-float::before{
  content:""!important;
  position:absolute!important;
  inset:-7px!important;
  border-radius:50%!important;
  border:2px solid rgba(255,90,0,.28)!important;
  background:transparent!important;
  pointer-events:none!important;
  animation:sddChatRing 2.1s ease-out infinite!important;
}

#zaloConsultBtn.ai-round-float::after{
  content:""!important;
  position:absolute!important;
  inset:-2px!important;
  border-radius:50%!important;
  background:rgba(255,90,0,.06)!important;
  pointer-events:none!important;
  animation:none!important;
}

.ai-chat-notify-dot{
  position:absolute;
  top:1px;
  right:1px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#ff3b30;
  border:2px solid #fff;
  box-shadow:0 2px 7px rgba(0,0,0,.18);
  z-index:3;
  animation:sddNotifyBlink 1.6s ease-in-out infinite;
}

.ai-chat-float-label{
  animation:sddLabelBreath 2.2s ease-in-out infinite!important;
}

/* Hiệu ứng nổi chỉ dùng khi nút đứng yên */
#zaloConsultBtn.ai-round-float:not(.is-dragging){
  animation:sddChatFloat 2.8s ease-in-out infinite!important;
}

/* Khi kéo thì tắt animation để thao tác mượt */
#zaloConsultBtn.ai-round-float.is-dragging,
#zaloConsultBtn.ai-round-float.is-dragging::before,
#zaloConsultBtn.ai-round-float.is-dragging .ai-chat-notify-dot{
  animation:none!important;
}

/* Khi chatbox mở thì ẩn toàn bộ bubble/label như V147 */
body.ai-chat-open #zaloConsultBtn.ai-round-float,
body.ai-chat-open .ai-chat-float-label{
  display:none!important;
}

@media(max-width:720px){
  #zaloConsultBtn.ai-round-float{
    animation:sddChatFloat 2.8s ease-in-out infinite!important;
  }
}

/* Desktop để yên hơn, không quá gây chú ý */
@media(min-width:721px){
  #zaloConsultBtn.ai-round-float{
    animation:none!important;
  }
  #zaloConsultBtn.ai-round-float::before{
    animation:sddChatRing 2.6s ease-out infinite!important;
  }
}

/* Tôn trọng thiết lập giảm chuyển động của hệ điều hành */
@media(prefers-reduced-motion:reduce){
  #zaloConsultBtn.ai-round-float,
  #zaloConsultBtn.ai-round-float::before,
  .ai-chat-notify-dot,
  .ai-chat-float-label{
    animation:none!important;
  }
}


/* =========================================================
   V149 - Không tự bật bàn phím + Zalo gợi ý ngay khi mở chat
   ========================================================= */
.ai-human-handoff.ai-human-handoff-soft{
  border-color:#dbe7ff!important;
  background:#f8fbff!important;
}
.ai-human-handoff.ai-human-handoff-soft strong{
  color:#174ea6!important;
}
.ai-human-handoff.ai-human-handoff-soft span{
  color:#667085!important;
}
.ai-human-handoff.ai-human-handoff-soft.is-priority{
  border-color:#a9c9ff!important;
  background:#eef5ff!important;
  box-shadow:0 4px 12px rgba(0,104,255,.09);
}
@media(max-width:720px){
  .ai-human-handoff.ai-human-handoff-soft{
    margin-top:5px!important;
    padding:8px!important;
  }
  .ai-human-handoff.ai-human-handoff-soft a{
    height:38px!important;
  }
}


/* =========================================================
   V151 - Bỏ "Nhân viên" trên header, bố trí Zalo thành CTA riêng
   ========================================================= */
.ai-chat-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.ai-chat-brand{
  min-width:0!important;
  flex:1 1 auto!important;
}
.ai-chat-head-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex:0 0 auto!important;
}
.ai-mobile-zalo-direct{
  display:none!important;
}
.ai-chat-close{
  flex:0 0 auto!important;
}

/* Zalo nằm thành một khối hỗ trợ riêng, không chen vào header */
.ai-human-handoff.ai-human-handoff-soft{
  margin:8px 10px 10px!important;
  padding:10px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid #dbe7ff!important;
  border-radius:12px!important;
  background:#f7faff!important;
}
.ai-human-handoff.ai-human-handoff-soft strong{
  font-size:11px!important;
  line-height:1.3!important;
  color:#172b4d!important;
}
.ai-human-handoff.ai-human-handoff-soft span{
  margin-top:2px!important;
  font-size:9px!important;
  line-height:1.4!important;
  color:#667085!important;
}
.ai-human-handoff.ai-human-handoff-soft a{
  min-width:132px!important;
  height:36px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  background:#0068ff!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:800!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:0 3px 8px rgba(0,104,255,.16)!important;
}

@media(max-width:720px){
  .ai-human-handoff.ai-human-handoff-soft{
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding:10px!important;
  }
  .ai-human-handoff.ai-human-handoff-soft a{
    width:100%!important;
    height:40px!important;
    font-size:11px!important;
  }
}


/* =========================================================
   V153 - Nút chat: bỏ Nhân viên + hiện rõ "Tư vấn ngay"
   ========================================================= */
#aiMobileZaloDirect,
.ai-mobile-zalo-direct{
  display:none!important;
  visibility:hidden!important;
}

/* Label đi cùng nút chat nổi */
#aiChatFloatLabel,
.ai-chat-float-label{
  display:flex!important;
  position:absolute!important;
  right:calc(100% + 8px)!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid #e5e7eb!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-shadow:0 5px 18px rgba(15,23,42,.14)!important;
  pointer-events:none!important;
  opacity:1!important;
  visibility:visible!important;
  z-index:2!important;
}

/* Mũi tên nhỏ hướng vào icon */
#aiChatFloatLabel::after,
.ai-chat-float-label::after{
  content:""!important;
  position:absolute!important;
  right:-5px!important;
  top:50%!important;
  width:9px!important;
  height:9px!important;
  background:#fff!important;
  border-top:1px solid #e5e7eb!important;
  border-right:1px solid #e5e7eb!important;
  transform:translateY(-50%) rotate(45deg)!important;
}

/* Khi chat đang mở thì ẩn cả nút và nhãn */
body.ai-chat-open #aiChatFloatLabel,
body.ai-chat-open .ai-chat-float-label{
  display:none!important;
}

@media(max-width:720px){
  #aiChatFloatLabel,
  .ai-chat-float-label{
    min-height:32px!important;
    padding:0 11px!important;
    font-size:11px!important;
    right:calc(100% + 7px)!important;
    animation:aiAdviceLabelPulse 2.2s ease-in-out infinite!important;
  }
}

@keyframes aiAdviceLabelPulse{
  0%,100%{transform:translateY(-50%) scale(1);opacity:1}
  50%{transform:translateY(-50%) scale(1.04);opacity:.88}
}

/* =========================================================
   V154 - Font web cơ bản hiện đại + typography đồng bộ
   ========================================================= */
:root{
  --font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji",sans-serif;
  --text-main:#111827;
  --text-sub:#667085;
}
html{
  font-family:var(--font-ui)!important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body,button,input,select,textarea,option{
  font-family:var(--font-ui)!important;
}
body{
  color:var(--text-main);
  font-weight:400;
  letter-spacing:0;
}
h1,h2,h3,h4,h5,h6,
.product-card h3,.product-title,.detail-title,
.ai-chat-brand strong,.metric strong{
  font-family:var(--font-ui)!important;
  letter-spacing:-.015em!important;
}
p,span,small,label,td,th,li,a,button,input,select,textarea{
  font-family:var(--font-ui)!important;
}
button,.btn,.primary,.secondary,.compare-btn,.detail-btn{
  font-weight:600!important;
  letter-spacing:0!important;
}
.product-price,.price,.detail-price{
  font-weight:700!important;
  letter-spacing:-.01em!important;
}
.product-card h3,.product-name{
  font-weight:700!important;
  line-height:1.35!important;
}
::placeholder{
  font-family:var(--font-ui)!important;
  color:#98a2b3!important;
  opacity:1;
}
input,select,textarea{
  font-size:14px;
  font-weight:400;
  line-height:1.45;
}
.search-input,#searchInput{
  font-size:15px!important;
  font-weight:400!important;
}
.ai-chat-bubble{
  font-size:13px!important;
  line-height:1.5!important;
  font-weight:400!important;
}
.ai-chat-brand strong{
  font-size:13px!important;
  font-weight:700!important;
}
.ai-chat-brand span{
  font-size:10px!important;
  font-weight:400!important;
}
@media(max-width:720px){
  body{font-size:14px!important;}
  .product-card h3,.product-name{
    font-size:15px!important;
    line-height:1.38!important;
    font-weight:700!important;
  }
  .product-price,.price{
    font-size:18px!important;
    font-weight:700!important;
  }
  button,.btn,.primary,.secondary{
    font-weight:600!important;
  }
  .category-filter,.price-filter,.sort-select{
    font-size:13px!important;
    font-weight:600!important;
  }
}


/* =========================================================
   V156 - Đưa khung nhân viên/Zalo lên trên
   ========================================================= */
.ai-human-handoff{
  order:0;
  margin:8px 10px 6px!important;
}

.ai-chat-suggestions{
  order:1;
}

.ai-chat-form{
  order:2;
}

.ai-chat-foot{
  order:3;
}

@media(max-width:720px){
  .ai-human-handoff{
    margin:7px 8px 6px!important;
  }
}

/* =========================================================
   V164 - Header trang chính kiểu thương mại điện tử hiện đại
   ========================================================= */
.sdd-header-v164{
  position:sticky;
  top:0;
  z-index:9800;
  background:#fff;
  border-top:4px solid #ff5a00;
  box-shadow:0 4px 18px rgba(15,23,42,.06);
}

.sdd-top-strip{
  background:linear-gradient(90deg,#ff5a00,#ff6a00);
  color:#fff;
}
.sdd-top-strip-inner{
  width:min(1360px,calc(100% - 32px));
  min-height:34px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:11px;
  font-weight:650;
}
.sdd-top-benefits{
  display:flex;
  gap:22px;
  white-space:nowrap;
}

.sdd-header-v164 .commerce-header-inner{
  width:min(1360px,calc(100% - 32px));
  min-height:82px;
  margin:auto;
  display:grid;
  grid-template-columns:auto auto minmax(320px,1fr) auto;
  align-items:center;
  gap:16px;
  padding:10px 0;
}

.sdd-header-v164 .commerce-logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:#111827;
  text-decoration:none;
}
.sdd-header-v164 .commerce-logo-mark{
  width:48px;
  height:48px;
  border-radius:13px;
  box-shadow:0 6px 16px rgba(255,90,0,.18);
}
.sdd-brand-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.sdd-header-v164 .commerce-logo-text{
  font-size:18px;
  font-weight:900;
  line-height:1.1;
  letter-spacing:-.4px;
  white-space:nowrap;
}
.sdd-brand-copy small{
  margin-top:4px;
  color:#667085;
  font-size:10px;
  font-weight:600;
}

.sdd-header-v164 .commerce-category-menu{
  position:relative;
}
.sdd-header-v164 .commerce-category-btn{
  height:46px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 14px;
  border:1px solid #e3e7ec;
  border-radius:11px;
  background:#fff;
  color:#1f2937;
  cursor:pointer;
  font-size:12px;
}
.sdd-menu-icon{
  color:#ff5a00;
  font-size:15px;
}
.sdd-menu-caret{
  margin-left:3px;
  color:#98a2b3;
}

.sdd-header-search{
  position:relative;
  height:48px;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 34px 48px;
  align-items:center;
  padding:0!important;
  border:1px solid #dfe4ea!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  overflow:visible!important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.02);
}
.sdd-header-search:focus-within{
  border-color:#ff9b67!important;
  background:#fff!important;
  box-shadow:0 0 0 3px rgba(255,90,0,.08)!important;
}
.sdd-header-search input{
  width:100%;
  min-width:0;
  height:46px;
  padding:0 4px!important;
  border:0!important;
  outline:none!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:13px!important;
}
.sdd-search-leading{
  display:grid;
  place-items:center;
  color:#98a2b3;
  font-size:17px;
}
.sdd-header-search #clearSearch{
  position:static!important;
  width:30px!important;
  height:30px!important;
  border:0!important;
  border-radius:50%!important;
  background:#f1f3f5!important;
  color:#98a2b3!important;
  cursor:pointer;
}
.sdd-search-submit{
  width:48px;
  height:48px;
  border:0;
  border-radius:0 11px 11px 0;
  background:#ff5a00;
  color:#fff;
  font-size:21px;
  cursor:pointer;
}
.sdd-header-search .search-suggestions{
  left:0!important;
  right:0!important;
  top:calc(100% + 7px)!important;
}

.sdd-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.sdd-header-action{
  min-width:102px;
  height:46px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 9px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#1f2937;
  text-decoration:none;
  cursor:pointer;
}
.sdd-header-action:hover{
  background:#fff7f2;
}
.sdd-action-icon{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff2ea;
  color:#ff5a00;
  font-size:16px;
}
.sdd-header-action > span:last-child{
  display:flex;
  flex-direction:column;
  text-align:left;
}
.sdd-header-action strong{
  font-size:11px;
}
.sdd-header-action small{
  margin-top:2px;
  color:#98a2b3;
  font-size:9px;
}

.sdd-header-nav{
  border-top:1px solid #eef0f3;
  background:#fff;
}
.sdd-header-nav-inner{
  width:min(1360px,calc(100% - 32px));
  min-height:52px;
  margin:auto;
  display:grid;
  grid-template-columns:220px minmax(0,1fr) auto;
  align-items:center;
  gap:26px;
}
.sdd-nav-category{
  height:38px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 14px;
  border:0;
  border-radius:9px;
  background:#ff5a00;
  color:#fff;
  cursor:pointer;
  font-size:12px;
}
.sdd-main-nav{
  height:52px;
  display:flex;
  align-items:center;
  gap:28px;
}
.sdd-main-nav a,
.sdd-main-nav button{
  position:relative;
  height:52px;
  display:flex;
  align-items:center;
  border:0;
  background:none;
  color:#344054;
  text-decoration:none;
  font-size:12px;
  font-weight:650;
  cursor:pointer;
  white-space:nowrap;
}
.sdd-main-nav a:hover,
.sdd-main-nav button:hover,
.sdd-main-nav a.active{
  color:#ff5a00;
}
.sdd-main-nav a.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  border-radius:2px;
  background:#ff5a00;
}
.sdd-nav-store{
  height:38px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 13px;
  border:1px solid #ffe0cf;
  border-radius:9px;
  background:#fff8f4;
  color:#d94800;
  text-decoration:none;
  font-size:11px;
}
.sdd-nav-store span{
  font-size:17px;
}
.sdd-mobile-menu-btn,
.sdd-mobile-drawer,
.sdd-header-v164 .commerce-header-note{
  display:none;
}

/* Search/category dropdown keeps above cards */
.sdd-header-v164 .commerce-category-dropdown{
  z-index:9999!important;
}

/* Tablet */
@media(max-width:1080px){
  .sdd-top-strip{
    display:none;
  }
  .sdd-header-v164 .commerce-header-inner{
    grid-template-columns:auto minmax(260px,1fr) auto;
    min-height:72px;
  }
  .sdd-header-v164 .commerce-category-menu{
    display:none;
  }
  .sdd-brand-copy small{
    display:none;
  }
  .sdd-header-actions .sdd-store-action{
    display:none;
  }
  .sdd-header-nav-inner{
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  .sdd-main-nav{
    gap:18px;
  }
}

/* Mobile */
@media(max-width:720px){
  .sdd-header-v164{
    border-top-width:3px;
  }

  .sdd-header-v164 .commerce-header-inner{
    width:100%;
    min-height:66px;
    display:grid;
    grid-template-columns:40px auto minmax(0,1fr);
    gap:8px;
    padding:8px 10px;
  }

  .sdd-mobile-menu-btn{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:0;
    border-radius:9px;
    background:#f5f6f8;
    color:#111827;
    font-size:19px;
    cursor:pointer;
  }

  .sdd-header-v164 .commerce-logo-mark{
    width:40px;
    height:40px;
    border-radius:11px;
  }
  .sdd-header-v164 .commerce-logo-text{
    display:none;
  }
  .sdd-brand-copy{
    display:none;
  }

  .sdd-header-search{
    height:42px;
    grid-template-columns:30px minmax(0,1fr) 30px!important;
    border-radius:10px!important;
  }
  .sdd-header-search input{
    height:40px;
    font-size:12px!important;
  }
  .sdd-search-submit{
    display:none;
  }
  .sdd-search-leading{
    font-size:15px;
  }
  .sdd-header-search #clearSearch{
    width:26px!important;
    height:26px!important;
  }

  .sdd-header-actions,
  .sdd-header-nav{
    display:none!important;
  }

  .sdd-mobile-drawer{
    position:fixed;
    inset:0;
    z-index:10020;
    padding:16px;
    background:rgba(15,23,42,.42);
  }
  .sdd-mobile-drawer:not([hidden]){
    display:block;
  }
  .sdd-mobile-drawer > *{
    width:min(86vw,320px);
    margin-left:0;
  }
  .sdd-mobile-drawer-head,
  .sdd-mobile-drawer nav{
    background:#fff;
  }
  .sdd-mobile-drawer-head{
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    border-radius:14px 14px 0 0;
    border-bottom:1px solid #eef0f3;
  }
  .sdd-mobile-drawer-head button{
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#f2f4f7;
    font-size:20px;
  }
  .sdd-mobile-drawer nav{
    display:flex;
    flex-direction:column;
    padding:8px;
    border-radius:0 0 14px 14px;
  }
  .sdd-mobile-drawer nav a,
  .sdd-mobile-drawer nav button{
    min-height:46px;
    display:flex;
    align-items:center;
    padding:0 12px;
    border:0;
    border-radius:9px;
    background:#fff;
    color:#1f2937;
    text-decoration:none;
    font-size:13px;
    font-weight:650;
    text-align:left;
  }
  .sdd-mobile-drawer nav a:hover{
    background:#f8fafc;
  }
  .sdd-mobile-drawer nav button{
    margin-top:6px;
    justify-content:center;
    background:#ff5a00;
    color:#fff;
  }
}

/* Very small mobile */
@media(max-width:390px){
  .sdd-header-v164 .commerce-header-inner{
    grid-template-columns:38px 40px minmax(0,1fr);
    padding-left:7px;
    padding-right:7px;
  }
}


/* =========================================================
   V165 - Cân đối lại header desktop
   ========================================================= */
@media(min-width:1081px){
  .sdd-header-v164{
    box-shadow:0 3px 12px rgba(15,23,42,.045)!important;
  }

  /* Thanh cam gọn hơn */
  .sdd-top-strip-inner{
    width:min(1280px,calc(100% - 40px))!important;
    min-height:30px!important;
    font-size:10px!important;
  }
  .sdd-top-benefits{
    gap:18px!important;
  }

  /* Hàng chính cân đối lại theo 3 vùng: logo / search / action */
  .sdd-header-v164 .commerce-header-inner{
    width:min(1280px,calc(100% - 40px))!important;
    min-height:74px!important;
    display:grid!important;
    grid-template-columns:210px 126px minmax(420px,1fr) 220px!important;
    align-items:center!important;
    gap:14px!important;
    padding:8px 0!important;
  }

  .sdd-header-v164 .commerce-logo{
    gap:9px!important;
  }
  .sdd-header-v164 .commerce-logo-mark{
    width:44px!important;
    height:44px!important;
    border-radius:11px!important;
  }
  .sdd-header-v164 .commerce-logo-text{
    font-size:17px!important;
  }
  .sdd-brand-copy small{
    font-size:9px!important;
    margin-top:3px!important;
  }

  .sdd-header-v164 .commerce-category-btn{
    width:126px!important;
    height:44px!important;
    justify-content:center!important;
    padding:0 12px!important;
    gap:7px!important;
  }

  .sdd-header-search{
    height:44px!important;
    grid-template-columns:32px minmax(0,1fr) 30px 44px!important;
  }
  .sdd-header-search input{
    height:42px!important;
    font-size:12px!important;
  }
  .sdd-search-submit{
    width:44px!important;
    height:44px!important;
  }

  .sdd-header-actions{
    justify-content:flex-end!important;
    gap:6px!important;
  }
  .sdd-header-action{
    min-width:100px!important;
    height:42px!important;
    padding:0 7px!important;
    gap:7px!important;
  }
  .sdd-action-icon{
    width:28px!important;
    height:28px!important;
    font-size:14px!important;
  }
  .sdd-header-action strong{
    font-size:10px!important;
  }
  .sdd-header-action small{
    font-size:8px!important;
  }

  /* Ẩn dòng chữ nhỏ dư thừa dưới logo */
  .sdd-header-v164 .commerce-header-note{
    display:none!important;
  }

  /* Hàng menu dưới thấp hơn, thẳng hàng */
  .sdd-header-nav-inner{
    width:min(1280px,calc(100% - 40px))!important;
    min-height:48px!important;
    grid-template-columns:210px minmax(0,1fr) 180px!important;
    gap:20px!important;
  }

  .sdd-nav-category{
    width:210px!important;
    height:38px!important;
    justify-content:flex-start!important;
    padding:0 16px!important;
  }

  .sdd-main-nav{
    height:48px!important;
    gap:24px!important;
    justify-content:flex-start!important;
  }
  .sdd-main-nav a,
  .sdd-main-nav button{
    height:48px!important;
    font-size:11px!important;
  }

  .sdd-nav-store{
    width:180px!important;
    height:36px!important;
    justify-content:center!important;
    font-size:10px!important;
    padding:0 10px!important;
  }
}

/* Laptop nhỏ: giảm menu, giữ search là trọng tâm */
@media(min-width:1081px) and (max-width:1280px){
  .sdd-header-v164 .commerce-header-inner,
  .sdd-header-nav-inner,
  .sdd-top-strip-inner{
    width:min(1180px,calc(100% - 28px))!important;
  }

  .sdd-header-v164 .commerce-header-inner{
    grid-template-columns:188px 116px minmax(360px,1fr) 190px!important;
    gap:10px!important;
  }

  .sdd-header-actions{
    gap:2px!important;
  }
  .sdd-header-action{
    min-width:90px!important;
  }

  .sdd-header-nav-inner{
    grid-template-columns:188px minmax(0,1fr) 166px!important;
    gap:15px!important;
  }
  .sdd-nav-category{
    width:188px!important;
  }
  .sdd-main-nav{
    gap:18px!important;
  }
  .sdd-nav-store{
    width:166px!important;
  }
}



/* =========================================================
   V167 - Khung nhân viên/Zalo gọn hơn
   ========================================================= */
.ai-human-handoff.ai-human-handoff-soft{
  margin:6px 8px!important;
  min-height:46px!important;
  padding:6px 8px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid #dbe7ff!important;
  border-radius:11px!important;
  background:#f8fbff!important;
  box-shadow:none!important;
}

.ai-human-handoff.ai-human-handoff-soft > div{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}

.ai-human-handoff.ai-human-handoff-soft strong{
  margin:0!important;
  color:#17345f!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

.ai-human-handoff.ai-human-handoff-soft span{
  margin:0!important;
  color:#7a8699!important;
  font-size:9px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}

.ai-human-handoff.ai-human-handoff-soft a{
  min-width:auto!important;
  width:auto!important;
  height:32px!important;
  padding:0 11px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #a9c9ff!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0068ff!important;
  box-shadow:none!important;
  font-size:10px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

.ai-human-handoff.ai-human-handoff-soft a:hover{
  background:#eef5ff!important;
}

/* Nếu AI thực sự cần chuyển nhân viên thì chỉ nhấn nhẹ */
.ai-human-handoff.ai-human-handoff-soft.is-priority{
  border-color:#9ec3ff!important;
  background:#f3f8ff!important;
  box-shadow:0 2px 8px rgba(0,104,255,.07)!important;
}

/* Mobile giữ đúng 1 hàng, tránh CTA chiếm cả khối */
@media(max-width:720px){
  .ai-human-handoff.ai-human-handoff-soft{
    margin:5px 8px!important;
    min-height:44px!important;
    padding:5px 7px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:6px!important;
  }

  .ai-human-handoff.ai-human-handoff-soft > div{
    overflow:hidden!important;
  }

  .ai-human-handoff.ai-human-handoff-soft strong{
    font-size:10px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .ai-human-handoff.ai-human-handoff-soft span{
    display:none!important;
  }

  .ai-human-handoff.ai-human-handoff-soft a{
    width:auto!important;
    height:32px!important;
    padding:0 10px!important;
    font-size:10px!important;
  }
}



/* =========================================================
   V170 - Đưa nhân viên hỗ trợ lên đầu chatbox
   ========================================================= */
.ai-chat-head + .ai-human-handoff{
  margin:6px 8px 5px!important;
}

.ai-human-handoff + .ai-chat-messages{
  border-top:0!important;
}

/* Đầu box chat: CTA nhân viên rõ nhưng vẫn gọn */
.ai-chat-panel .ai-human-handoff.ai-human-handoff-soft{
  position:relative!important;
  z-index:2!important;
  min-height:42px!important;
  background:#f8fbff!important;
  border-color:#d7e6ff!important;
}

/* Mobile: nằm sát header, không chiếm quá nhiều diện tích */
@media(max-width:720px){
  .ai-chat-head + .ai-human-handoff{
    margin:5px 7px 4px!important;
  }
  .ai-chat-panel .ai-human-handoff.ai-human-handoff-soft{
    min-height:40px!important;
  }
}


/* =========================================================
   V171 - Fix DOM chatbox + Zalo ở đầu box
   ========================================================= */
.ai-chat-panel .ai-human-handoff.ai-human-handoff-soft{
  margin:6px 8px 5px!important;
  min-height:44px!important;
  padding:6px 8px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid #dbe7ff!important;
  border-radius:11px!important;
  background:#f8fbff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

.ai-chat-panel .ai-human-handoff-copy{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:2px!important;
}

.ai-chat-panel .ai-human-handoff-copy strong{
  margin:0!important;
  color:#17345f!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:800!important;
}

.ai-chat-panel .ai-human-handoff-copy span{
  margin:0!important;
  color:#7a8699!important;
  font-size:9px!important;
  line-height:1.25!important;
}

.ai-chat-panel .ai-human-handoff.ai-human-handoff-soft a{
  width:auto!important;
  min-width:76px!important;
  height:32px!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #a9c9ff!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0068ff!important;
  font-size:10px!important;
  font-weight:800!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}

.ai-chat-panel .ai-chat-messages{
  min-height:0!important;
  border:0!important;
}

@media(max-width:720px){
  .ai-chat-panel .ai-human-handoff.ai-human-handoff-soft{
    margin:5px 7px 4px!important;
    min-height:42px!important;
    padding:5px 7px!important;
  }

  .ai-chat-panel .ai-human-handoff-copy span{
    display:none!important;
  }

  .ai-chat-panel .ai-human-handoff.ai-human-handoff-soft a{
    min-width:72px!important;
    height:31px!important;
  }
}


/* =========================================================
   V172 - Tăng cỡ chữ header/trang đầu
   ========================================================= */
@media(min-width:761px){
  /* Logo / thương hiệu */
  .site-brand strong,
  .header-brand strong,
  .brand-name{
    font-size:18px!important;
    font-weight:800!important;
    line-height:1.15!important;
  }

  .site-brand span,
  .header-brand span,
  .brand-subtitle{
    font-size:11px!important;
    line-height:1.25!important;
  }

  /* Nút danh mục */
  .category-menu-btn,
  .header-category-btn,
  .catalog-menu-button{
    font-size:14px!important;
    font-weight:600!important;
  }

  /* Menu chính */
  .main-nav a,
  .main-nav button,
  .header-nav a,
  .desktop-nav a,
  .nav-links a{
    font-size:14px!important;
    font-weight:600!important;
    line-height:1.3!important;
  }

  /* Ô tìm kiếm */
  .search-box input,
  .header-search input,
  #searchInput{
    font-size:14px!important;
  }

  /* Tư vấn / cửa hàng bên phải */
  .header-actions strong,
  .header-actions a,
  .header-support strong,
  .header-store strong{
    font-size:13px!important;
    font-weight:700!important;
  }

  .header-actions span,
  .header-support span,
  .header-store span{
    font-size:10px!important;
  }

  /* Thanh cam trên cùng */
  .topbar,
  .top-bar,
  .header-top{
    font-size:11px!important;
    font-weight:600!important;
  }
}


/* =========================================================
   V175 - Nút chat mobile không bị che chữ ở mép màn hình
   ========================================================= */
@media(max-width:720px){
  .ai-chat-launcher{
    /* Launcher có thể bị kéo sát hai mép; cho phép label tự đổi phía bằng JS/CSS class */
    max-width:58px!important;
    width:58px!important;
    height:58px!important;
    padding:0!important;
    border-radius:50%!important;
    overflow:visible!important;
  }

  .ai-chat-launcher .ai-chat-launcher-icon{
    width:58px!important;
    height:58px!important;
    border-radius:50%!important;
  }

  .ai-chat-launcher .ai-chat-launcher-text{
    display:none!important;
  }

  /* Mặc định icon ở bên trái: chữ nằm bên phải */
  .ai-chat-launcher:not(.chat-near-right) #aiChatFloatLabel,
  .ai-chat-launcher:not(.chat-near-right) .ai-chat-float-label{
    left:calc(100% + 8px)!important;
    right:auto!important;
  }

  .ai-chat-launcher:not(.chat-near-right) #aiChatFloatLabel::after,
  .ai-chat-launcher:not(.chat-near-right) .ai-chat-float-label::after{
    left:-5px!important;
    right:auto!important;
    border-top:0!important;
    border-right:0!important;
    border-left:1px solid #e5e7eb!important;
    border-bottom:1px solid #e5e7eb!important;
  }

  /* Icon ở bên phải: chữ tự chạy sang trái để không tràn khỏi màn hình */
  .ai-chat-launcher.chat-near-right #aiChatFloatLabel,
  .ai-chat-launcher.chat-near-right .ai-chat-float-label{
    right:calc(100% + 8px)!important;
    left:auto!important;
  }

  .ai-chat-launcher.chat-near-right #aiChatFloatLabel::after,
  .ai-chat-launcher.chat-near-right .ai-chat-float-label::after{
    right:-5px!important;
    left:auto!important;
    border-left:0!important;
    border-bottom:0!important;
    border-top:1px solid #e5e7eb!important;
    border-right:1px solid #e5e7eb!important;
  }
}


/* =========================================================
   V177 - Icon robot riêng cho nút AI chat
   ========================================================= */
#zaloConsultBtn.ai-round-float .ai-round-logo{
  overflow:hidden!important;
  background:#fff!important;
  border-radius:50%!important;
}
#zaloConsultBtn.ai-round-float .ai-round-logo img{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:50%!important;
}

/* Icon chat nổi lớn hơn nhẹ để robot dễ nhận biết trên điện thoại */
@media(max-width:720px){
  #zaloConsultBtn.ai-round-float{
    width:62px!important;
    height:62px!important;
    min-width:62px!important;
    min-height:62px!important;
    max-width:62px!important;
    max-height:62px!important;
  }
  #zaloConsultBtn.ai-round-float .ai-round-logo{
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
    max-width:56px!important;
    max-height:56px!important;
  }
}


/* V178 - Icon robot đã có chữ tư vấn, ẩn nhãn nổi bên ngoài */
#zaloConsultBtn #aiChatFloatLabel,
#zaloConsultBtn .ai-chat-float-label{
  display:none!important;
}


/* =========================================================
   V179 - Icon chat AI mới: robot + chữ TƯ VẤN NGAY
   ========================================================= */
#zaloConsultBtn.ai-round-float{
  overflow:visible!important;
}
#zaloConsultBtn.ai-round-float .ai-round-logo{
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  min-height:64px!important;
  max-width:64px!important;
  max-height:64px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:0 5px 16px rgba(0,0,0,.18)!important;
}
#zaloConsultBtn.ai-round-float .ai-round-logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
}

/* Không hiện thêm chữ bên ngoài vì icon đã có TƯ VẤN NGAY */
#zaloConsultBtn #aiChatFloatLabel,
#zaloConsultBtn .ai-chat-float-label,
#zaloConsultBtn .ai-chat-launcher-text{
  display:none!important;
}

@media(max-width:720px){
  #zaloConsultBtn.ai-round-float{
    width:72px!important;
    height:72px!important;
    min-width:72px!important;
    min-height:72px!important;
    max-width:72px!important;
    max-height:72px!important;
    padding:4px!important;
  }
  #zaloConsultBtn.ai-round-float .ai-round-logo{
    width:66px!important;
    height:66px!important;
    min-width:66px!important;
    min-height:66px!important;
    max-width:66px!important;
    max-height:66px!important;
  }
}


/* =========================================================
   V181 - Fix icon chat tròn, không lộ nền vuông/đen
   ========================================================= */
#zaloConsultBtn.ai-round-float{
  border-radius:50%!important;
  overflow:hidden!important;
  background:transparent!important;
  box-shadow:0 6px 18px rgba(15,23,42,.18)!important;
}

#zaloConsultBtn.ai-round-float .ai-round-logo{
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  overflow:hidden!important;
  background:transparent!important;
  box-shadow:none!important;
}

#zaloConsultBtn.ai-round-float .ai-round-logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:50%!important;
  clip-path:circle(50% at 50% 50%)!important;
  background:transparent!important;
}

/* Nếu ảnh upload có nền vuông tối ở 4 góc, chỉ phần tròn trung tâm mới được hiển thị */
#zaloConsultBtn.ai-round-float img{
  -webkit-mask-image:radial-gradient(circle at center,#000 0 70%,transparent 71%)!important;
  mask-image:radial-gradient(circle at center,#000 0 70%,transparent 71%)!important;
}

@media(max-width:720px){
  #zaloConsultBtn.ai-round-float{
    width:72px!important;
    height:72px!important;
    min-width:72px!important;
    min-height:72px!important;
    max-width:72px!important;
    max-height:72px!important;
    padding:0!important;
  }
}


/* =========================================================
   V183 - Hiệu ứng nháy / pulse cho nút chat AI
   Nhẹ, giống bong bóng chat: phóng nhẹ + vòng sáng lan ra
   ========================================================= */
#zaloConsultBtn.ai-round-float{
  position:fixed;
  isolation:isolate;
  animation:aiChatButtonPulse 2.2s ease-in-out infinite!important;
}

/* Vòng sáng lan ra phía sau icon */
#zaloConsultBtn.ai-round-float::before,
#zaloConsultBtn.ai-round-float::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:50%;
  pointer-events:none;
  z-index:-1;
  border:2px solid rgba(255,90,0,.55);
  opacity:0;
  animation:aiChatRingPulse 2.2s ease-out infinite;
}

#zaloConsultBtn.ai-round-float::after{
  animation-delay:1.1s;
}

@keyframes aiChatButtonPulse{
  0%,100%{transform:scale(1)}
  8%{transform:scale(1.08)}
  16%{transform:scale(1)}
  24%{transform:scale(1.05)}
  32%{transform:scale(1)}
}

@keyframes aiChatRingPulse{
  0%{
    transform:scale(.92);
    opacity:.65;
  }
  42%{
    transform:scale(1.38);
    opacity:0;
  }
  100%{
    transform:scale(1.38);
    opacity:0;
  }
}

/* Khi rê chuột hoặc đang kéo thì ngừng nháy để thao tác ổn định */
#zaloConsultBtn.ai-round-float:hover{
  animation:none!important;
  transform:scale(1.06);
}

/* Tôn trọng cài đặt giảm chuyển động của thiết bị */
@media (prefers-reduced-motion:reduce){
  #zaloConsultBtn.ai-round-float,
  #zaloConsultBtn.ai-round-float::before,
  #zaloConsultBtn.ai-round-float::after{
    animation:none!important;
  }
}


/* =========================================================
   V184 - Pulse rõ ràng, không xung đột kéo thả
   ========================================================= */

/* Tắt animation V183 dùng transform vì nút kéo thả cũng dùng transform/position */
#zaloConsultBtn.ai-round-float{
  animation:none!important;
}

/* Pseudo ring cũ bị overflow:hidden cắt mất */
#zaloConsultBtn.ai-round-float::before,
#zaloConsultBtn.ai-round-float::after{
  display:none!important;
  animation:none!important;
}

/* Nháy trực tiếp trên phần ảnh bên trong nên luôn nhìn thấy */
#zaloConsultBtn.ai-round-float .ai-round-logo{
  animation:aiChatVisibleGlow 1.65s ease-in-out infinite!important;
  will-change:filter,box-shadow,opacity;
}

/* Tạo vòng sáng bằng box-shadow ngay trên hình tròn, không bị cắt */
#zaloConsultBtn.ai-round-float .ai-round-logo img{
  animation:aiChatImageFlash 1.65s ease-in-out infinite!important;
  will-change:filter,opacity;
}

@keyframes aiChatVisibleGlow{
  0%,100%{
    box-shadow:
      0 0 0 0 rgba(255,90,0,0),
      0 5px 16px rgba(15,23,42,.18)!important;
    filter:brightness(1);
  }
  20%{
    box-shadow:
      0 0 0 5px rgba(255,90,0,.34),
      0 0 20px 5px rgba(255,90,0,.28),
      0 6px 18px rgba(15,23,42,.22)!important;
    filter:brightness(1.16);
  }
  40%{
    box-shadow:
      0 0 0 10px rgba(255,90,0,.12),
      0 0 26px 8px rgba(255,90,0,.16),
      0 5px 16px rgba(15,23,42,.18)!important;
    filter:brightness(1.04);
  }
  55%,90%{
    box-shadow:
      0 0 0 0 rgba(255,90,0,0),
      0 5px 16px rgba(15,23,42,.18)!important;
    filter:brightness(1);
  }
}

@keyframes aiChatImageFlash{
  0%,100%{filter:brightness(1) saturate(1);opacity:1}
  20%{filter:brightness(1.28) saturate(1.18);opacity:1}
  38%{filter:brightness(1.03) saturate(1.05);opacity:.96}
  55%,90%{filter:brightness(1) saturate(1);opacity:1}
}

/* Mobile làm hiệu ứng rõ hơn một chút */
@media(max-width:720px){
  #zaloConsultBtn.ai-round-float .ai-round-logo{
    animation-duration:1.45s!important;
  }
  #zaloConsultBtn.ai-round-float .ai-round-logo img{
    animation-duration:1.45s!important;
  }
}

/* Khi đang hover/touch thì ngừng nháy để dễ thao tác */
#zaloConsultBtn.ai-round-float:hover .ai-round-logo,
#zaloConsultBtn.ai-round-float:hover .ai-round-logo img{
  animation-play-state:paused!important;
}


/* =========================================================
   V185 - Chat AI: nháy mạnh + Zoom In / Zoom Out
   Animation đặt trên phần logo con để KHÔNG xung đột kéo thả nút cha.
   ========================================================= */

/* Tắt animation cũ trên logo/image để V185 kiểm soát hoàn toàn */
#zaloConsultBtn.ai-round-float .ai-round-logo,
#zaloConsultBtn.ai-round-float .ai-round-logo img{
  animation:none!important;
}

/* Zoom rõ theo 2 nhịp, có glow cam */
#zaloConsultBtn.ai-round-float .ai-round-logo{
  transform-origin:center center!important;
  will-change:transform,filter,box-shadow;
  animation:aiChatStrongZoom 1.8s cubic-bezier(.22,.8,.32,1) infinite!important;
}

/* Ảnh bên trong chớp sáng đồng bộ */
#zaloConsultBtn.ai-round-float .ai-round-logo img{
  will-change:filter;
  animation:aiChatStrongFlash 1.8s ease-in-out infinite!important;
}

@keyframes aiChatStrongZoom{
  0%{
    transform:scale(.92);
    filter:brightness(1);
    box-shadow:
      0 0 0 0 rgba(255,90,0,0),
      0 4px 14px rgba(15,23,42,.18)!important;
  }
  12%{
    transform:scale(1.18);
    filter:brightness(1.2);
    box-shadow:
      0 0 0 5px rgba(255,90,0,.45),
      0 0 24px 7px rgba(255,90,0,.34),
      0 7px 20px rgba(15,23,42,.22)!important;
  }
  24%{
    transform:scale(.96);
    filter:brightness(1.03);
    box-shadow:
      0 0 0 9px rgba(255,90,0,.14),
      0 0 20px 5px rgba(255,90,0,.18),
      0 5px 16px rgba(15,23,42,.18)!important;
  }
  36%{
    transform:scale(1.12);
    filter:brightness(1.14);
    box-shadow:
      0 0 0 4px rgba(255,90,0,.34),
      0 0 20px 6px rgba(255,90,0,.26),
      0 6px 18px rgba(15,23,42,.2)!important;
  }
  48%{
    transform:scale(1);
    filter:brightness(1);
    box-shadow:
      0 0 0 0 rgba(255,90,0,0),
      0 5px 16px rgba(15,23,42,.18)!important;
  }
  100%{
    transform:scale(.92);
    filter:brightness(1);
    box-shadow:
      0 0 0 0 rgba(255,90,0,0),
      0 4px 14px rgba(15,23,42,.18)!important;
  }
}

@keyframes aiChatStrongFlash{
  0%,48%,100%{
    filter:brightness(1) saturate(1);
  }
  12%{
    filter:brightness(1.42) saturate(1.28);
  }
  24%{
    filter:brightness(1.06) saturate(1.08);
  }
  36%{
    filter:brightness(1.3) saturate(1.2);
  }
}

/* Mobile: tăng độ chú ý thêm một chút */
@media(max-width:720px){
  #zaloConsultBtn.ai-round-float .ai-round-logo,
  #zaloConsultBtn.ai-round-float .ai-round-logo img{
    animation-duration:1.55s!important;
  }
}

/* Khi khách đang bấm/giữ/kéo thì tạm dừng để thao tác không bị khó */
#zaloConsultBtn.ai-round-float:active .ai-round-logo,
#zaloConsultBtn.ai-round-float:active .ai-round-logo img{
  animation-play-state:paused!important;
}

/* =========================================================
   V186 - HEADER DESKTOP RỘNG HƠN
   ========================================================= */
@media (min-width:1081px){
  .sdd-top-strip-inner,
  .sdd-header-v164 .commerce-header-inner,
  .sdd-header-nav-inner{
    width:calc(100% - 56px)!important;
    max-width:1600px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .sdd-header-v164 .commerce-header-inner{
    grid-template-columns:auto auto minmax(460px,1fr) auto!important;
    gap:18px!important;
    min-height:78px!important;
  }
  .sdd-header-search{width:100%!important;max-width:none!important;}
  .sdd-header-actions{flex:0 0 auto!important;}
  .sdd-header-nav-inner{
    grid-template-columns:230px minmax(0,1fr) auto!important;
    gap:28px!important;
  }
  .sdd-main-nav{justify-content:flex-start!important;gap:32px!important;}
}
@media (min-width:1500px){
  .sdd-top-strip-inner,
  .sdd-header-v164 .commerce-header-inner,
  .sdd-header-nav-inner{
    width:calc(100% - 72px)!important;
    max-width:1680px!important;
  }
  .sdd-header-v164 .commerce-header-inner{
    grid-template-columns:auto auto minmax(600px,1fr) auto!important;
    gap:20px!important;
  }
  .sdd-main-nav{gap:36px!important;}
}


/* =========================================================
   V187 - Tăng font header desktop + cân lại tỷ lệ
   ========================================================= */
@media (min-width:1081px){
  /* Thanh cam trên cùng */
  .sdd-top-strip,
  .sdd-top-strip a,
  .sdd-top-strip span{
    font-size:12px!important;
    line-height:1.35!important;
    font-weight:600!important;
  }

  /* Logo */
  .sdd-header-v164 .brand-name,
  .sdd-header-v164 .logo-title,
  .sdd-header-v164 .brand-title{
    font-size:19px!important;
    line-height:1.05!important;
    font-weight:800!important;
  }

  .sdd-header-v164 .brand-subtitle,
  .sdd-header-v164 .logo-subtitle{
    font-size:10.5px!important;
    line-height:1.25!important;
  }

  /* Nút danh mục ở hàng chính */
  .sdd-header-v164 .category-toggle,
  .sdd-header-v164 .catalog-toggle,
  .sdd-header-v164 .header-category-btn{
    font-size:14px!important;
    font-weight:700!important;
  }

  /* Search */
  .sdd-header-search input,
  .sdd-header-search input::placeholder{
    font-size:14px!important;
  }

  .sdd-header-search{
    min-height:48px!important;
  }

  /* Tư vấn / Cửa hàng bên phải */
  .sdd-header-actions,
  .sdd-header-actions a,
  .sdd-header-actions button,
  .sdd-header-actions strong{
    font-size:12.5px!important;
  }

  .sdd-header-actions small,
  .sdd-header-actions span:not(.icon){
    font-size:10.5px!important;
  }

  /* Thanh menu thứ hai */
  .sdd-header-nav-inner,
  .sdd-header-nav-inner a,
  .sdd-main-nav a,
  .sdd-main-nav button{
    font-size:13.5px!important;
    font-weight:650!important;
  }

  /* Nút Danh mục sản phẩm */
  .sdd-header-nav-inner .category-button,
  .sdd-header-nav-inner .catalog-button,
  .sdd-header-nav-inner > button:first-child{
    font-size:14px!important;
    font-weight:750!important;
  }

  /* Cửa hàng Quy Nhơn phía phải */
  .sdd-header-nav-inner .store-link,
  .sdd-header-nav-inner .store-button{
    font-size:12.5px!important;
    font-weight:700!important;
  }

  /* Tăng nhẹ chiều cao để font lớn không bị chật */
  .sdd-header-v164 .commerce-header-inner{
    min-height:84px!important;
  }

  .sdd-header-nav-inner{
    min-height:54px!important;
  }

  .sdd-main-nav{
    gap:36px!important;
  }
}

/* Desktop lớn: tăng thêm rất nhẹ, tránh cảm giác chữ bé trên màn 2K */
@media (min-width:1500px){
  .sdd-header-search input,
  .sdd-header-search input::placeholder{
    font-size:14.5px!important;
  }

  .sdd-main-nav a,
  .sdd-main-nav button{
    font-size:14px!important;
  }

  .sdd-header-actions,
  .sdd-header-actions a,
  .sdd-header-actions button,
  .sdd-header-actions strong{
    font-size:13px!important;
  }
}


/* =========================================================
   V188 - Làm nổi bật trạng thái CÒN HÀNG / HẾT HÀNG
   ========================================================= */

/* Badge trạng thái chung */
.product-card .stock,
.product-card .stock-status,
.product-card .availability,
.product-card [class*="stock"],
.product-card [class*="status"]{
  min-height:31px!important;
  padding:6px 11px!important;
  border-radius:999px!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  white-space:nowrap!important;
}

/* Các class thường dùng cho CÒN HÀNG */
.product-card .in-stock,
.product-card .stock-in,
.product-card .available,
.product-card .status-in-stock,
.product-card [data-stock="in"],
.product-card [data-status="in-stock"]{
  color:#07883f!important;
  background:#e9f9ef!important;
  border:1px solid #a9e7bd!important;
  box-shadow:0 2px 7px rgba(16,185,129,.10)!important;
}

/* Các class thường dùng cho HẾT HÀNG */
.product-card .out-of-stock,
.product-card .stock-out,
.product-card .unavailable,
.product-card .status-out-of-stock,
.product-card [data-stock="out"],
.product-card [data-status="out-of-stock"]{
  color:#697386!important;
  background:#eef1f4!important;
  border:1px solid #d9dee5!important;
  box-shadow:0 2px 6px rgba(15,23,42,.05)!important;
}

/* Mobile: badge vẫn rõ nhưng không chiếm quá nhiều chỗ */
@media(max-width:720px){
  .product-card .stock,
  .product-card .stock-status,
  .product-card .availability,
  .product-card [class*="stock"],
  .product-card [class*="status"]{
    min-height:30px!important;
    padding:6px 10px!important;
    font-size:11.5px!important;
  }
}


/* =========================================================
   V189 - Đưa Còn hàng / Hết hàng sát ngay bên cạnh giá
   ========================================================= */
.detail-heading{
  justify-content:flex-start!important;
}

.detail-price-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  margin:0 0 8px!important;
}

.detail-price-row .detail-price{
  margin:0!important;
}

.detail-price-row .detail-status-top{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:7px 13px!important;
  border:1px solid #a9e7bd!important;
  border-radius:999px!important;
  background:#e9f9ef!important;
  color:#07883f!important;
  font-size:12.5px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-shadow:0 2px 7px rgba(16,185,129,.10)!important;
}

.detail-price-row .detail-status-top.out{
  border-color:#d9dee5!important;
  background:#eef1f4!important;
  color:#697386!important;
  box-shadow:0 2px 6px rgba(15,23,42,.05)!important;
}

@media(max-width:720px){
  .detail-price-row{
    gap:9px!important;
    margin-bottom:7px!important;
  }

  .detail-price-row .detail-status-top{
    min-height:29px!important;
    padding:6px 10px!important;
    font-size:11.5px!important;
  }
}


/* =========================================================
   V190 - Thiết kế lại khu vực chi tiết sản phẩm cân đối hơn
   ========================================================= */

/* Khung tổng */
.product-detail-card,
.detail-card,
.product-detail-layout{
  border-radius:18px!important;
}

/* Desktop: ảnh / thông tin / sản phẩm tương tự cân theo 3 cột */
@media(min-width:981px){
  .product-detail-layout{
    display:grid!important;
    grid-template-columns:minmax(320px, .95fr) minmax(430px, 1.35fr) minmax(300px, .9fr)!important;
    gap:28px!important;
    align-items:start!important;
  }

  .product-detail-image,
  .detail-media{
    min-height:390px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:22px!important;
    border-radius:16px!important;
    background:#fafafa!important;
  }

  .product-detail-image img,
  .detail-media img{
    max-height:350px!important;
    object-fit:contain!important;
  }

  .product-detail-info,
  .detail-info{
    padding:8px 0!important;
  }

  .detail-price-row{
    gap:10px!important;
    margin-bottom:10px!important;
  }

  .detail-price{
    font-size:31px!important;
    line-height:1.05!important;
    font-weight:800!important;
    letter-spacing:-.4px!important;
  }

  .detail-price-row .detail-status-top{
    min-height:30px!important;
    padding:6px 11px!important;
    font-size:12px!important;
  }

  .detail-info > * + *{
    margin-top:10px;
  }

  /* Nhãn chọn biến thể gọn hơn */
  .detail-option-row,
  .variant-row,
  .detail-variant-row{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
    margin:14px 0!important;
  }

  .detail-option-row > strong,
  .variant-row > strong,
  .detail-variant-row > strong{
    font-size:13px!important;
  }

  /* CTA cân đối */
  .detail-actions,
  .product-detail-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin-top:18px!important;
  }

  .detail-actions button,
  .product-detail-actions button{
    min-height:46px!important;
    border-radius:10px!important;
    font-size:14px!important;
    font-weight:700!important;
  }

  /* Cột sản phẩm tương tự */
  .related-products,
  .similar-products{
    border-radius:14px!important;
    overflow:hidden!important;
  }

  .related-products h3,
  .similar-products h3{
    margin:0!important;
    padding:14px 14px 12px!important;
    font-size:14px!important;
  }

  .related-product-item,
  .similar-product-item{
    min-height:102px!important;
    padding:10px 12px!important;
    gap:10px!important;
  }

  .related-product-item img,
  .similar-product-item img{
    width:68px!important;
    height:68px!important;
    object-fit:contain!important;
    flex:0 0 68px!important;
  }

  .related-product-item strong,
  .similar-product-item strong{
    font-size:12px!important;
    line-height:1.35!important;
  }

  .related-product-item .price,
  .similar-product-item .price{
    font-size:12px!important;
    font-weight:800!important;
  }
}

/* Tiêu đề sản phẩm + breadcrumb */
.product-detail-page .breadcrumb,
.detail-page .breadcrumb{
  margin-bottom:10px!important;
}

.product-detail-title,
.detail-title{
  margin-bottom:14px!important;
  font-size:28px!important;
  line-height:1.22!important;
  letter-spacing:-.3px!important;
}

/* Card nền tổng thể */
.product-detail-card,
.detail-card{
  padding:20px!important;
  border:1px solid #e7eaf0!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(15,23,42,.045)!important;
}

/* Mobile/tablet */
@media(max-width:980px){
  .product-detail-layout{
    display:block!important;
  }

  .product-detail-card,
  .detail-card{
    padding:14px!important;
    border-radius:14px!important;
  }

  .product-detail-image,
  .detail-media{
    margin-bottom:14px!important;
    padding:14px!important;
    border-radius:13px!important;
    background:#fafafa!important;
  }

  .detail-price{
    font-size:27px!important;
  }

  .detail-actions,
  .product-detail-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
  }

  .related-products,
  .similar-products{
    margin-top:18px!important;
  }
}

/* Điện thoại nhỏ: tránh title và giá quá chật */
@media(max-width:560px){
  .product-detail-title,
  .detail-title{
    font-size:22px!important;
  }

  .detail-price-row{
    align-items:center!important;
    gap:8px!important;
  }

  .detail-price{
    font-size:25px!important;
  }

  .detail-price-row .detail-status-top{
    min-height:28px!important;
    padding:5px 9px!important;
    font-size:11px!important;
  }
}


/* =========================================================
   V191 - Thu gọn khoảng trống dưới nút mua hàng / so sánh
   ========================================================= */
@media(min-width:981px){
  /* Không ép cột chi tiết cao theo cột ảnh / sản phẩm tương tự */
  .product-detail-layout{
    align-items:start!important;
  }

  .product-detail-info,
  .detail-info{
    align-self:start!important;
    min-height:0!important;
    height:auto!important;
    padding-bottom:0!important;
  }

  /* Hai nút kết thúc gọn phần thông tin */
  .detail-actions,
  .product-detail-actions{
    margin-top:16px!important;
    margin-bottom:0!important;
  }

  /* Giảm chiều cao khung ảnh một chút để tổng card đỡ trống */
  .product-detail-image,
  .detail-media{
    min-height:350px!important;
    padding-top:16px!important;
    padding-bottom:16px!important;
  }

  .product-detail-image img,
  .detail-media img{
    max-height:325px!important;
  }

  /* Card tổng không để khoảng đệm dưới quá lớn */
  .product-detail-card,
  .detail-card{
    padding-top:18px!important;
    padding-bottom:18px!important;
  }

  /* Cột sản phẩm tương tự cũng gọn lại */
  .related-product-item,
  .similar-product-item{
    min-height:94px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
  }

  .related-product-item img,
  .similar-product-item img{
    width:64px!important;
    height:64px!important;
    flex-basis:64px!important;
  }
}

/* V192 - Tra cứu bảo hành */
.sdd-warranty-nav-btn{color:#0f172a!important}
.warranty-modal[hidden]{display:none!important}
.warranty-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px}
.warranty-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(3px)}
.warranty-panel{position:relative;width:min(680px,100%);max-height:min(760px,90vh);overflow:auto;background:#fff;border-radius:20px;padding:24px;box-shadow:0 24px 70px rgba(15,23,42,.24)}
.warranty-close{position:absolute;right:16px;top:16px;width:38px;height:38px;border:0;border-radius:50%;background:#f1f5f9;font-size:24px;cursor:pointer}
.warranty-head{display:flex;align-items:center;gap:13px;padding-right:42px}
.warranty-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#fff1e8;color:#ff5a00;font-size:22px;font-weight:900}
.warranty-head h2{margin:0 0 3px;font-size:23px}.warranty-head p{margin:0;color:#64748b;font-size:13px}
.warranty-form{margin-top:20px;padding:16px;border:1px solid #e5e7eb;border-radius:14px;background:#fafbfc}
.warranty-form label{display:block;font-weight:800;font-size:13px;margin-bottom:8px}
.warranty-search-row{display:grid;grid-template-columns:1fr auto;gap:8px}
.warranty-search-row input{min-width:0;height:48px;border:1px solid #d7dde5;border-radius:10px;padding:0 14px;font-size:16px;outline:none}
.warranty-search-row input:focus{border-color:#ff5a00;box-shadow:0 0 0 3px rgba(255,90,0,.1)}
.warranty-search-row button{border:0;border-radius:10px;background:#ff5a00;color:#fff;padding:0 22px;font-weight:800;cursor:pointer}
.warranty-form small{display:block;margin-top:8px;color:#94a3b8}
.warranty-result{margin-top:16px}.warranty-loading,.warranty-alert{padding:15px;border-radius:12px;background:#f8fafc;color:#475569;text-align:center}
.warranty-alert.error{background:#fff1f2;color:#b42318}.warranty-summary{font-size:13px;color:#475569;margin:0 0 9px}
.warranty-items{display:grid;gap:10px}.warranty-item{border:1px solid #e5e7eb;border-radius:14px;padding:15px;background:#fff}
.warranty-item-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.warranty-item h3{margin:0 0 3px;font-size:15px;line-height:1.35}.warranty-item small{color:#64748b}
.warranty-state{flex:0 0 auto;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}.warranty-state.active{background:#eaf9ef;color:#07883f;border:1px solid #a9e7bd}.warranty-state.expired{background:#eef1f4;color:#697386;border:1px solid #d9dee5}
.warranty-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px}.warranty-grid>div{padding:9px;background:#f8fafc;border-radius:9px}.warranty-grid span{display:block;color:#64748b;font-size:10px;margin-bottom:3px}.warranty-grid strong{font-size:12px}
.warranty-imei,.warranty-note{margin-top:9px;font-size:11px;color:#64748b}.warranty-note{padding:8px 10px;border-radius:8px;background:#fff7ed;color:#9a3412}
body.warranty-open{overflow:hidden}
@media(max-width:640px){.warranty-modal{padding:10px}.warranty-panel{padding:18px 14px;border-radius:17px;max-height:92vh}.warranty-head h2{font-size:20px}.warranty-search-row{grid-template-columns:1fr}.warranty-search-row button{height:46px}.warranty-grid{grid-template-columns:1fr 1fr}.warranty-item-top{display:block}.warranty-state{display:inline-flex;margin-top:8px}}


/* =========================================================
   V196 - Mobile menu gọn + Tra cứu bảo hành đặt ngoài menu
   ========================================================= */
.sdd-mobile-warranty-quick{display:none}

@media(max-width:768px){
  /* Menu mobile gọn, tránh cảm giác hai CTA cam chồng nhau */
  .mobile-menu-panel,
  .sdd-mobile-menu-panel,
  .mobile-drawer-panel{
    border-radius:0 0 18px 18px!important;
  }

  #sddMobileConsultBtn{
    margin-top:10px!important;
    min-height:46px!important;
    border-radius:10px!important;
    font-weight:800!important;
  }

  /* Nút bảo hành độc lập ở ngoài menu */
  .sdd-mobile-warranty-quick{
    position:fixed;
    right:14px;
    bottom:92px;
    z-index:8800;
    display:flex;
    align-items:center;
    gap:9px;
    width:auto;
    max-width:245px;
    min-height:52px;
    padding:7px 11px 7px 8px;
    border:1px solid #ffd4bd;
    border-radius:15px;
    background:#fff;
    color:#172033;
    box-shadow:0 8px 26px rgba(15,23,42,.16);
    cursor:pointer;
    text-align:left;
  }

  .sdd-mobile-warranty-quick-icon{
    flex:0 0 38px;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#fff0e8;
    color:#ff5a00;
    font-size:19px;
    font-weight:900;
  }

  .sdd-mobile-warranty-quick>span:nth-child(2){
    min-width:0;
    display:block;
  }

  .sdd-mobile-warranty-quick strong{
    display:block;
    font-size:12px;
    line-height:1.15;
    white-space:nowrap;
  }

  .sdd-mobile-warranty-quick small{
    display:block;
    margin-top:3px;
    color:#7b8798;
    font-size:9px;
    line-height:1.15;
    white-space:nowrap;
  }

  .sdd-mobile-warranty-quick b{
    margin-left:2px;
    color:#ff5a00;
    font-size:21px;
    line-height:1;
  }

  /* Khi menu đang mở, nút bảo hành vẫn nằm ngoài drawer nhưng không đè nội dung menu */
  body.mobile-menu-open .sdd-mobile-warranty-quick,
  body.menu-open .sdd-mobile-warranty-quick,
  body.nav-open .sdd-mobile-warranty-quick{
    opacity:0;
    pointer-events:none;
  }
}

@media(max-width:390px){
  .sdd-mobile-warranty-quick{
    right:10px;
    bottom:88px;
    max-width:220px;
  }
  .sdd-mobile-warranty-quick small{display:none}
}


/* =========================================================
   V198 - Mobile: chuyển Tra cứu bảo hành lên thanh phía trên
   Tránh đụng icon AI chat ở góc dưới
   ========================================================= */
@media(max-width:768px){
  .sdd-mobile-warranty-quick{
    position:fixed!important;
    top:8px!important;
    right:10px!important;
    bottom:auto!important;
    z-index:9500!important;

    min-height:32px!important;
    width:auto!important;
    max-width:none!important;
    padding:4px 9px 4px 6px!important;
    gap:6px!important;

    border:1px solid rgba(255,255,255,.48)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 3px 12px rgba(15,23,42,.12)!important;
  }

  .sdd-mobile-warranty-quick-icon{
    width:24px!important;
    height:24px!important;
    flex:0 0 24px!important;
    border-radius:50%!important;
    font-size:13px!important;
  }

  .sdd-mobile-warranty-quick strong{
    font-size:10.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  .sdd-mobile-warranty-quick small{
    display:none!important;
  }

  .sdd-mobile-warranty-quick b{
    font-size:15px!important;
    margin-left:0!important;
  }
}

/* Điện thoại rất hẹp: chỉ giữ chữ, icon và mũi tên */
@media(max-width:370px){
  .sdd-mobile-warranty-quick{
    right:7px!important;
    padding-right:7px!important;
  }
  .sdd-mobile-warranty-quick strong{
    font-size:9.5px!important;
  }
}

/* V199 - Trang tra cứu bảo hành riêng */
.sdd-warranty-nav-btn{text-decoration:none!important;display:inline-flex;align-items:center}
.sdd-mobile-warranty-quick{text-decoration:none!important}

.warranty-page-body{margin:0;background:#f4f6f8;color:#111827;min-height:100vh}
.warranty-page-header{height:72px;background:#fff;border-top:5px solid #ff5a00;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1080px)/2))}
.warranty-page-back{color:#334155;text-decoration:none;font-size:13px;font-weight:700}
.warranty-page-brand{text-align:right}.warranty-page-brand strong{display:block;font-size:16px}.warranty-page-brand small{color:#64748b;font-size:10px}
.warranty-page-main{width:min(760px,calc(100% - 28px));margin:44px auto}
.warranty-page-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:28px;box-shadow:0 14px 42px rgba(15,23,42,.07)}
.warranty-page-card .warranty-head h1{margin:0 0 4px;font-size:25px}
.warranty-policy-box{margin-top:18px;padding:14px 16px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:12px;line-height:1.55}
.warranty-policy-box p{margin:5px 0 0}
@media(max-width:640px){
  .warranty-page-header{height:60px;padding:0 14px}
  .warranty-page-main{margin:18px auto;width:calc(100% - 20px)}
  .warranty-page-card{padding:18px 14px;border-radius:17px}
  .warranty-page-card .warranty-head h1{font-size:21px}
}


/* =========================================================
   V200 - Redesign menu Danh mục mobile
   ========================================================= */
@media(max-width:768px){
  .sdd-mobile-drawer{
    position:fixed!important;
    inset:0!important;
    z-index:12000!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    padding:0!important;
    background:rgba(15,23,42,.46)!important;
    backdrop-filter:blur(3px)!important;
  }

  .sdd-mobile-drawer[hidden]{
    display:none!important;
  }

  .sdd-mobile-drawer-panel{
    width:min(86vw,360px)!important;
    height:100dvh!important;
    display:flex!important;
    flex-direction:column!important;
    background:#fff!important;
    border-radius:0 20px 20px 0!important;
    overflow:hidden!important;
    box-shadow:16px 0 44px rgba(15,23,42,.22)!important;
    animation:sddDrawerIn .18s ease-out!important;
  }

  @keyframes sddDrawerIn{
    from{transform:translateX(-20px);opacity:.7}
    to{transform:translateX(0);opacity:1}
  }

  .sdd-mobile-drawer-head{
    min-height:78px!important;
    padding:14px 14px 13px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    border-bottom:1px solid #edf0f4!important;
    background:#fff!important;
  }

  .sdd-mobile-drawer-title{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0!important;
  }

  .sdd-mobile-drawer-title img{
    width:42px!important;
    height:42px!important;
    border-radius:12px!important;
    object-fit:cover!important;
    box-shadow:0 3px 10px rgba(255,90,0,.18)!important;
  }

  .sdd-mobile-drawer-title strong{
    display:block!important;
    color:#111827!important;
    font-size:16px!important;
    line-height:1.15!important;
    font-weight:800!important;
  }

  .sdd-mobile-drawer-title small{
    display:block!important;
    margin-top:3px!important;
    color:#8a94a3!important;
    font-size:10px!important;
    line-height:1.15!important;
  }

  #sddMobileDrawerClose{
    width:38px!important;
    height:38px!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 38px!important;
    padding:0!important;
    border:0!important;
    border-radius:50%!important;
    background:#f3f5f7!important;
    color:#111827!important;
    font-size:22px!important;
    line-height:1!important;
  }

  .sdd-mobile-nav-list{
    flex:1 1 auto!important;
    display:block!important;
    padding:10px 10px 14px!important;
    overflow:auto!important;
  }

  .sdd-mobile-nav-list a{
    width:100%!important;
    min-height:52px!important;
    padding:7px 10px!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 18px!important;
    align-items:center!important;
    gap:9px!important;
    border:0!important;
    border-radius:12px!important;
    color:#172033!important;
    background:#fff!important;
    text-decoration:none!important;
    font-size:13px!important;
    font-weight:700!important;
  }

  .sdd-mobile-nav-list a + a{
    margin-top:3px!important;
  }

  .sdd-mobile-nav-list a:active{
    background:#fff4ed!important;
  }

  .sdd-mobile-nav-icon{
    width:36px!important;
    height:36px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:10px!important;
    background:#fff3ec!important;
    color:#ff5a00!important;
    font-size:16px!important;
    font-weight:800!important;
  }

  .sdd-mobile-nav-list a>b{
    color:#a1a9b5!important;
    font-size:18px!important;
    font-weight:500!important;
  }

  .sdd-mobile-drawer-footer{
    padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
    border-top:1px solid #edf0f4!important;
    background:#fff!important;
  }

  #sddMobileConsultBtn{
    width:100%!important;
    min-height:58px!important;
    margin:0!important;
    padding:8px 12px!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 18px!important;
    align-items:center!important;
    gap:9px!important;
    border:0!important;
    border-radius:13px!important;
    background:#ff5a00!important;
    color:#fff!important;
    text-align:left!important;
    box-shadow:0 8px 20px rgba(255,90,0,.22)!important;
  }

  #sddMobileConsultBtn .sdd-zalo-dot{
    width:36px!important;
    height:36px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#0068ff!important;
    font-size:16px!important;
    font-weight:900!important;
  }

  #sddMobileConsultBtn span:nth-child(2){
    min-width:0!important;
  }

  #sddMobileConsultBtn strong{
    display:block!important;
    font-size:12.5px!important;
    line-height:1.15!important;
    font-weight:800!important;
  }

  #sddMobileConsultBtn small{
    display:block!important;
    margin-top:3px!important;
    color:rgba(255,255,255,.84)!important;
    font-size:9.5px!important;
    line-height:1.15!important;
  }

  #sddMobileConsultBtn>b{
    color:#fff!important;
    font-size:19px!important;
    font-weight:500!important;
  }
}


/* =========================================================
   V201 - Tra cứu bảo hành nằm trong menu Danh mục mobile
   ========================================================= */
@media(max-width:768px){
  /* Không còn nút bảo hành nổi riêng ngoài menu */
  .sdd-mobile-warranty-quick{
    display:none!important;
  }

  .sdd-mobile-warranty-menu-item{
    margin-top:8px!important;
    border:1px solid #ffd8c2!important;
    background:#fff8f4!important;
  }

  .sdd-mobile-warranty-menu-item .sdd-mobile-nav-icon{
    background:#ffede2!important;
    color:#ff5a00!important;
  }

  .sdd-mobile-warranty-menu-item span:nth-child(2){
    min-width:0!important;
    display:block!important;
  }

  .sdd-mobile-warranty-menu-item strong{
    display:block!important;
    color:#172033!important;
    font-size:13px!important;
    line-height:1.15!important;
    font-weight:800!important;
  }

  .sdd-mobile-warranty-menu-item small{
    display:block!important;
    margin-top:3px!important;
    color:#8a94a3!important;
    font-size:9.5px!important;
    line-height:1.15!important;
    font-weight:500!important;
  }
}


/* V203 - Chính sách bảo hành chi tiết có thu gọn */
.warranty-policy-toggle{
  margin-top:11px;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:0;
  background:transparent;
  color:#e64f00;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.warranty-policy-toggle span{
  font-size:16px;
  transition:transform .18s ease;
}
.warranty-policy-toggle[aria-expanded="true"] span{
  transform:rotate(180deg);
}
.warranty-policy-details{
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid #fed7aa;
}
.warranty-policy-details[hidden]{display:none!important}
.warranty-policy-section h3{
  margin:0 0 7px;
  color:#9a3412;
  font-size:12px;
}
.warranty-policy-section ul{
  margin:0;
  padding-left:18px;
}
.warranty-policy-section li{
  margin:0 0 6px;
  color:#5f3a27;
  font-size:11.5px;
  line-height:1.55;
}
.warranty-policy-section+.warranty-policy-section{
  margin-top:14px;
  padding-top:13px;
  border-top:1px dashed #fed7aa;
}
.warranty-policy-exclude h3{color:#b42318}
@media(max-width:640px){
  .warranty-policy-box{padding:13px 14px}
  .warranty-policy-toggle{min-height:34px;font-size:11.5px}
  .warranty-policy-section li{font-size:11px}
}


/* =========================================================
   V204 - Header trang Tra cứu bảo hành
   ========================================================= */
.warranty-page-header{
  height:auto!important;
  min-height:74px!important;
  padding:0!important;
  border-top:4px solid #ff5a00!important;
  border-bottom:1px solid #e9edf2!important;
  background:#fff!important;
  box-shadow:0 2px 12px rgba(15,23,42,.035)!important;
}

.warranty-header-inner{
  width:min(1080px,calc(100% - 32px))!important;
  min-height:70px!important;
  margin:0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
}

.warranty-page-brand-link{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  text-decoration:none!important;
  text-align:left!important;
  color:#111827!important;
}

.warranty-page-brand-link img{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  object-fit:cover!important;
  border-radius:12px!important;
  box-shadow:0 4px 12px rgba(255,90,0,.16)!important;
}

.warranty-page-brand-link>span{
  display:block!important;
  min-width:0!important;
}

.warranty-page-brand-link strong{
  display:block!important;
  font-size:16px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:-.2px!important;
}

.warranty-page-brand-link small{
  display:block!important;
  margin-top:4px!important;
  color:#7c8798!important;
  font-size:10px!important;
  line-height:1.1!important;
}

.warranty-page-back{
  min-height:38px!important;
  padding:0 13px 0 8px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  border:1px solid #e5e9ef!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#344054!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:800!important;
  box-shadow:0 2px 7px rgba(15,23,42,.04)!important;
}

.warranty-back-icon{
  width:25px!important;
  height:25px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:8px!important;
  background:#fff1e9!important;
  color:#ff5a00!important;
  font-size:20px!important;
  font-weight:500!important;
  line-height:1!important;
}

@media(max-width:640px){
  .warranty-page-header{
    min-height:64px!important;
  }

  .warranty-header-inner{
    width:calc(100% - 24px)!important;
    min-height:60px!important;
    gap:10px!important;
  }

  .warranty-page-brand-link{
    gap:8px!important;
  }

  .warranty-page-brand-link img{
    width:36px!important;
    height:36px!important;
    flex-basis:36px!important;
    border-radius:10px!important;
  }

  .warranty-page-brand-link strong{
    font-size:13.5px!important;
  }

  .warranty-page-brand-link small{
    margin-top:3px!important;
    font-size:8.5px!important;
  }

  .warranty-page-back{
    order:2!important;
    min-height:34px!important;
    padding:0 9px 0 6px!important;
    gap:4px!important;
    border-radius:10px!important;
    font-size:10.5px!important;
  }

  .warranty-back-icon{
    width:23px!important;
    height:23px!important;
    font-size:18px!important;
  }
}


/* =========================================================
   V205 - Đồng bộ kiểu chữ khu vực bộ lọc
   ========================================================= */
.filter-label,
.filter-row > strong,
.filter-row > label,
.filters-label,
.filter-title,
.filter-section-title{
  text-transform:none!important;
  letter-spacing:0!important;
  font-size:12px!important;
  font-weight:800!important;
  color:#667085!important;
}

.brand-filter button,
.price-filter button,
.filter-chips button,
.filter-chip,
.filters button,
.sort-filter select,
.filter-sort select{
  text-transform:none!important;
  letter-spacing:0!important;
}

/* Mobile: cùng một chuẩn chữ, không có hàng in hoa/hàng viết thường lẫn lộn */
@media(max-width:768px){
  .filter-label,
  .filter-row > strong,
  .filter-row > label,
  .filters-label,
  .filter-title,
  .filter-section-title{
    text-transform:none!important;
    letter-spacing:0!important;
    font-size:11px!important;
    font-weight:800!important;
  }

  .brand-filter button,
  .price-filter button,
  .filter-chips button,
  .filter-chip,
  .filters button{
    text-transform:none!important;
    font-size:11px!important;
    font-weight:600!important;
  }
}

/* V210 - Trang chủ bên trái, thương hiệu bên phải */
.warranty-header-inner{justify-content:space-between!important}
.warranty-page-back{order:1!important}
.warranty-page-brand-link{order:2!important;margin-left:auto!important;flex-direction:row!important;text-align:right!important}
.warranty-page-brand-link>span{text-align:right!important}
@media(max-width:640px){
  .warranty-page-back{order:1!important}
  .warranty-page-brand-link{order:2!important;margin-left:auto!important;gap:7px!important}
}


/* =========================================================
   V211 - Header: bỏ nút Danh mục thừa ở hàng trên
   ========================================================= */
@media(min-width:1081px){
  /* Hàng chính: Logo | Search | Tư vấn/Cửa hàng */
  .sdd-header-v164 .commerce-header-inner{
    grid-template-columns:auto minmax(520px,1fr) auto!important;
    gap:22px!important;
    min-height:82px!important;
  }

  .commerce-brand-block{
    min-width:215px!important;
  }

  .sdd-header-search{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }

  .sdd-header-actions{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
  }

  /* Nút Danh mục sản phẩm bên dưới là điểm mở danh mục duy nhất */
  .sdd-nav-category{
    min-width:230px!important;
    min-height:42px!important;
    padding:0 18px!important;
    border-radius:10px!important;
    font-size:14px!important;
    font-weight:800!important;
  }

  .sdd-header-nav-inner{
    grid-template-columns:230px minmax(0,1fr) auto!important;
    gap:28px!important;
  }

  .sdd-main-nav{
    gap:34px!important;
  }
}

/* Màn hình desktop lớn: cho search rộng hơn nữa */
@media(min-width:1500px){
  .sdd-header-v164 .commerce-header-inner{
    grid-template-columns:235px minmax(680px,1fr) auto!important;
    gap:24px!important;
  }

  .sdd-main-nav{
    gap:38px!important;
  }
}

/* Mobile vẫn dùng nút hamburger riêng, không ảnh hưởng */
@media(max-width:1080px){
  .commerce-category-menu{
    display:none!important;
  }
}


/* =========================================================
   V215 - Polish trang Tra cứu bảo hành
   ========================================================= */
.warranty-page-main{
  width:min(820px,calc(100% - 28px))!important;
  margin:34px auto 52px!important;
}

.warranty-page-card{
  padding:30px!important;
  border:1px solid #e7eaf0!important;
  border-radius:22px!important;
  background:
    linear-gradient(180deg,#ffffff 0%,#ffffff 76%,#fffdfb 100%)!important;
  box-shadow:
    0 18px 50px rgba(15,23,42,.08),
    0 2px 8px rgba(15,23,42,.03)!important;
}

/* Heading */
.warranty-page-card .warranty-head{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  margin-bottom:20px!important;
}

.warranty-page-card .warranty-icon{
  width:50px!important;
  height:50px!important;
  flex:0 0 50px!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#fff0e7,#fff8f4)!important;
  border:1px solid #ffe0cf!important;
  color:#ff5a00!important;
  font-size:23px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;
}

.warranty-page-card .warranty-head h1{
  margin:0 0 4px!important;
  color:#111827!important;
  font-size:26px!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:-.35px!important;
}

.warranty-page-card .warranty-head p{
  margin:0!important;
  color:#748094!important;
  font-size:13px!important;
  line-height:1.45!important;
}

/* Form area */
.warranty-page-card .warranty-form{
  margin-top:0!important;
  padding:18px!important;
  border:1px solid #e5e9ef!important;
  border-radius:16px!important;
  background:#f9fafb!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;
}

.warranty-page-card .warranty-form label{
  margin-bottom:8px!important;
  color:#111827!important;
  font-size:12.5px!important;
  font-weight:800!important;
}

.warranty-page-card .warranty-search-row{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
}

.warranty-page-card .warranty-search-row input{
  height:50px!important;
  padding:0 15px!important;
  border:1px solid #d8dee8!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:15px!important;
  box-shadow:0 1px 2px rgba(15,23,42,.02)!important;
}

.warranty-page-card .warranty-search-row input::placeholder{
  color:#a1a9b6!important;
}

.warranty-page-card .warranty-search-row input:focus{
  border-color:#ff7b36!important;
  box-shadow:0 0 0 4px rgba(255,90,0,.09)!important;
}

.warranty-page-card .warranty-search-row button{
  min-width:106px!important;
  height:50px!important;
  padding:0 20px!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#ff6412,#ff5400)!important;
  font-size:14px!important;
  font-weight:800!important;
  box-shadow:0 7px 16px rgba(255,90,0,.18)!important;
}

.warranty-page-card .warranty-search-row button:hover{
  filter:brightness(.98);
  transform:translateY(-1px);
}

.warranty-page-card .warranty-form>small{
  margin-top:9px!important;
  color:#98a2b3!important;
  font-size:11px!important;
}

/* Policy box */
.warranty-page-card .warranty-policy-box{
  position:relative!important;
  margin-top:18px!important;
  padding:17px 18px!important;
  overflow:hidden!important;
  border:1px solid #ffd0b5!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#fff8f3 0%,#fffaf7 100%)!important;
  color:#9a3412!important;
}

.warranty-page-card .warranty-policy-box::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#ff6a1a;
}

.warranty-page-card .warranty-policy-box>strong{
  display:block!important;
  padding-left:2px!important;
  color:#b33a00!important;
  font-size:12.5px!important;
  font-weight:850!important;
}

.warranty-page-card .warranty-policy-box>p{
  margin:7px 0 0!important;
  padding-left:2px!important;
  color:#a54419!important;
  font-size:11.7px!important;
  line-height:1.55!important;
}

.warranty-page-card .warranty-policy-toggle{
  margin-top:10px!important;
  padding:0 2px!important;
  color:#f05a0a!important;
  font-size:11.5px!important;
  font-weight:800!important;
}

.warranty-page-card .warranty-policy-toggle:hover{
  text-decoration:underline;
}

/* Results */
.warranty-page-card .warranty-result{
  margin-top:18px!important;
}

.warranty-page-card .warranty-summary{
  margin-bottom:10px!important;
  color:#667085!important;
  font-size:12px!important;
}

.warranty-page-card .warranty-item{
  padding:17px!important;
  border:1px solid #e4e8ee!important;
  border-radius:15px!important;
  box-shadow:0 5px 14px rgba(15,23,42,.035)!important;
}

.warranty-page-card .warranty-item h3{
  font-size:14px!important;
  line-height:1.35!important;
}

.warranty-page-card .warranty-grid{
  gap:9px!important;
}

.warranty-page-card .warranty-grid>div{
  padding:10px!important;
  border:1px solid #eef1f4!important;
  background:#f8fafc!important;
}

/* Mobile */
@media(max-width:640px){
  .warranty-page-main{
    width:calc(100% - 18px)!important;
    margin:14px auto 28px!important;
  }

  .warranty-page-card{
    padding:16px 14px!important;
    border-radius:18px!important;
    box-shadow:0 10px 28px rgba(15,23,42,.07)!important;
  }

  .warranty-page-card .warranty-head{
    gap:10px!important;
    margin-bottom:14px!important;
  }

  .warranty-page-card .warranty-icon{
    width:42px!important;
    height:42px!important;
    flex-basis:42px!important;
    border-radius:13px!important;
    font-size:20px!important;
  }

  .warranty-page-card .warranty-head h1{
    font-size:21px!important;
  }

  .warranty-page-card .warranty-head p{
    font-size:11px!important;
  }

  .warranty-page-card .warranty-form{
    padding:13px!important;
    border-radius:14px!important;
  }

  .warranty-page-card .warranty-search-row{
    grid-template-columns:1fr!important;
  }

  .warranty-page-card .warranty-search-row input,
  .warranty-page-card .warranty-search-row button{
    height:46px!important;
  }

  .warranty-page-card .warranty-search-row button{
    width:100%!important;
  }

  .warranty-page-card .warranty-policy-box{
    padding:14px 14px 14px 16px!important;
    border-radius:14px!important;
  }

  .warranty-page-card .warranty-policy-box>p{
    font-size:11px!important;
  }
}


/* =========================================================
   V218 - Giao diện so sánh tối ưu riêng cho 2 máy
   ========================================================= */

/* Modal gọn lại, không kéo sát 2 mép màn hình */
.compare-modal{
  width:min(1180px,calc(100vw - 48px))!important;
  max-width:1180px!important;
  height:min(900px,calc(100vh - 34px))!important;
  border-radius:20px!important;
  overflow:hidden!important;
  box-shadow:0 28px 80px rgba(15,23,42,.25)!important;
}

.compare-modal-head{
  min-height:86px!important;
  padding:22px 28px 18px!important;
  border-bottom:1px solid #edf0f4!important;
}

.compare-modal-head h2{
  font-size:24px!important;
  letter-spacing:-.35px!important;
}

.compare-modal-head p{
  margin-top:5px!important;
  font-size:12px!important;
  color:#7b8798!important;
}

.compare-modal-close{
  width:38px!important;
  height:38px!important;
  border-radius:50%!important;
}

/* Gemini AI: gọn thành thanh công cụ */
.compare-ai-box{
  margin:16px 22px 0!important;
  border:1px solid #ffd2ba!important;
  border-radius:15px!important;
  background:#fffaf7!important;
  overflow:hidden!important;
}

.compare-ai-top{
  min-height:66px!important;
  padding:14px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}

.compare-ai-title strong{
  font-size:15px!important;
}

.compare-ai-title small{
  margin-top:3px!important;
  font-size:11px!important;
  color:#7d8795!important;
}

.compare-ai-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
}

.compare-ai-actions select{
  height:38px!important;
  min-width:178px!important;
  border-radius:9px!important;
  font-size:12px!important;
}

.compare-ai-actions button{
  height:38px!important;
  padding:0 16px!important;
  border-radius:9px!important;
  font-size:12px!important;
}

.compare-ai-result{
  min-height:42px!important;
  padding:11px 16px!important;
  border-top:1px solid #ffe2d2!important;
  background:#fff!important;
  font-size:11.5px!important;
}

/* Bảng: cột tên thông số nhỏ, 2 máy chia đều phần còn lại */
.compare-table-wrap{
  margin-top:0!important;
}

.compare-table{
  width:100%!important;
  table-layout:fixed!important;
}

.compare-table th:first-child,
.compare-table td:first-child{
  width:145px!important;
  min-width:145px!important;
  max-width:145px!important;
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child){
  width:calc((100% - 145px)/2)!important;
}

/* Card đầu mỗi máy */
.compare-product-cell{
  padding:20px 22px 18px!important;
  vertical-align:top!important;
  text-align:center!important;
  background:#fff!important;
}

.compare-product-cell img{
  width:116px!important;
  height:116px!important;
  object-fit:contain!important;
  margin:0 auto 10px!important;
  padding:5px!important;
  border-radius:14px!important;
  background:#f8fafc!important;
}

.compare-product-cell .compare-product-name{
  max-width:390px!important;
  margin:0 auto!important;
  min-height:auto!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:800!important;
}

.compare-product-cell .compare-product-price{
  margin-top:8px!important;
  font-size:16px!important;
  font-weight:900!important;
}

.compare-product-cell .stock-badge{
  margin-top:8px!important;
}

/* Hàng thông số dễ quét mắt hơn */
.compare-table tbody tr:nth-child(even) td{
  background:#fbfcfd!important;
}

.compare-table td{
  padding:13px 16px!important;
  border-color:#e7ebf0!important;
  font-size:12px!important;
  line-height:1.48!important;
  vertical-align:top!important;
}

.compare-table td:first-child{
  padding:13px 14px!important;
  background:#f7f8fa!important;
  color:#111827!important;
  font-size:12px!important;
  font-weight:850!important;
}

.compare-table tr:hover td:not(:first-child){
  background:#fffaf7!important;
}

/* đường chia giữa 2 máy rõ vừa đủ */
.compare-table th:nth-child(3),
.compare-table td:nth-child(3){
  border-left:2px solid #eef1f4!important;
}

/* Desktop rộng: bảng nằm cân giữa */
@media(min-width:1200px){
  .compare-modal-body{
    scrollbar-gutter:stable!important;
  }

  .compare-product-cell img{
    width:124px!important;
    height:124px!important;
  }
}

/* Tablet/mobile: vẫn giữ 2 máy cạnh nhau nhưng compact */
@media(max-width:760px){
  .compare-modal{
    width:calc(100vw - 12px)!important;
    height:calc(100vh - 12px)!important;
    border-radius:15px!important;
  }

  .compare-modal-head{
    min-height:70px!important;
    padding:16px 16px 13px!important;
  }

  .compare-modal-head h2{
    font-size:19px!important;
  }

  .compare-ai-box{
    margin:10px 10px 0!important;
  }

  .compare-ai-top{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:10px!important;
  }

  .compare-ai-actions{
    width:100%!important;
  }

  .compare-ai-actions select{
    flex:1 1 auto!important;
    min-width:0!important;
  }

  .compare-table{
    min-width:680px!important;
  }

  .compare-table th:first-child,
  .compare-table td:first-child{
    width:112px!important;
    min-width:112px!important;
  }

  .compare-product-cell{
    padding:14px 10px!important;
  }

  .compare-product-cell img{
    width:90px!important;
    height:90px!important;
  }

  .compare-product-cell .compare-product-name{
    font-size:11.5px!important;
  }

  .compare-table td{
    padding:11px 10px!important;
    font-size:11px!important;
  }

  .compare-table td:first-child{
    font-size:11px!important;
  }
}


/* =========================================================
   V219 - So sánh là trang riêng, không còn popup
   ========================================================= */
.compare-page-body{
  margin:0;
  min-height:100vh;
  background:#f4f6f8;
  color:#101828;
}
.compare-page-header{
  border-top:4px solid #ff5a00;
  border-bottom:1px solid #e8ebef;
  background:#fff;
}
.compare-page-header-inner{
  width:min(1180px,calc(100% - 32px));
  min-height:68px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.compare-page-back{
  min-height:38px;
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #e5e9ef;
  border-radius:10px;
  background:#fff;
  color:#344054;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.compare-page-brand{
  display:flex;
  align-items:center;
  gap:9px;
  color:#111827;
  text-decoration:none;
  text-align:right;
}
.compare-page-brand strong{display:block;font-size:15px;font-weight:900}
.compare-page-brand small{display:block;margin-top:3px;color:#7c8798;font-size:9px}
.compare-page-brand img{width:40px;height:40px;border-radius:11px;object-fit:cover}
.compare-page-main{
  width:min(1180px,calc(100% - 32px));
  margin:28px auto 50px;
}
.compare-page-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.compare-page-title h1{margin:0;font-size:27px;letter-spacing:-.4px}
.compare-page-title p{margin:5px 0 0;color:#7b8798;font-size:12px}
.compare-change-btn{
  min-height:38px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  border:1px solid #ffb58c;
  border-radius:10px;
  color:#e64f00;
  background:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.compare-page-ai{
  margin-bottom:16px;
  overflow:hidden;
  border:1px solid #ffd2ba;
  border-radius:15px;
  background:#fffaf7;
}
.compare-page-ai-head{
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.compare-page-ai-head>div:first-child strong{display:block;font-size:14px}
.compare-page-ai-head>div:first-child span{display:block;margin-top:3px;color:#7d8795;font-size:10.5px}
.compare-page-ai-actions{display:flex;gap:8px}
.compare-page-ai-actions select{
  height:40px;
  min-width:190px;
  padding:0 10px;
  border:1px solid #dde2e8;
  border-radius:9px;
  background:#fff;
  font-size:11.5px;
  font-weight:700;
}
.compare-page-ai-actions button{
  height:40px;
  padding:0 15px;
  border:0;
  border-radius:9px;
  background:#ff5a00;
  color:#fff;
  font-size:11.5px;
  font-weight:800;
  cursor:pointer;
}
.compare-page-ai-result{
  padding:11px 16px;
  border-top:1px solid #ffe1d0;
  background:#fff;
  color:#667085;
  font-size:11.5px;
  line-height:1.55;
  white-space:pre-line;
}
.compare-page-content{
  overflow:hidden;
  border:1px solid #e4e8ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.045);
}
.compare-page-loading,.compare-page-empty{
  padding:60px 20px;
  text-align:center;
  color:#667085;
}
.compare-page-empty{display:grid;gap:8px;justify-items:center}
.compare-page-empty a{margin-top:6px;color:#ff5a00;font-weight:800;text-decoration:none}
.compare-page-table{width:100%}
.compare-page-row{
  display:grid;
  grid-template-columns:145px minmax(0,1fr) minmax(0,1fr);
  border-top:1px solid #e8ebef;
}
.compare-page-row:first-child{border-top:0}
.compare-page-label{
  padding:14px;
  background:#f8f9fb;
  font-size:11.5px;
  font-weight:850;
}
.compare-page-value{
  padding:14px 16px;
  border-left:1px solid #e8ebef;
  font-size:11.5px;
  line-height:1.55;
}
.compare-page-row:nth-child(odd):not(.compare-page-products-row) .compare-page-value{
  background:#fcfcfd;
}
.compare-page-products-row{align-items:stretch}
.compare-page-products-row>.compare-page-label{display:flex;align-items:flex-start}
.compare-page-product{
  padding:22px 18px 18px;
  border-left:1px solid #e8ebef;
  text-align:center;
}
.compare-page-product-image{
  width:128px;
  height:128px;
  margin:0 auto 10px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#f8fafc;
}
.compare-page-product-image img{max-width:116px;max-height:116px;object-fit:contain}
.compare-page-product h2{
  max-width:390px;
  margin:0 auto;
  font-size:13px;
  line-height:1.35;
}
.compare-page-product-price{
  margin-top:8px;
  color:#e60000;
  font-size:16px;
  font-weight:900;
}
.compare-page-stock{
  display:inline-flex;
  margin-top:8px;
  padding:5px 9px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:800;
}
.compare-page-stock.in{color:#07883f;background:#e9f9ef}
.compare-page-stock.out{color:#697386;background:#eef1f4}
.compare-page-empty-inline{padding:30px;text-align:center;color:#667085}

@media(max-width:720px){
  .compare-page-header-inner,.compare-page-main{width:calc(100% - 18px)}
  .compare-page-header-inner{min-height:60px}
  .compare-page-brand strong{font-size:12.5px}
  .compare-page-brand small{display:none}
  .compare-page-brand img{width:34px;height:34px}
  .compare-page-main{margin:16px auto 30px}
  .compare-page-title{align-items:flex-start;flex-direction:column;gap:10px}
  .compare-page-title h1{font-size:21px}
  .compare-page-ai-head{align-items:flex-start;flex-direction:column}
  .compare-page-ai-actions{width:100%}
  .compare-page-ai-actions select{min-width:0;flex:1}
  .compare-page-content{overflow-x:auto}
  .compare-page-table{min-width:700px}
  .compare-page-row{grid-template-columns:110px 295px 295px}
  .compare-page-product-image{width:92px;height:92px}
  .compare-page-product-image img{max-width:84px;max-height:84px}
  .compare-page-product h2{font-size:11.5px}
}


/* =========================================================
   V220 - Fix trang so sánh trên mobile
   ========================================================= */
@media(max-width:720px){
  .compare-page-body{
    overflow-x:hidden!important;
  }

  .compare-page-header{
    position:sticky!important;
    top:0!important;
    z-index:100!important;
  }

  .compare-page-header-inner{
    width:calc(100% - 20px)!important;
    min-height:58px!important;
    gap:8px!important;
  }

  .compare-page-back{
    min-height:34px!important;
    padding:0 9px!important;
    border-radius:9px!important;
    font-size:10.5px!important;
    white-space:nowrap!important;
  }

  .compare-page-brand{
    gap:6px!important;
  }

  .compare-page-brand strong{
    font-size:11.5px!important;
  }

  .compare-page-brand img{
    width:32px!important;
    height:32px!important;
    border-radius:9px!important;
  }

  .compare-page-main{
    width:calc(100% - 16px)!important;
    margin:14px auto 26px!important;
  }

  /* Tiêu đề gọn hơn */
  .compare-page-title{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    align-items:center!important;
    gap:10px!important;
    margin-bottom:12px!important;
  }

  .compare-page-title h1{
    font-size:19px!important;
    line-height:1.2!important;
  }

  .compare-page-title p{
    grid-column:1/-1!important;
    margin-top:2px!important;
    font-size:10.5px!important;
  }

  .compare-change-btn{
    min-height:34px!important;
    padding:0 10px!important;
    border-radius:9px!important;
    font-size:10px!important;
    white-space:nowrap!important;
  }

  /* Gemini AI: chuyển thành card dọc, full width */
  .compare-page-ai{
    margin-bottom:12px!important;
    border-radius:13px!important;
  }

  .compare-page-ai-head{
    padding:12px!important;
    gap:10px!important;
  }

  .compare-page-ai-head>div:first-child strong{
    font-size:13px!important;
  }

  .compare-page-ai-head>div:first-child span{
    font-size:9.5px!important;
    line-height:1.4!important;
  }

  .compare-page-ai-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:7px!important;
  }

  .compare-page-ai-actions select,
  .compare-page-ai-actions button{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    font-size:11px!important;
  }

  .compare-page-ai-result{
    padding:10px 12px!important;
    font-size:10.5px!important;
    line-height:1.5!important;
  }

  /* Bảng mobile mới: KHÔNG dùng min-width 700px nữa */
  .compare-page-content{
    overflow:visible!important;
    border-radius:14px!important;
  }

  .compare-page-table{
    min-width:0!important;
    width:100%!important;
  }

  .compare-page-row{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr) minmax(0,1fr)!important;
  }

  .compare-page-label{
    padding:10px 8px!important;
    font-size:10px!important;
    line-height:1.35!important;
    word-break:break-word!important;
  }

  .compare-page-value{
    min-width:0!important;
    padding:10px 8px!important;
    font-size:9.7px!important;
    line-height:1.45!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }

  /* 2 sản phẩm luôn hiện cạnh nhau */
  .compare-page-products-row{
    grid-template-columns:92px minmax(0,1fr) minmax(0,1fr)!important;
  }

  .compare-page-product{
    min-width:0!important;
    padding:12px 7px!important;
  }

  .compare-page-product-image{
    width:76px!important;
    height:76px!important;
    margin-bottom:7px!important;
    border-radius:11px!important;
  }

  .compare-page-product-image img{
    max-width:70px!important;
    max-height:70px!important;
  }

  .compare-page-product h2{
    max-width:none!important;
    font-size:10px!important;
    line-height:1.3!important;
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  .compare-page-product-price{
    margin-top:6px!important;
    font-size:12px!important;
  }

  .compare-page-stock{
    margin-top:6px!important;
    padding:4px 7px!important;
    font-size:9px!important;
  }
}

/* Điện thoại rất hẹp */
@media(max-width:390px){
  .compare-page-row,
  .compare-page-products-row{
    grid-template-columns:78px minmax(0,1fr) minmax(0,1fr)!important;
  }

  .compare-page-label{
    padding:9px 6px!important;
    font-size:9.5px!important;
  }

  .compare-page-value{
    padding:9px 6px!important;
    font-size:9.2px!important;
  }

  .compare-page-product{
    padding:10px 5px!important;
  }

  .compare-page-product-image{
    width:68px!important;
    height:68px!important;
  }

  .compare-page-product-image img{
    max-width:62px!important;
    max-height:62px!important;
  }

  .compare-page-product h2{
    font-size:9.5px!important;
  }

  .compare-page-product-price{
    font-size:11px!important;
  }
}


/* =========================================================
   V221 - Nút nghe AI tư vấn trên trang so sánh
   ========================================================= */
.compare-page-voicebar{
  min-height:48px;
  padding:9px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid #ffe1d0;
  background:#fffaf7;
}
.compare-page-voicebar[hidden]{display:none!important}
.compare-page-voicebar span{
  color:#7a4a2f;
  font-size:11px;
  font-weight:700;
}
.compare-page-voicebar button{
  min-height:34px;
  padding:0 13px;
  border:1px solid #ffb88f;
  border-radius:9px;
  background:#fff;
  color:#e65300;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.compare-page-voicebar button.speaking{
  border-color:#ff5a00;
  background:#ff5a00;
  color:#fff;
}
.compare-page-voicebar button:disabled{
  opacity:.65;
  cursor:wait;
}

@media(max-width:720px){
  .compare-page-voicebar{
    min-height:50px!important;
    padding:9px 12px!important;
  }
  .compare-page-voicebar span{
    font-size:10px!important;
  }
  .compare-page-voicebar button{
    min-height:36px!important;
    padding:0 11px!important;
    font-size:10px!important;
  }
}


/* =========================================================
   V222 - Đưa nút nghe lên ngay dưới nút Gemini phân tích
   ========================================================= */
.compare-page-voicebar-inline{
  width:100%;
  min-height:38px;
  padding:6px 0 0;
  border-top:0;
  background:transparent;
}
.compare-page-voicebar-inline span{
  font-size:10px;
}
.compare-page-voicebar-inline button{
  min-height:34px;
  background:#fff;
}

@media(min-width:721px){
  .compare-page-ai-actions{
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .compare-page-voicebar-inline{
    flex-basis:100%;
    justify-content:flex-end;
  }
  .compare-page-voicebar-inline span{
    margin-right:auto;
  }
}

@media(max-width:720px){
  .compare-page-voicebar-inline{
    display:flex!important;
    min-height:40px!important;
    padding:2px 0 0!important;
    align-items:center!important;
  }
  .compare-page-voicebar-inline[hidden]{
    display:none!important;
  }
  .compare-page-voicebar-inline button{
    width:auto!important;
    min-width:118px!important;
    height:36px!important;
  }
}

/* V224 - Trả góp trên trang chính */
.installment-modal[hidden]{display:none!important}
.installment-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:18px}
.installment-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.installment-modal-dialog{position:relative;width:min(760px,100%);max-height:min(84vh,820px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 24px 70px rgba(15,23,42,.28);padding:22px}
.installment-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.installment-modal-head h2{margin:3px 0 0;font-size:25px;line-height:1.2;color:#111827}
.installment-eyebrow{font-size:11px;font-weight:900;letter-spacing:.08em;color:#e65300}
.installment-modal-close{width:38px;height:38px;flex:0 0 38px;border:0;border-radius:50%;background:#f2f4f7;color:#344054;font-size:25px;line-height:1;cursor:pointer}
.installment-public-intro{margin:0 0 16px;color:#475467;line-height:1.55}
.installment-provider-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.installment-public-provider{border:1px solid #e4e7ec;border-radius:15px;padding:15px;background:#fff}
.installment-public-provider-head{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.installment-public-logo{width:68px;height:48px;object-fit:contain;border:1px solid #eaecf0;border-radius:10px;padding:5px;background:#fff}
.installment-public-logo-fallback{width:68px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#fff3eb;color:#d94800;font-size:11px;font-weight:900;text-align:center;padding:5px;box-sizing:border-box}
.installment-public-provider h3{margin:0;font-size:17px;color:#101828}
.installment-public-provider small{display:block;margin-top:2px;color:#667085}
.installment-staff-public{display:grid;gap:8px}
.installment-staff-public-empty{font-size:13px;color:#667085;padding:9px 0}
.installment-zalo-person{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:11px;background:#f8fafc}
.installment-zalo-person-copy{min-width:0}
.installment-zalo-person-copy strong{display:block;font-size:14px;color:#101828}
.installment-zalo-person-copy span{display:block;margin-top:2px;font-size:12px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.installment-zalo-link{flex:0 0 auto;text-decoration:none;border-radius:9px;background:#e65300;color:#fff!important;padding:9px 12px;font-size:12px;font-weight:900}
.installment-public-note{margin-top:14px;border-radius:12px;background:#fff7ed;padding:11px 12px;color:#7c2d12;font-size:12px;line-height:1.5}
body.installment-open{overflow:hidden}
@media(max-width:680px){
 .installment-modal{padding:0;align-items:flex-end}
 .installment-modal-dialog{width:100%;max-height:88vh;border-radius:20px 20px 0 0;padding:18px 15px 20px}
 .installment-modal-head h2{font-size:21px}
 .installment-provider-list{grid-template-columns:1fr}
 .installment-public-provider{padding:13px}
 .installment-zalo-link{padding:9px 10px}
}

/* V226 - Nút Trang chủ trang bảo hành cùng kích thước với trang Trả góp */
@media(max-width:640px){
  .warranty-page-back{
    min-height:40px!important;
    padding:0 14px 0 8px!important;
    gap:6px!important;
    border-radius:12px!important;
    font-size:13px!important;
  }
  .warranty-back-icon{
    width:25px!important;
    height:25px!important;
    font-size:20px!important;
  }
}

/* =========================================================
   V228 - Mobile header 1 hàng: Menu | Logo | Tìm kiếm
   ========================================================= */
@media(max-width:720px){
  .sdd-header-v164{
    border-top-width:3px!important;
    background:#fff!important;
  }

  .sdd-header-v164 .commerce-header-inner.sdd-header-main{
    width:100%!important;
    min-height:68px!important;
    padding:9px 12px!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:42px 48px minmax(0,1fr)!important;
    grid-template-areas:"menu brand search"!important;
    align-items:center!important;
    gap:9px!important;
  }

  .sdd-mobile-menu-btn{
    grid-area:menu!important;
    width:42px!important;
    height:42px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #edf0f3!important;
    border-radius:11px!important;
    background:#f6f7f9!important;
    color:#172033!important;
    font-size:21px!important;
    line-height:1!important;
    box-shadow:none!important;
  }

  .sdd-header-v164 .commerce-brand-block{
    grid-area:brand!important;
    display:block!important;
    min-width:0!important;
    width:48px!important;
    height:48px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }

  .sdd-header-v164 .commerce-logo{
    width:48px!important;
    height:48px!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:12px!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  .sdd-header-v164 .commerce-logo-mark{
    width:48px!important;
    height:48px!important;
    display:block!important;
    border-radius:12px!important;
    object-fit:cover!important;
    box-shadow:0 5px 14px rgba(255,90,0,.16)!important;
  }

  .sdd-brand-copy,
  .sdd-header-v164 .commerce-logo-text{
    display:none!important;
  }

  .sdd-header-search{
    grid-area:search!important;
    width:100%!important;
    min-width:0!important;
    height:46px!important;
    margin:0!important;
    grid-template-columns:32px minmax(0,1fr) 30px!important;
    border:1px solid #dfe4ea!important;
    border-radius:12px!important;
    background:#f8fafc!important;
  }

  .sdd-header-search input{
    min-width:0!important;
    height:44px!important;
    padding:0 4px!important;
    font-size:13px!important;
  }

  .sdd-header-search input::placeholder{
    font-size:13px!important;
    color:#98a2b3!important;
    opacity:1!important;
  }

  .sdd-search-leading{
    display:grid!important;
    place-items:center!important;
    font-size:16px!important;
    color:#98a2b3!important;
  }

  .sdd-search-submit{
    display:none!important;
  }

  .sdd-header-search #clearSearch{
    width:26px!important;
    height:26px!important;
    margin-right:3px!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:opacity .15s ease!important;
  }

  .sdd-header-search:has(#searchInput:not(:placeholder-shown)) #clearSearch{
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  .sdd-header-actions,
  .sdd-header-nav,
  .sdd-header-v164 .commerce-header-note{
    display:none!important;
  }
}

@media(max-width:390px){
  .sdd-header-v164 .commerce-header-inner.sdd-header-main{
    grid-template-columns:40px 44px minmax(0,1fr)!important;
    gap:7px!important;
    padding-left:9px!important;
    padding-right:9px!important;
  }
  .sdd-mobile-menu-btn{width:40px!important;height:40px!important}
  .sdd-header-v164 .commerce-brand-block,
  .sdd-header-v164 .commerce-logo,
  .sdd-header-v164 .commerce-logo-mark{
    width:44px!important;
    height:44px!important;
  }
  .sdd-header-search input,
  .sdd-header-search input::placeholder{
    font-size:12px!important;
  }
}

/* =========================================================
   V229 - AI chat header + Zalo compact redesign
   ========================================================= */
.ai-chat-head{
  min-height:58px!important;
  padding:8px 10px!important;
  gap:8px!important;
}
.ai-chat-brand{gap:8px!important;}
.ai-chat-brand img{
  width:36px!important;
  height:36px!important;
  flex:0 0 36px!important;
  border-radius:10px!important;
}
.ai-chat-brand strong{
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
.ai-chat-brand span{
  margin-top:2px!important;
  font-size:9px!important;
  line-height:1.2!important;
  color:#8b94a3!important;
}
.ai-chat-close{
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
  font-size:20px!important;
  background:#f4f6f8!important;
}
.ai-chat-panel .ai-human-handoff.ai-human-handoff-soft{
  margin:0!important;
  min-height:44px!important;
  padding:6px 10px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  border:0!important;
  border-bottom:1px solid #edf0f4!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
.ai-chat-panel .ai-human-handoff.ai-human-handoff-soft > div{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:1px!important;
  min-width:0!important;
}
.ai-chat-panel .ai-human-handoff.ai-human-handoff-soft strong{
  font-size:11px!important;
  line-height:1.2!important;
  color:#172033!important;
  font-weight:800!important;
}
.ai-chat-panel .ai-human-handoff.ai-human-handoff-soft span{
  display:block!important;
  font-size:9px!important;
  line-height:1.2!important;
  color:#8b94a3!important;
}
.ai-chat-panel .ai-human-handoff.ai-human-handoff-soft a{
  height:32px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:#087cf0!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:800!important;
  box-shadow:none!important;
}
@media(max-width:720px){
  .ai-chat-head{min-height:56px!important;padding:7px 9px!important;}
  .ai-chat-brand img{width:34px!important;height:34px!important;flex-basis:34px!important;}
  .ai-chat-brand strong{font-size:12px!important;}
  .ai-chat-brand span{font-size:8.5px!important;}
  .ai-chat-close{width:30px!important;height:30px!important;flex-basis:30px!important;font-size:19px!important;}
  .ai-chat-head + .ai-human-handoff{margin:0!important;}
  .ai-chat-panel .ai-human-handoff.ai-human-handoff-soft{min-height:42px!important;padding:5px 9px!important;}
  .ai-chat-panel .ai-human-handoff.ai-human-handoff-soft span{display:block!important;font-size:8.5px!important;}
  .ai-chat-panel .ai-human-handoff.ai-human-handoff-soft a{height:30px!important;padding:0 11px!important;font-size:10px!important;}
}

/* =========================================================
   V233 - Catalog showroom: bố cục giống mẫu tham chiếu
   ========================================================= */
.sdd-catalog-showcase{
  margin:10px 0 18px!important;
  overflow:hidden!important;
  border:1px solid #e8ebef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 9px 28px rgba(15,23,42,.055)!important;
}

.sdd-catalog-showcase-main{
  display:grid!important;
  grid-template-columns:255px minmax(0,1fr)!important;
  min-height:330px!important;
}

.sdd-catalog-side{
  padding:18px 14px!important;
  border-right:1px solid #edf0f3!important;
  background:#fff!important;
}

.sdd-side-item{
  width:100%!important;
  min-height:46px!important;
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:8px!important;
  padding:0 14px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#252b35!important;
  text-align:left!important;
  font-size:14px!important;
  font-weight:650!important;
  cursor:pointer!important;
  transition:.16s ease!important;
}
.sdd-side-item:hover{
  background:#fff7f2!important;
  color:#e45100!important;
}
.sdd-side-item.active{
  background:linear-gradient(90deg,#fff1e8 0%,#fff8f4 100%)!important;
  color:#ef4f00!important;
  font-weight:800!important;
}
.sdd-side-icon{
  width:28px!important;
  height:28px!important;
  display:grid!important;
  place-items:center!important;
  color:currentColor!important;
  font-size:19px!important;
  line-height:1!important;
}
.sdd-side-item b{
  justify-self:end!important;
  font-size:22px!important;
  font-weight:400!important;
  line-height:1!important;
}

.sdd-catalog-content{
  min-width:0!important;
  padding:20px 28px 24px!important;
}
.sdd-catalog-section-title{
  margin:0 0 13px!important;
  color:#252b35!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
.sdd-brand-section{margin-bottom:20px!important}

.sdd-catalog-showcase .sdd-brand-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
}
.sdd-catalog-showcase .sdd-brand-card{
  min-width:0!important;
  height:92px!important;
  margin:0!important;
  padding:10px 12px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid #e4e8ed!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#101828!important;
  box-shadow:none!important;
  cursor:pointer!important;
  transition:.16s ease!important;
}
.sdd-catalog-showcase .sdd-brand-card:hover{
  transform:translateY(-1px)!important;
  border-color:#ffb68f!important;
  box-shadow:0 6px 15px rgba(15,23,42,.06)!important;
}
.sdd-catalog-showcase .sdd-brand-card.active{
  border-color:#ff6a1a!important;
  background:#fffaf7!important;
  box-shadow:0 0 0 1px rgba(255,90,0,.06),0 6px 16px rgba(255,90,0,.08)!important;
}
.sdd-catalog-showcase .sdd-brand-all,
.sdd-catalog-showcase .sdd-brand-hot{
  display:none!important;
}
.sdd-brand-mark{
  min-height:33px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#131722!important;
  font-size:24px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:-.7px!important;
}
.sdd-brand-name{
  color:#1f242c!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:750!important;
  text-transform:none!important;
}

/* wordmark gần với nhận diện hãng nhưng không phụ thuộc ảnh ngoài */
.sdd-brand-card[data-brand="Xiaomi"] .sdd-brand-mark{
  width:42px!important;height:42px!important;min-height:42px!important;
  border-radius:12px!important;background:#ff6900!important;color:#fff!important;
  font-size:21px!important;font-weight:900!important;
}
.sdd-brand-card[data-brand="Samsung"] .sdd-brand-mark{color:#122ea5!important;font-size:20px!important;letter-spacing:-1px!important}
.sdd-brand-card[data-brand="OPPO"] .sdd-brand-mark{color:#087b46!important;font-size:25px!important;font-weight:700!important}
.sdd-brand-card[data-brand="vivo"] .sdd-brand-mark{color:#275de6!important;font-size:25px!important;font-weight:750!important}
.sdd-brand-card[data-brand="Realme"] .sdd-brand-mark{
  width:42px!important;height:42px!important;min-height:42px!important;
  background:#ffd400!important;color:#171717!important;font-size:27px!important;font-weight:900!important;
}
.sdd-brand-card[data-brand="OnePlus"] .sdd-brand-mark{color:#ef1d35!important;font-size:26px!important;font-weight:900!important}
.sdd-brand-card[data-brand="iQOO"] .sdd-brand-mark{color:#e3a600!important;font-size:25px!important;font-weight:700!important}
.sdd-brand-card[data-brand="HONOR"] .sdd-brand-mark{font-size:22px!important;letter-spacing:-.9px!important}
.sdd-brand-card[data-brand="POCO"] .sdd-brand-mark{
  padding:8px 11px!important;min-height:36px!important;background:#ffd600!important;color:#111!important;font-size:18px!important;font-weight:900!important;
}
.sdd-brand-card[data-brand="TECNO"] .sdd-brand-mark{color:#1463c8!important;font-size:21px!important;font-weight:850!important}
.sdd-brand-card[data-brand="Apple"] .sdd-brand-mark{font-size:31px!important}

.sdd-price-section{margin-top:2px!important}
.sdd-catalog-showcase .sdd-price-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
}
.sdd-catalog-showcase .price-filter-btn{
  min-width:0!important;
  min-height:37px!important;
  padding:7px 10px!important;
  border:1px solid #ffb48d!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#f25300!important;
  font-size:12px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.sdd-catalog-showcase .price-filter-btn:first-child{display:none!important}
.sdd-catalog-showcase .price-filter-btn:hover,
.sdd-catalog-showcase .price-filter-btn.active{
  border-color:#ff5a00!important;
  background:#fff3ec!important;
  color:#e64e00!important;
}

.sdd-catalog-benefits{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:center!important;
  gap:12px!important;
  min-height:76px!important;
  padding:12px 70px!important;
  border-top:1px solid #f5e8e0!important;
  background:linear-gradient(90deg,#fff8f4 0%,#fffdfb 52%,#fff8f4 100%)!important;
}
.sdd-benefit-item{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  min-width:0!important;
}
.sdd-benefit-icon{
  width:32px!important;height:32px!important;flex:0 0 32px!important;
  display:grid!important;place-items:center!important;
  color:#ff5a00!important;font-size:22px!important;font-weight:800!important;
}
.sdd-benefit-item>div{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important}
.sdd-benefit-item strong{color:#20242c!important;font-size:13px!important;line-height:1.2!important;font-weight:800!important}
.sdd-benefit-item small{color:#6f7785!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap!important}

.sdd-catalog-toolbar{
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:8px 16px!important;
  border-top:1px solid #eef1f4!important;
  background:#fff!important;
}
.sdd-catalog-toolbar .summary{margin:0!important;color:#7b8492!important;font-size:11px!important}
.sdd-catalog-toolbar .catalog-sort-area{display:flex!important;align-items:center!important;gap:8px!important}
.sdd-catalog-toolbar .catalog-sort-area>span{color:#7b8492!important;font-size:11px!important;font-weight:700!important}
.sdd-catalog-toolbar .sort-select{min-height:34px!important;border-radius:8px!important;font-size:11px!important}

@media(min-width:1500px){
  .sdd-catalog-showcase-main{grid-template-columns:270px minmax(0,1fr)!important}
  .sdd-catalog-content{padding:22px 34px 26px!important}
  .sdd-catalog-showcase .sdd-brand-card{height:98px!important}
}

@media(max-width:1080px){
  .sdd-catalog-showcase-main{grid-template-columns:205px minmax(0,1fr)!important}
  .sdd-catalog-content{padding:18px!important}
  .sdd-catalog-showcase .sdd-brand-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .sdd-catalog-showcase .sdd-price-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .sdd-catalog-benefits{padding:12px 22px!important}
}

@media(max-width:720px){
  .sdd-catalog-showcase{
    margin:8px 0 14px!important;
    border-radius:14px!important;
  }
  .sdd-catalog-showcase-main{display:block!important;min-height:0!important}
  .sdd-catalog-side{
    display:flex!important;
    gap:7px!important;
    padding:10px!important;
    overflow-x:auto!important;
    border-right:0!important;
    border-bottom:1px solid #edf0f3!important;
    scrollbar-width:none!important;
  }
  .sdd-catalog-side::-webkit-scrollbar{display:none!important}
  .sdd-side-item{
    width:auto!important;
    min-width:max-content!important;
    min-height:36px!important;
    display:flex!important;
    grid-template-columns:none!important;
    padding:0 11px!important;
    border:1px solid #e8ebef!important;
    border-radius:999px!important;
    background:#fff!important;
    font-size:11px!important;
  }
  .sdd-side-item.active{border-color:#ff6a1a!important;background:#fff2ea!important}
  .sdd-side-icon{width:auto!important;height:auto!important;font-size:13px!important}
  .sdd-side-item b{display:none!important}
  .sdd-catalog-content{padding:14px 10px 16px!important}
  .sdd-catalog-section-title{margin-bottom:10px!important;font-size:12px!important}
  .sdd-catalog-showcase .sdd-brand-grid{
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    padding-bottom:3px!important;
    scrollbar-width:none!important;
  }
  .sdd-catalog-showcase .sdd-brand-grid::-webkit-scrollbar{display:none!important}
  .sdd-catalog-showcase .sdd-brand-card{
    flex:0 0 108px!important;
    height:76px!important;
    padding:8px!important;
    border-radius:10px!important;
  }
  .sdd-brand-mark{min-height:27px!important;font-size:18px!important}
  .sdd-brand-name{font-size:10px!important}
  .sdd-brand-card[data-brand="Xiaomi"] .sdd-brand-mark,
  .sdd-brand-card[data-brand="Realme"] .sdd-brand-mark{width:34px!important;height:34px!important;min-height:34px!important;font-size:17px!important}
  .sdd-brand-card[data-brand="POCO"] .sdd-brand-mark{min-height:30px!important;padding:6px 8px!important;font-size:15px!important}
  .sdd-price-section{margin-top:14px!important}
  .sdd-catalog-showcase .sdd-price-grid{
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
  }
  .sdd-catalog-showcase .sdd-price-grid::-webkit-scrollbar{display:none!important}
  .sdd-catalog-showcase .price-filter-btn{flex:0 0 auto!important;min-height:34px!important;font-size:10.5px!important}
  .sdd-catalog-benefits{
    display:flex!important;
    gap:18px!important;
    padding:12px!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
  }
  .sdd-catalog-benefits::-webkit-scrollbar{display:none!important}
  .sdd-benefit-item{flex:0 0 auto!important;justify-content:flex-start!important}
  .sdd-benefit-icon{width:28px!important;height:28px!important;flex-basis:28px!important;font-size:18px!important}
  .sdd-benefit-item strong{font-size:11px!important}
  .sdd-benefit-item small{font-size:9.5px!important}
  .sdd-catalog-toolbar{min-height:44px!important;padding:7px 10px!important}
  .sdd-catalog-toolbar .catalog-sort-area>span{display:none!important}
  .sdd-catalog-toolbar .sort-select{max-width:145px!important}
}


/* =========================================================
   V234 - Remove left quick-category sidebar
   ========================================================= */
.sdd-catalog-showcase-main{
  display:block!important;
  min-height:0!important;
}
.sdd-catalog-side{display:none!important;}
.sdd-catalog-content{
  width:100%!important;
  padding-left:28px!important;
  padding-right:28px!important;
}
@media(min-width:1500px){
  .sdd-catalog-content{padding-left:34px!important;padding-right:34px!important;}
}
@media(max-width:1080px){
  .sdd-catalog-content{padding-left:18px!important;padding-right:18px!important;}
}
@media(max-width:720px){
  .sdd-catalog-content{padding-left:10px!important;padding-right:10px!important;}
}

/* =========================================================
   V235 - Desktop header theo mẫu showroom
   ========================================================= */
@media (min-width: 901px){
  .sdd-header-v164{
    border-top:0!important;
    box-shadow:0 1px 0 #eef1f4!important;
  }
  .sdd-top-strip{
    background:#ff5900!important;
  }
  .sdd-top-strip-inner{
    width:min(1540px,calc(100% - 72px))!important;
    min-height:46px!important;
    font-size:14px!important;
    font-weight:800!important;
    letter-spacing:-.1px;
  }
  .sdd-top-message,
  .sdd-top-benefits > span{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
  }
  .sdd-top-message svg,
  .sdd-top-benefits svg{
    width:20px;
    height:20px;
    flex:0 0 20px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .sdd-top-benefits{
    gap:36px!important;
  }

  .sdd-header-v164 .commerce-header-inner{
    width:min(1540px,calc(100% - 72px))!important;
    min-height:132px!important;
    grid-template-columns:330px minmax(520px,1fr) 365px!important;
    gap:34px!important;
    padding:18px 0!important;
  }
  .sdd-mobile-menu-btn{display:none!important;}
  .commerce-brand-block{min-width:0;}
  .sdd-header-v164 .commerce-logo{
    gap:18px!important;
  }
  .sdd-header-v164 .commerce-logo-mark{
    width:82px!important;
    height:82px!important;
    border-radius:20px!important;
    box-shadow:none!important;
  }
  .sdd-header-v164 .commerce-logo-text{
    font-size:28px!important;
    letter-spacing:-1px!important;
  }
  .sdd-brand-copy small{
    margin-top:7px!important;
    font-size:15px!important;
    color:#6b7280!important;
  }

  .sdd-header-search{
    height:66px!important;
    grid-template-columns:54px minmax(0,1fr) 40px 68px!important;
    border:1.5px solid #ff9b67!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .sdd-header-search input{
    height:63px!important;
    font-size:17px!important;
    color:#111827!important;
  }
  .sdd-header-search input::placeholder{color:#98a2b3!important;opacity:1;}
  .sdd-search-leading svg{
    width:24px;height:24px;
    fill:none;stroke:#98a2b3;stroke-width:1.8;stroke-linecap:round;
  }
  .sdd-header-search #clearSearch{
    width:32px!important;height:32px!important;
  }
  .sdd-search-submit{
    width:68px!important;
    height:66px!important;
    border-radius:0 12px 12px 0!important;
    display:grid!important;
    place-items:center!important;
  }
  .sdd-search-submit svg{
    width:29px;height:29px;
    fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;
  }

  .sdd-header-actions{
    justify-content:flex-end!important;
    gap:28px!important;
  }
  .sdd-header-action{
    min-width:155px!important;
    height:72px!important;
    gap:14px!important;
    padding:0!important;
    border-radius:0!important;
  }
  .sdd-header-action:hover{background:transparent!important;}
  .sdd-action-icon{
    width:58px!important;
    height:58px!important;
    background:#f6f7f8!important;
    color:#111827!important;
    font-size:unset!important;
  }
  .sdd-action-icon svg{
    width:31px;height:31px;
    fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  }
  .sdd-header-action strong{
    font-size:20px!important;
    line-height:1.05!important;
    color:#111827!important;
  }
  .sdd-header-action small{
    margin-top:6px!important;
    font-size:15px!important;
    color:#667085!important;
  }
  #sddConsultAction strong{position:relative;}
  #sddConsultAction strong::after{
    content:"";
    position:absolute;
    width:8px;height:8px;
    border-radius:50%;
    background:#22c55e;
    top:-5px;right:-12px;
    border:2px solid #fff;
  }
  .commerce-header-note{display:none!important;}
}

@media (min-width: 901px) and (max-width: 1250px){
  .sdd-header-v164 .commerce-header-inner{
    grid-template-columns:250px minmax(360px,1fr) 290px!important;
    gap:20px!important;
  }
  .sdd-header-v164 .commerce-logo-mark{width:64px!important;height:64px!important;}
  .sdd-header-v164 .commerce-logo-text{font-size:22px!important;}
  .sdd-brand-copy small{font-size:12px!important;}
  .sdd-header-action{min-width:130px!important;gap:10px!important;}
  .sdd-action-icon{width:48px!important;height:48px!important;}
  .sdd-header-action strong{font-size:16px!important;}
  .sdd-header-action small{font-size:13px!important;}
}

/* =========================================================
   V236 - Can doi lai desktop showroom header
   ========================================================= */
@media (min-width: 1251px){
  .sdd-top-strip-inner,
  .sdd-header-v164 .commerce-header-inner,
  .sdd-header-nav-inner{
    width:min(1680px,calc(100% - 80px))!important;
    max-width:1680px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .sdd-header-v164 .commerce-header-inner.sdd-header-main{
    min-height:126px!important;
    grid-template-columns:320px minmax(560px,1fr) 390px!important;
    column-gap:42px!important;
    align-items:center!important;
    padding:18px 0!important;
  }

  .sdd-header-v164 .commerce-logo{gap:16px!important;}
  .sdd-header-v164 .commerce-logo-mark{
    width:72px!important;
    height:72px!important;
    border-radius:18px!important;
  }
  .sdd-header-v164 .commerce-logo-text{
    font-size:27px!important;
    line-height:1!important;
  }
  .sdd-brand-copy small{
    margin-top:7px!important;
    font-size:14px!important;
  }

  .sdd-header-search{
    width:100%!important;
    max-width:none!important;
    height:64px!important;
    grid-template-columns:50px minmax(0,1fr) 40px 68px!important;
  }
  .sdd-header-search input{height:61px!important;font-size:16px!important;}
  .sdd-search-submit{height:64px!important;width:68px!important;}

  .sdd-header-actions{
    width:390px!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:22px!important;
    justify-content:stretch!important;
  }
  .sdd-header-action{
    min-width:0!important;
    width:100%!important;
    height:68px!important;
    gap:12px!important;
    justify-content:flex-start!important;
  }
  .sdd-action-icon{
    width:54px!important;
    height:54px!important;
    flex:0 0 54px!important;
  }
  .sdd-header-action strong{font-size:18px!important;white-space:nowrap!important;}
  .sdd-header-action small{font-size:14px!important;}
}

@media (min-width: 1251px) and (max-width: 1550px){
  .sdd-top-strip-inner,
  .sdd-header-v164 .commerce-header-inner,
  .sdd-header-nav-inner{
    width:calc(100% - 56px)!important;
  }
  .sdd-header-v164 .commerce-header-inner.sdd-header-main{
    grid-template-columns:280px minmax(480px,1fr) 340px!important;
    column-gap:28px!important;
  }
  .sdd-header-actions{width:340px!important;gap:14px!important;}
  .sdd-header-v164 .commerce-logo-mark{width:66px!important;height:66px!important;}
  .sdd-header-v164 .commerce-logo-text{font-size:24px!important;}
  .sdd-header-action strong{font-size:16px!important;}
}


/* =========================================================
   V237 - Wider desktop layout + single-row brands + clean nav
   ========================================================= */
@media (min-width: 1000px){
  .page{
    width:min(1680px,calc(100% - 48px))!important;
    max-width:1680px!important;
  }
}

@media (min-width: 1251px){
  .sdd-header-nav-inner{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:24px!important;
  }
  .sdd-main-nav{
    justify-content:flex-start!important;
    gap:34px!important;
  }
  .sdd-catalog-showcase .sdd-brand-grid{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .sdd-catalog-showcase .sdd-brand-card{
    height:96px!important;
  }
  .sdd-brand-section{
    margin-bottom:16px!important;
  }
  .sdd-catalog-content{
    padding-top:22px!important;
    padding-bottom:22px!important;
  }
}

@media (min-width: 1550px){
  .page{
    width:min(1680px,calc(100% - 64px))!important;
  }
  .product-grid{
    gap:16px!important;
  }
}

/* V238 - Fix icon search mobile bị thành chấm đen */
@media(max-width:720px){
  .sdd-search-leading svg{
    width:18px!important;
    height:18px!important;
    display:block!important;
    fill:none!important;
    stroke:#98a2b3!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }
  .sdd-search-leading svg circle,
  .sdd-search-leading svg path{
    fill:none!important;
    stroke:#98a2b3!important;
  }
}

/* v241 - Fix duplicate native search clear button and header search alignment */
#searchInput::-webkit-search-cancel-button,
#searchInput::-webkit-search-decoration,
#searchInput::-webkit-search-results-button,
#searchInput::-webkit-search-results-decoration{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:none!important;
}
#searchInput::-ms-clear,
#searchInput::-ms-reveal{
  display:none!important;
  width:0!important;
  height:0!important;
}

.sdd-header-search{
  overflow:visible!important;
}
.sdd-header-search #searchInput{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.sdd-header-search #clearSearch{
  flex:0 0 auto!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  box-shadow:none!important;
  line-height:1!important;
  z-index:3!important;
}

@media (min-width: 769px){
  .sdd-header-search{
    overflow:hidden!important;
  }
  .sdd-header-search #clearSearch{
    margin:0!important;
    align-self:center!important;
  }
}

@media (max-width: 768px){
  .sdd-header-search #clearSearch{
    margin:0 4px 0 0!important;
  }
}

/* =========================================================
   V242 - Equal product card heights / aligned actions
   ========================================================= */
.compact-product-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.compact-product-media{
  flex:0 0 auto;
}
.compact-product-body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
}
.compact-product-title{
  min-height:58px;
}
.compact-product-price{
  min-height:25px;
}
.compact-product-meta{
  margin-top:auto;
}

@media(max-width:720px){
  .compact-product-title{
    min-height:66px;
  }
  .compact-product-price{
    min-height:25px;
  }
  .compact-product-meta{
    margin-top:auto;
  }
  .compact-card-actions{
    width:100%;
  }
}

/* =========================================================
   V243 - Cân đối lại trang Tra cứu bảo hành trên desktop
   ========================================================= */
@media(min-width:900px){
  .warranty-page-main{
    width:min(1180px,calc(100% - 56px))!important;
    margin:34px auto 56px!important;
  }

  .warranty-page-card{
    display:grid!important;
    grid-template-columns:minmax(280px,.72fr) minmax(520px,1.55fr)!important;
    column-gap:34px!important;
    row-gap:22px!important;
    padding:34px 36px!important;
    border-radius:22px!important;
  }

  .warranty-page-card .warranty-head{
    margin:0!important;
    align-self:center!important;
  }

  .warranty-page-card .warranty-head h1{
    font-size:29px!important;
  }

  .warranty-page-card .warranty-head p{
    max-width:300px!important;
    font-size:13px!important;
  }

  .warranty-page-card .warranty-form{
    margin:0!important;
    padding:20px!important;
    align-self:center!important;
  }

  .warranty-page-card .warranty-search-row input{
    height:54px!important;
    font-size:16px!important;
  }

  .warranty-page-card .warranty-search-row button{
    min-width:122px!important;
    height:54px!important;
    font-size:14px!important;
  }

  .warranty-page-card .warranty-result,
  .warranty-page-card .warranty-policy-box{
    grid-column:1 / -1!important;
  }

  .warranty-page-card .warranty-result{
    margin-top:0!important;
  }

  .warranty-page-card .warranty-policy-box{
    margin-top:0!important;
    padding:20px 22px!important;
  }

  .warranty-page-card .warranty-policy-box>strong{
    font-size:14px!important;
  }

  .warranty-page-card .warranty-policy-box>p{
    max-width:900px!important;
    font-size:12.5px!important;
  }

  .warranty-page-card .warranty-policy-details:not([hidden]){
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:0 34px!important;
    margin-top:16px!important;
    padding-top:16px!important;
    border-top:1px dashed #f2c3a7!important;
  }

  .warranty-page-card .warranty-policy-section+.warranty-policy-section{
    margin-top:0!important;
    padding-top:0!important;
    border-top:0!important;
    padding-left:28px!important;
    border-left:1px dashed #f2c3a7!important;
  }

  .warranty-page-card .warranty-policy-section h3{
    font-size:13px!important;
    margin-top:0!important;
  }

  .warranty-page-card .warranty-policy-section li{
    font-size:12px!important;
    line-height:1.6!important;
  }

  .warranty-page-card .warranty-items{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
}
cd /mnt/data/v244 && zip -qr /mnt/data/sieu_di_dong_v244_warranty_full_page.zip .
ls -lh /mnt/data/sieu_di_dong_v244_warranty_full_page.zip


/* V244 - Warranty full page */
.warranty-extra{border:1px solid #e7eaf0;border-radius:16px;background:#fff;padding:20px}.warranty-extra-head h2{margin:3px 0 6px;font-size:18px;line-height:1.25;color:#111827}.warranty-extra-head p{margin:0;color:#64748b;font-size:12.5px;line-height:1.55}.warranty-extra-kicker{font-size:10px;font-weight:900;letter-spacing:.08em;color:#ff5a00}.warranty-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.warranty-step{position:relative;min-height:106px;padding:16px 14px 14px 48px;border:1px solid #edf0f4;border-radius:14px;background:#fafbfc}.warranty-step>span{position:absolute;left:14px;top:14px;width:26px;height:26px;border-radius:9px;background:#fff0e8;color:#ff5a00;display:grid;place-items:center;font-weight:900;font-size:12px}.warranty-step strong{display:block;font-size:13px;color:#111827;margin-bottom:5px}.warranty-step small{display:block;color:#64748b;line-height:1.45;font-size:11px}.warranty-bottom-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:16px}.warranty-note-card ul{margin:14px 0 0;padding-left:18px;color:#475569}.warranty-note-card li{margin:8px 0;font-size:12px;line-height:1.5}.warranty-support-card{background:linear-gradient(135deg,#fff8f3,#fff);border-color:#ffd5bc}.warranty-zalo-btn,.warranty-home-btn{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:11px;text-decoration:none;font-weight:800;font-size:12px;margin-top:12px}.warranty-zalo-btn{background:#1677ff;color:#fff}.warranty-home-btn{border:1px solid #ffb58b;color:#e64f00;background:#fff}@media(min-width:900px){.warranty-page-main{margin-bottom:34px!important}.warranty-page-card{row-gap:18px!important}.warranty-page-card .warranty-policy-details:not([hidden]){display:grid!important}.warranty-page-card .warranty-extra,.warranty-page-card .warranty-bottom-grid{grid-column:1/-1!important}.warranty-page-card .warranty-policy-box{padding:22px 24px!important}.warranty-page-card .warranty-policy-toggle{margin-top:10px!important}}@media(max-width:899px){.warranty-extra{padding:16px 14px}.warranty-steps{grid-template-columns:1fr 1fr}.warranty-bottom-grid{grid-template-columns:1fr}}@media(max-width:520px){.warranty-steps{grid-template-columns:1fr}.warranty-step{min-height:86px}}

/* =========================================================
   V246 - Refine mobile Zalo CTA in drawer
   ========================================================= */
@media(max-width:768px){
  .sdd-mobile-drawer-footer{
    padding:12px 14px calc(14px + env(safe-area-inset-bottom))!important;
    border-top:1px solid #eef1f5!important;
    background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)!important;
  }

  #sddMobileConsultBtn{
    min-height:64px!important;
    padding:9px 12px!important;
    grid-template-columns:44px minmax(0,1fr) 28px!important;
    gap:11px!important;
    border:1px solid #e4e9f0!important;
    border-radius:16px!important;
    background:#fff!important;
    color:#111827!important;
    box-shadow:0 6px 18px rgba(15,23,42,.07)!important;
  }

  #sddMobileConsultBtn .sdd-zalo-dot{
    width:44px!important;
    height:44px!important;
    border-radius:13px!important;
    background:#0068ff!important;
    color:#fff!important;
    font-size:20px!important;
    font-weight:900!important;
    box-shadow:0 5px 12px rgba(0,104,255,.20)!important;
  }

  #sddMobileConsultBtn strong{
    font-size:14px!important;
    line-height:1.2!important;
    font-weight:850!important;
    color:#111827!important;
    letter-spacing:-.1px!important;
  }

  #sddMobileConsultBtn small{
    margin-top:4px!important;
    color:#64748b!important;
    font-size:10.5px!important;
    line-height:1.2!important;
    font-weight:600!important;
  }

  #sddMobileConsultBtn>b{
    width:28px!important;
    height:28px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:50%!important;
    background:#eef5ff!important;
    color:#0068ff!important;
    font-size:18px!important;
    font-weight:700!important;
  }

  #sddMobileConsultBtn:active{
    transform:scale(.985)!important;
    background:#f8fbff!important;
  }
}

/* =========================================================
   V247 - Refine mobile drawer navigation
   ========================================================= */
@media(max-width:768px){
  .sdd-mobile-drawer-panel{
    width:min(90vw,380px)!important;
    border-radius:0 22px 22px 0!important;
  }

  .sdd-mobile-nav-list{
    padding:9px 11px 14px!important;
  }

  .sdd-mobile-nav-list a{
    min-height:48px!important;
    padding:6px 9px!important;
    grid-template-columns:36px minmax(0,1fr) 18px!important;
    gap:10px!important;
    border-radius:12px!important;
    transition:background .15s ease,color .15s ease!important;
  }

  .sdd-mobile-nav-list a + a{margin-top:2px!important}

  .sdd-mobile-nav-icon{
    width:34px!important;
    height:34px!important;
    border-radius:10px!important;
    background:#fff5ef!important;
  }

  .sdd-mobile-nav-icon svg{
    width:18px!important;
    height:18px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  .sdd-mobile-nav-list a.sdd-drawer-active{
    color:#e94f00!important;
    background:#fff3eb!important;
  }

  .sdd-mobile-nav-list a.sdd-drawer-active .sdd-mobile-nav-icon{
    background:#ffeadc!important;
    color:#ff5a00!important;
  }

  .sdd-mobile-nav-list a.sdd-drawer-active>b{color:#ff7a33!important}

  .sdd-mobile-warranty-menu-item small{
    display:block!important;
    margin-top:2px!important;
    font-size:9.5px!important;
    line-height:1.2!important;
    color:#8a94a3!important;
    font-weight:500!important;
  }
}

/* V253 - Máy cũ độc lập */
.used-detail-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}
.used-detail-thumb{aspect-ratio:1;border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:4px;cursor:pointer;overflow:hidden}
.used-detail-thumb.active{border-color:#ff5a00;box-shadow:0 0 0 2px rgba(255,90,0,.12)}
.used-detail-thumb img{width:100%;height:100%;object-fit:cover;border-radius:7px}
.used-detail-info{margin:14px 0;padding:14px;border:1px solid #ffd8c2;border-radius:12px;background:#fff8f4;display:grid;gap:8px}
.used-detail-info>div:not(.used-detail-badge){display:flex;justify-content:space-between;gap:18px;font-size:13px}
.used-detail-info span{color:#667085}.used-detail-info strong{text-align:right;color:#101828}
.used-detail-info p{margin:2px 0 0;padding-top:9px;border-top:1px dashed #ffd0b7;color:#7a4124;font-size:12px;line-height:1.5}
.used-detail-badge{font-weight:900;color:#e65100;font-size:12px}
@media(max-width:640px){.used-detail-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* =========================================================
   V261 - Cân đối lại trang chi tiết sản phẩm desktop rộng
   ========================================================= */
@media (min-width:1101px){
  body.detail-view-active .inline-detail-page{
    width:min(1500px,calc(100% - 48px))!important;
    max-width:none!important;
    margin:22px auto 46px!important;
  }

  .inline-detail-topbar{
    margin-bottom:12px!important;
  }

  .detail-breadcrumb{
    margin-bottom:8px!important;
    font-size:12.5px!important;
  }

  .detail-heading{
    margin-bottom:16px!important;
  }

  .detail-heading h2{
    font-size:28px!important;
    line-height:1.24!important;
    letter-spacing:-.35px!important;
  }

  .detail-main{
    grid-template-columns:minmax(360px,.92fr) minmax(420px,1.15fr) minmax(300px,.78fr)!important;
    gap:24px!important;
    padding:22px!important;
    border-radius:16px!important;
    align-items:start!important;
  }

  .detail-gallery{
    align-self:start!important;
  }

  .detail-image-box{
    width:100%!important;
    height:430px!important;
    border-radius:14px!important;
    background:#fbfbfc!important;
  }

  .detail-image-box .product-image{
    padding:22px!important;
  }

  .detail-info{
    padding:7px 2px!important;
  }

  .detail-price{
    font-size:31px!important;
    line-height:1.08!important;
  }

  .detail-choose-text{
    margin-top:7px!important;
    margin-bottom:20px!important;
    font-size:13.5px!important;
  }

  .detail-option-row{
    grid-template-columns:105px minmax(0,1fr)!important;
    gap:12px!important;
    margin:15px 0!important;
  }

  .detail-option-label{
    font-size:13px!important;
  }

  .detail-actions{
    gap:10px!important;
    margin-top:18px!important;
  }

  .detail-action-primary,
  .detail-action-secondary{
    min-height:48px!important;
    border-radius:10px!important;
    font-size:14px!important;
  }

  .detail-related{
    border-radius:12px!important;
  }

  .detail-related-title{
    padding:13px 14px!important;
    font-size:14px!important;
  }

  .detail-related-item{
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:11px!important;
    min-height:100px!important;
    padding:10px 11px!important;
  }

  .detail-related-thumb{
    width:78px!important;
    height:78px!important;
  }

  .detail-related-name{
    font-size:12.5px!important;
    line-height:1.35!important;
  }

  .detail-related-price{
    font-size:13px!important;
  }

  .technical-spec-section{
    margin-top:20px!important;
    border-radius:14px!important;
  }

  .technical-spec-title{
    padding:15px 18px!important;
    font-size:17px!important;
  }

  .tech-spec-row{
    grid-template-columns:220px minmax(0,1fr)!important;
  }

  .tech-spec-label{
    padding:14px 17px!important;
    font-size:12.5px!important;
  }

  .tech-spec-value{
    padding:14px 18px!important;
    font-size:13px!important;
    line-height:1.65!important;
  }
}

/* Màn hình rất rộng: tăng vừa phải, không kéo card quá loãng */
@media (min-width:1700px){
  body.detail-view-active .inline-detail-page{
    width:min(1580px,calc(100% - 72px))!important;
  }

  .detail-main{
    grid-template-columns:minmax(400px,.95fr) minmax(470px,1.18fr) minmax(320px,.78fr)!important;
    gap:28px!important;
    padding:24px!important;
  }

  .detail-image-box{
    height:455px!important;
  }
}

/* Laptop desktop: vẫn cân, tránh ép 3 cột */
@media (min-width:1101px) and (max-width:1350px){
  body.detail-view-active .inline-detail-page{
    width:calc(100% - 28px)!important;
  }

  .detail-main{
    grid-template-columns:minmax(320px,.9fr) minmax(390px,1.1fr) minmax(270px,.75fr)!important;
    gap:18px!important;
    padding:18px!important;
  }

  .detail-image-box{
    height:380px!important;
  }

  .detail-heading h2{
    font-size:25px!important;
  }
}


/* =========================================================
   V275 - Thiết kế lại khu vực tra cứu bảo hành desktop
   ========================================================= */
@media(min-width:900px){
  .warranty-page-main{
    width:min(1120px,calc(100% - 48px))!important;
    margin:30px auto 52px!important;
  }

  .warranty-page-card{
    display:grid!important;
    grid-template-columns:minmax(220px,.72fr) minmax(0,1.7fr)!important;
    gap:18px 24px!important;
    padding:28px 30px!important;
    border-radius:22px!important;
    box-shadow:0 14px 36px rgba(15,23,42,.06)!important;
  }

  /* Header bên trái gọn lại */
  .warranty-page-card .warranty-head{
    align-self:center!important;
    gap:12px!important;
    padding-right:0!important;
  }
  .warranty-page-card .warranty-icon{
    width:48px!important;
    height:48px!important;
    flex:0 0 48px!important;
    border-radius:14px!important;
    font-size:24px!important;
  }
  .warranty-page-card .warranty-head h1{
    max-width:none!important;
    margin:0 0 5px!important;
    font-size:25px!important;
    line-height:1.05!important;
    letter-spacing:-.45px!important;
  }
  .warranty-page-card .warranty-head p{
    max-width:230px!important;
    font-size:12px!important;
    line-height:1.45!important;
  }

  /* Form tra cứu thành thanh gọn */
  .warranty-page-card .warranty-form{
    align-self:center!important;
    margin:0!important;
    padding:16px 18px!important;
    border-radius:15px!important;
    background:#f8fafc!important;
  }
  .warranty-page-card .warranty-form label{
    margin-bottom:8px!important;
    font-size:11px!important;
  }
  .warranty-page-card .warranty-search-row{
    grid-template-columns:minmax(0,1fr) 120px!important;
    gap:10px!important;
  }
  .warranty-page-card .warranty-search-row input{
    height:48px!important;
    padding:0 14px!important;
    border-radius:11px!important;
    font-size:14px!important;
  }
  .warranty-page-card .warranty-search-row button{
    min-width:0!important;
    height:48px!important;
    border-radius:11px!important;
    font-size:12px!important;
    box-shadow:0 7px 14px rgba(255,90,0,.16)!important;
  }
  .warranty-page-card .warranty-form>small{
    margin-top:7px!important;
    font-size:9.5px!important;
  }

  /* Kết quả nằm full width, nhưng nội dung không bị lọt thỏm */
  .warranty-page-card .warranty-result{
    grid-column:1/-1!important;
    margin:2px 0 0!important;
  }
  .warranty-page-card .warranty-summary{
    margin:0 0 9px!important;
    font-size:11px!important;
    color:#667085!important;
  }

  .warranty-page-card .warranty-items{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .warranty-page-card .warranty-item{
    padding:16px 17px!important;
    border-radius:14px!important;
    border-color:#e6e9ee!important;
    box-shadow:0 4px 12px rgba(15,23,42,.025)!important;
  }
  .warranty-page-card .warranty-item-top{
    align-items:center!important;
    gap:14px!important;
  }
  .warranty-page-card .warranty-item h3{
    margin:0 0 3px!important;
    font-size:14px!important;
    line-height:1.3!important;
  }
  .warranty-page-card .warranty-item small{
    font-size:10px!important;
  }
  .warranty-page-card .warranty-state{
    padding:6px 10px!important;
    font-size:10px!important;
    border-radius:999px!important;
  }

  /* 4 ô thông tin cân đều */
  .warranty-page-card .warranty-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:12px!important;
  }
  .warranty-page-card .warranty-grid>div{
    min-height:58px!important;
    padding:9px 10px!important;
    border:1px solid #edf0f4!important;
    border-radius:10px!important;
    background:#f8fafc!important;
  }
  .warranty-page-card .warranty-grid span{
    margin-bottom:4px!important;
    font-size:9px!important;
  }
  .warranty-page-card .warranty-grid strong{
    font-size:11px!important;
  }

  .warranty-page-card .warranty-imei{
    margin-top:10px!important;
    font-size:10px!important;
    color:#64748b!important;
  }
  .warranty-page-card .warranty-note{
    margin-top:10px!important;
    padding:9px 11px!important;
    border-radius:9px!important;
    font-size:10px!important;
    background:#fff6ec!important;
  }

  /* Chính sách tách rõ bên dưới */
  .warranty-page-card .warranty-policy-box,
  .warranty-page-card .warranty-extra,
  .warranty-page-card .warranty-bottom-grid{
    grid-column:1/-1!important;
  }
}

/* Laptop nhỏ */
@media(min-width:900px) and (max-width:1080px){
  .warranty-page-main{
    width:min(960px,calc(100% - 32px))!important;
  }
  .warranty-page-card{
    grid-template-columns:240px minmax(0,1fr)!important;
    padding:24px!important;
  }
}

/* =========================================================
   V384 - Giữ header mobile khi cuộn danh sách sản phẩm
   ========================================================= */
@media(max-width:720px){
  .sdd-header-v164{
    position:sticky!important;
    top:0!important;
    z-index:10050!important;
    width:100%!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(15,23,42,.08)!important;
  }

  /* Chỉ giữ đúng hàng Menu | Logo | Tìm kiếm trên mobile */
  .sdd-header-v164 .commerce-header-inner.sdd-header-main{
    position:relative!important;
    z-index:2!important;
    background:#fff!important;
  }

  /* Gợi ý tìm kiếm luôn nổi trên danh sách sản phẩm */
  .sdd-header-v164 .search-suggestions{
    z-index:10060!important;
  }
}

/* =========================================================
   V385 - Mobile header cố định thật sự khi cuộn
   Sticky có thể mất tác dụng khi ancestor tạo scroll context,
   nên dùng fixed + chừa đúng chiều cao header.
   ========================================================= */
@media(max-width:720px){
  html{
    scroll-padding-top:74px!important;
  }
  body{
    padding-top:71px!important;
  }
  .sdd-header-v164{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:2147483000!important;
    margin:0!important;
    transform:none!important;
    background:#fff!important;
    box-shadow:0 4px 16px rgba(15,23,42,.10)!important;
  }
  .sdd-header-v164 .sdd-top-strip,
  .sdd-header-v164 .sdd-header-nav,
  .sdd-header-v164 .commerce-header-note,
  .sdd-header-v164 .sdd-header-actions{
    display:none!important;
  }
  .sdd-header-v164 .commerce-header-inner.sdd-header-main{
    min-height:68px!important;
    height:68px!important;
    background:#fff!important;
  }
  .sdd-header-v164 .search-suggestions{
    position:absolute!important;
    z-index:2147483001!important;
  }
  body.detail-view-active{
    padding-top:71px!important;
  }
}

/* V391 - Footer Siêu Di Động */
.sdd-site-footer{
  margin-top:34px;
  background:linear-gradient(135deg,#101820 0%,#0d151b 52%,#10171c 100%);
  color:#eaf0f5;
  border-top:1px solid rgba(255,107,0,.42);
  font-size:14px;
  box-shadow:0 -14px 40px rgba(15,23,42,.06);
}
.sdd-footer-main{
  max-width:1440px;
  margin:0 auto;
  padding:38px 26px 30px;
  display:grid;
  grid-template-columns:1.08fr 1fr 1fr 1.04fr;
  gap:0;
}
.sdd-footer-col{
  min-width:0;
  padding:0 28px;
  border-left:1px solid rgba(255,255,255,.12);
}
.sdd-footer-col:first-child{border-left:0;padding-left:0}
.sdd-footer-col:last-child{padding-right:0}
.sdd-footer-col h3{
  margin:0 0 20px;
  display:flex;
  gap:9px;
  align-items:center;
  color:#fff;
  font-size:16px;
  font-weight:900;
  letter-spacing:.15px;
}
.sdd-footer-icon{color:#ff6500;font-size:22px;line-height:1}
.sdd-store-card strong{display:block;color:#ff7300;font-size:16px;margin-bottom:8px}
.sdd-store-card p{margin:5px 0;color:#d7dee5;line-height:1.55}
.sdd-store-card a{color:#fff;text-decoration:none}
.sdd-store-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}
.sdd-store-actions a{
  padding:7px 11px;border:1px solid rgba(255,105,0,.52);border-radius:8px;
  color:#ff8a33;background:rgba(255,105,0,.07);font-weight:800;font-size:12px;
}
.sdd-hotline{
  margin-top:22px;padding:12px 13px;border:1px solid rgba(255,255,255,.18);border-radius:12px;
  display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;background:rgba(255,255,255,.035)
}
.sdd-hotline>span:first-child{font-size:24px;color:#ff6500}
.sdd-hotline small{display:block;color:#aab5bf;font-size:11px;margin-bottom:2px}
.sdd-hotline b{color:#ff7300;font-size:17px}
.sdd-footer-links{display:flex;flex-direction:column;gap:11px}
.sdd-footer-links a{color:#d8e0e6;text-decoration:none;line-height:1.4;transition:.18s ease}
.sdd-footer-links a span{color:#ff7300;font-weight:900;margin-right:5px}
.sdd-footer-links a:hover{color:#ff7b19;transform:translateX(2px)}
.sdd-commit-box{
  margin-top:19px;padding:15px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.03)
}
.sdd-commit-box h4{margin:0 0 11px;color:#fff;font-size:14px}
.sdd-commit-box p{margin:7px 0;color:#d7dee5;font-size:12.5px}
.sdd-commit-box p span{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:7px;border-radius:50%;background:#ff6900;color:#fff;font-size:11px;font-weight:900}
.sdd-footer-muted{margin:0 0 17px;color:#aeb8c1;line-height:1.6;font-size:12.5px}
.sdd-social-list{display:flex;flex-direction:column;gap:10px}
.sdd-social-list a{display:flex;align-items:center;gap:9px;color:#e7edf2;text-decoration:none;font-weight:700}
.sdd-social-badge{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ff6500;color:#fff;font-weight:900}
.sdd-contact-note{margin-top:20px;padding-top:15px;border-top:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;gap:6px}
.sdd-contact-note b{color:#fff}.sdd-contact-note span{color:#9eabb6;font-size:12px;line-height:1.55}
.sdd-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid rgba(255,255,255,.14);border-radius:12px;overflow:hidden}
.sdd-service-grid a{min-height:104px;padding:13px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none;color:#fff;border-right:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}
.sdd-service-grid a:nth-child(2n){border-right:0}.sdd-service-grid a:nth-last-child(-n+2){border-bottom:0}
.sdd-service-icon{font-size:24px;color:#ff6b00;margin-bottom:6px;font-weight:900}
.sdd-service-grid b{font-size:12px}.sdd-service-grid small{margin-top:3px;color:#99a6b0;font-size:10.5px}
.sdd-payment-box{margin-top:17px;padding:13px;border-radius:11px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1)}
.sdd-payment-box>span{display:block;color:#aab5bf;font-size:11px;margin-bottom:9px}
.sdd-payment-box div{display:flex;flex-wrap:wrap;gap:6px}.sdd-payment-box b{padding:6px 8px;background:#fff;color:#1f2933;border-radius:6px;font-size:10.5px}
.sdd-footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  max-width:100%;padding:21px max(26px,calc((100% - 1440px)/2 + 26px));
  display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:28px;align-items:center;background:rgba(0,0,0,.16)
}
.sdd-footer-brand-new{display:flex;align-items:center;gap:12px}.sdd-footer-brand-new img{width:52px;height:52px;border-radius:12px;object-fit:cover}
.sdd-footer-brand-new div{display:flex;flex-direction:column}.sdd-footer-brand-new strong{color:#ff6500;font-size:20px;letter-spacing:.2px}.sdd-footer-brand-new span{font-size:10px;font-weight:800;color:#fff;margin-top:3px}
.sdd-footer-trust{display:flex;flex-direction:column;gap:7px;color:#c8d1d8;font-size:12px}
.sdd-footer-trust span::first-letter{color:#ff6500}
.sdd-footer-copy{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:6px;color:#aab4bd;font-size:11.5px}.sdd-footer-copy b{color:#ff7b19}
@media(max-width:1100px){
  .sdd-footer-main{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:30px}
  .sdd-footer-col{border-left:0;padding:0 20px}.sdd-footer-col:nth-child(odd){padding-left:0}.sdd-footer-col:nth-child(even){border-left:1px solid rgba(255,255,255,.12);padding-right:0}
  .sdd-footer-bottom{grid-template-columns:1fr 1fr}.sdd-footer-copy{grid-column:1/-1;align-items:flex-start;text-align:left}
}
@media(max-width:720px){
  .sdd-site-footer{margin-top:22px;font-size:13px}
  .sdd-footer-main{display:block;padding:25px 18px 10px}
  .sdd-footer-col,.sdd-footer-col:nth-child(even),.sdd-footer-col:nth-child(odd){padding:0 0 24px;margin:0 0 24px;border-left:0;border-bottom:1px solid rgba(255,255,255,.11)}
  .sdd-footer-col:last-child{border-bottom:0;margin-bottom:0}
  .sdd-footer-col h3{font-size:15px;margin-bottom:15px}
  .sdd-service-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sdd-service-grid a,.sdd-service-grid a:nth-child(2n),.sdd-service-grid a:nth-last-child(-n+2){border-right:1px solid rgba(255,255,255,.1);border-bottom:0;min-height:92px;padding:9px 3px}
  .sdd-service-grid a:last-child{border-right:0}
  .sdd-service-grid b{font-size:10.5px}.sdd-service-grid small{font-size:9px}
  .sdd-footer-bottom{padding:20px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
  .sdd-footer-brand-new img{width:46px;height:46px}.sdd-footer-brand-new strong{font-size:18px}
  .sdd-footer-copy{align-items:flex-start;text-align:left}
}

/* V392 - Footer palette refinement: lighter, softer, closer to main Siêu Di Động UI */
.sdd-site-footer{
  background:linear-gradient(135deg,#17212a 0%,#141e27 52%,#18232c 100%);
  color:#eef3f7;
  border-top-color:rgba(255,91,0,.48);
  box-shadow:0 -10px 32px rgba(15,23,42,.05);
}
.sdd-footer-col{border-left-color:rgba(255,255,255,.09)}
.sdd-footer-col h3{color:#f8fafc}
.sdd-footer-icon,.sdd-service-icon{color:#ff5a00}
.sdd-store-card strong,.sdd-hotline b,.sdd-footer-links a span{color:#ff6a12}
.sdd-store-card p,.sdd-commit-box p{color:#dce4ea}
.sdd-store-actions a{border-color:rgba(255,91,0,.48);color:#ff7a2b;background:rgba(255,91,0,.08)}
.sdd-hotline,.sdd-commit-box,.sdd-payment-box{
  background:#1d2933;
  border-color:rgba(255,255,255,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.sdd-hotline small,.sdd-footer-muted,.sdd-payment-box>span{color:#b6c1ca}
.sdd-footer-links a{color:#dce4ea}
.sdd-footer-links a:hover{color:#ff761f}
.sdd-commit-box p span,.sdd-social-badge{background:#ff5a00}
.sdd-social-list a{color:#edf2f6}
.sdd-contact-note{border-top-color:rgba(255,255,255,.09)}
.sdd-contact-note span{color:#b1bdc6}
.sdd-service-grid{background:#1a2630;border-color:rgba(255,255,255,.11)}
.sdd-service-grid a{color:#f4f7f9;border-right-color:rgba(255,255,255,.08);border-bottom-color:rgba(255,255,255,.08)}
.sdd-service-grid a:hover{background:#202e39}
.sdd-service-grid small{color:#adbac4}
.sdd-footer-bottom{
  border-top-color:rgba(255,255,255,.09);
  background:#101820;
}
.sdd-footer-brand-new strong{color:#ff5a00}
.sdd-footer-trust{color:#d0d8de}
.sdd-footer-copy{color:#b3bec7}
.sdd-footer-copy b{color:#ff6a12}
@media(max-width:1100px){.sdd-footer-col:nth-child(even){border-left-color:rgba(255,255,255,.09)}}
@media(max-width:720px){
  .sdd-footer-col,.sdd-footer-col:nth-child(even),.sdd-footer-col:nth-child(odd){border-bottom-color:rgba(255,255,255,.09)}
  .sdd-service-grid a,.sdd-service-grid a:nth-child(2n),.sdd-service-grid a:nth-last-child(-n+2){border-right-color:rgba(255,255,255,.08)}
}


/* V393 - Footer text/layout balance refinement */
.sdd-site-footer{font-size:15px}
.sdd-footer-main.sdd-footer-balanced{
  max-width:1440px;
  padding:42px 34px 34px;
  grid-template-columns:1.12fr 1.08fr 1.05fr 1fr;
  align-items:stretch;
}
.sdd-footer-balanced .sdd-footer-col{padding:0 32px;display:flex;flex-direction:column}
.sdd-footer-balanced .sdd-footer-col:first-child{padding-left:0}
.sdd-footer-balanced .sdd-footer-col:last-child{padding-right:0}
.sdd-footer-balanced .sdd-footer-col h3{font-size:17px;margin-bottom:22px;line-height:1.25}
.sdd-footer-balanced .sdd-store-card strong{font-size:16.5px}
.sdd-footer-balanced .sdd-store-card p{font-size:14px;line-height:1.62;margin:6px 0}
.sdd-footer-balanced .sdd-store-phone{margin-top:8px}
.sdd-footer-balanced .sdd-store-actions{margin-top:16px}
.sdd-footer-balanced .sdd-store-actions a{font-size:12.5px;padding:8px 12px}
.sdd-footer-balanced .sdd-hotline{margin-top:20px;padding:13px 15px}
.sdd-footer-balanced .sdd-hotline b{font-size:18px;letter-spacing:.25px}
.sdd-footer-balanced .sdd-hotline em{display:block;color:#93a2ad;font-size:10.5px;font-style:normal;margin-top:2px}
.sdd-footer-balanced .sdd-footer-links{gap:12px}
.sdd-footer-balanced .sdd-footer-links a{font-size:14px;line-height:1.48}
.sdd-footer-balanced .sdd-commit-box{margin-top:auto;padding:17px 18px}
.sdd-footer-balanced .sdd-commit-box h4{font-size:14.5px;margin-bottom:12px}
.sdd-footer-balanced .sdd-commit-box p{font-size:13px;margin:8px 0}
.sdd-footer-balanced .sdd-footer-muted{font-size:13px;line-height:1.65;margin-bottom:18px}
.sdd-footer-balanced .sdd-social-list{gap:11px}
.sdd-footer-balanced .sdd-social-list a{font-size:14px}
.sdd-newsletter-mini{margin-top:auto;padding-top:18px;border-top:1px solid rgba(255,255,255,.09);display:flex;flex-direction:column;gap:8px}
.sdd-newsletter-mini>b{font-size:14px;color:#fff;letter-spacing:.15px}
.sdd-newsletter-mini>span{font-size:11.5px;line-height:1.55;color:#aeb9c2}
.sdd-newsletter-row{display:flex;gap:8px;margin-top:3px}
.sdd-newsletter-row input{min-width:0;flex:1;height:38px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:#17232d;color:#fff;padding:0 11px;outline:none}
.sdd-newsletter-row input::placeholder{color:#8795a0}
.sdd-newsletter-row button{height:38px;min-width:58px;border:0;border-radius:8px;background:#ff5a00;color:#fff;font-weight:800;cursor:pointer}
.sdd-footer-utility-col .sdd-service-grid{margin-top:1px}
.sdd-footer-balanced .sdd-service-grid a{min-height:108px}
.sdd-footer-balanced .sdd-service-grid b{font-size:12.5px}
.sdd-footer-balanced .sdd-service-grid small{font-size:10.5px}
.sdd-footer-balanced .sdd-payment-box{margin-top:16px;padding:14px}
.sdd-footer-bottom.sdd-footer-bottom-balanced{
  padding-top:22px;padding-bottom:22px;
  grid-template-columns:1.05fr 1.15fr 1.15fr;
}
.sdd-footer-bottom-balanced .sdd-footer-trust-inline{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px 20px;justify-content:center;font-size:12px}
.sdd-footer-bottom-balanced .sdd-footer-copy{font-size:11.5px}
@media(max-width:1100px){
  .sdd-footer-main.sdd-footer-balanced{grid-template-columns:repeat(2,minmax(0,1fr));padding:34px 24px 24px}
  .sdd-footer-balanced .sdd-footer-col{padding:0 22px 28px}
  .sdd-footer-balanced .sdd-footer-col:nth-child(odd){padding-left:0}
  .sdd-footer-balanced .sdd-footer-col:nth-child(even){padding-right:0}
  .sdd-footer-balanced .sdd-commit-box,.sdd-newsletter-mini{margin-top:20px}
  .sdd-footer-bottom.sdd-footer-bottom-balanced{grid-template-columns:1fr 1fr}
  .sdd-footer-bottom-balanced .sdd-footer-trust-inline{justify-content:flex-start}
}
@media(max-width:720px){
  .sdd-site-footer{font-size:14px}
  .sdd-footer-main.sdd-footer-balanced{display:block;padding:27px 18px 10px}
  .sdd-footer-balanced .sdd-footer-col,.sdd-footer-balanced .sdd-footer-col:nth-child(even),.sdd-footer-balanced .sdd-footer-col:nth-child(odd){padding:0 0 24px}
  .sdd-footer-balanced .sdd-footer-col h3{font-size:16px;margin-bottom:16px}
  .sdd-footer-balanced .sdd-store-card p,.sdd-footer-balanced .sdd-footer-links a,.sdd-footer-balanced .sdd-social-list a{font-size:13.5px}
  .sdd-newsletter-mini{margin-top:18px}
  .sdd-footer-bottom.sdd-footer-bottom-balanced{display:flex;padding:20px 18px;gap:17px}
  .sdd-footer-bottom-balanced .sdd-footer-trust-inline{display:flex;flex-direction:column;gap:6px}
}

/* V394 - Footer proportion & typography refinement */
.sdd-site-footer{
  font-size:16px;
  letter-spacing:0;
}
.sdd-footer-main.sdd-footer-balanced{
  max-width:1460px;
  padding:48px 42px 40px;
  grid-template-columns:1.18fr 1.1fr 1.12fr .95fr;
  column-gap:0;
}
.sdd-footer-balanced .sdd-footer-col{
  padding:0 36px;
  min-width:0;
}
.sdd-footer-balanced .sdd-footer-col h3{
  font-size:19px;
  margin-bottom:24px;
  line-height:1.25;
  letter-spacing:.05px;
}
.sdd-footer-balanced .sdd-footer-icon{font-size:23px}
.sdd-footer-balanced .sdd-store-card strong{
  font-size:17px;
  margin-bottom:9px;
}
.sdd-footer-balanced .sdd-store-card p{
  font-size:15px;
  line-height:1.65;
  margin:6px 0;
}
.sdd-footer-balanced .sdd-store-actions{
  gap:10px;
  margin-top:17px;
}
.sdd-footer-balanced .sdd-store-actions a{
  font-size:13.5px;
  padding:9px 14px;
}
.sdd-footer-balanced .sdd-hotline{
  margin-top:22px;
  padding:16px 17px;
  gap:12px;
}
.sdd-footer-balanced .sdd-hotline>span:first-child{font-size:27px}
.sdd-footer-balanced .sdd-hotline small{font-size:12px}
.sdd-footer-balanced .sdd-hotline b{font-size:20px;line-height:1.2}
.sdd-footer-balanced .sdd-hotline em{font-size:11.5px;margin-top:4px}

.sdd-footer-balanced .sdd-footer-links{gap:14px}
.sdd-footer-balanced .sdd-footer-links a{
  font-size:15px;
  line-height:1.45;
}
.sdd-footer-balanced .sdd-commit-box{
  margin-top:24px;
  padding:19px 20px;
}
.sdd-footer-balanced .sdd-commit-box h4{
  font-size:16px;
  margin-bottom:14px;
}
.sdd-footer-balanced .sdd-commit-box p{
  font-size:14px;
  line-height:1.45;
  margin:9px 0;
}
.sdd-footer-balanced .sdd-commit-box p span{
  width:20px;height:20px;font-size:12px;margin-right:8px;
}

.sdd-footer-balanced .sdd-footer-muted{
  font-size:14px;
  line-height:1.65;
  margin-bottom:20px;
}
.sdd-footer-balanced .sdd-social-list{gap:12px}
.sdd-footer-balanced .sdd-social-list a{font-size:15px}
.sdd-footer-balanced .sdd-social-badge{width:32px;height:32px}
.sdd-newsletter-mini{
  margin-top:24px;
  padding-top:20px;
  gap:9px;
}
.sdd-newsletter-mini>b{font-size:16px}
.sdd-newsletter-mini>span{font-size:12.5px;line-height:1.55}
.sdd-newsletter-row{gap:9px;margin-top:4px}
.sdd-newsletter-row input{height:42px;font-size:13.5px;padding:0 13px}
.sdd-newsletter-row button{height:42px;min-width:62px;font-size:13.5px}

.sdd-footer-balanced .sdd-service-grid{
  border-radius:14px;
}
.sdd-footer-balanced .sdd-service-grid a{
  min-height:122px;
  padding:15px 8px;
}
.sdd-footer-balanced .sdd-service-icon{font-size:28px;margin-bottom:8px}
.sdd-footer-balanced .sdd-service-grid b{font-size:13.5px}
.sdd-footer-balanced .sdd-service-grid small{font-size:11.5px;line-height:1.35}
.sdd-footer-balanced .sdd-payment-box{
  margin-top:18px;
  padding:15px;
}
.sdd-footer-balanced .sdd-payment-box>span{font-size:12px;margin-bottom:10px}
.sdd-footer-balanced .sdd-payment-box b{font-size:11.5px;padding:7px 9px}

.sdd-footer-bottom.sdd-footer-bottom-balanced{
  max-width:100%;
  padding:25px max(38px,calc((100% - 1460px)/2 + 42px));
  grid-template-columns:1fr 1.25fr 1.1fr;
  gap:34px;
}
.sdd-footer-bottom-balanced .sdd-footer-brand-new img{width:58px;height:58px}
.sdd-footer-bottom-balanced .sdd-footer-brand-new strong{font-size:22px}
.sdd-footer-bottom-balanced .sdd-footer-brand-new span{font-size:11px}
.sdd-footer-bottom-balanced .sdd-footer-trust-inline{
  font-size:13px;
  gap:10px 24px;
}
.sdd-footer-bottom-balanced .sdd-footer-copy{
  font-size:12.5px;
  line-height:1.45;
}

@media(max-width:1100px){
  .sdd-footer-main.sdd-footer-balanced{padding:38px 26px 28px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .sdd-footer-balanced .sdd-footer-col{padding:0 24px 30px}
  .sdd-footer-bottom.sdd-footer-bottom-balanced{padding:23px 26px;grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .sdd-site-footer{font-size:14px}
  .sdd-footer-main.sdd-footer-balanced{padding:30px 18px 12px}
  .sdd-footer-balanced .sdd-footer-col h3{font-size:17px}
  .sdd-footer-balanced .sdd-store-card p,
  .sdd-footer-balanced .sdd-footer-links a,
  .sdd-footer-balanced .sdd-social-list a{font-size:14px}
  .sdd-footer-balanced .sdd-hotline b{font-size:19px}
  .sdd-footer-balanced .sdd-service-grid a{min-height:98px}
  .sdd-footer-balanced .sdd-service-grid b{font-size:11px}
  .sdd-footer-balanced .sdd-service-grid small{font-size:9.5px}
  .sdd-footer-bottom.sdd-footer-bottom-balanced{padding:22px 18px}
}

/* V395 - Footer SVG/icon đồng bộ + màu tùy chỉnh */
.sdd-site-footer{background:var(--sdd-footer-bg,#111b25)!important;color:var(--sdd-footer-text,#f8fafc)!important}
.sdd-footer-bottom{background:var(--sdd-footer-bottom-bg,#0c1620)!important}
.sdd-site-footer a,.sdd-site-footer .sdd-footer-icon,.sdd-site-footer .sdd-service-icon,.sdd-site-footer .sdd-footer-trust i{color:var(--sdd-footer-accent,#ff5a00)}
.sdd-site-footer .sdd-footer-muted,.sdd-site-footer small,.sdd-site-footer em{color:var(--sdd-footer-muted,#b8c2cc)}
.sdd-footer-svg{width:1.15em;height:1.15em;display:inline-block;vertical-align:-.18em;stroke:currentColor;flex:0 0 auto}
.sdd-footer-col h3 .sdd-footer-svg{width:21px;height:21px;vertical-align:middle}
.sdd-store-actions a{display:inline-flex!important;align-items:center;gap:6px}.sdd-store-actions .sdd-footer-svg{width:15px;height:15px}
.sdd-hotline>span:first-child{display:grid;place-items:center;color:var(--sdd-footer-accent,#ff5a00)}.sdd-hotline>span:first-child .sdd-footer-svg{width:27px;height:27px}
.sdd-service-icon{display:grid!important;place-items:center}.sdd-service-icon .sdd-footer-svg{width:25px;height:25px}
.sdd-footer-trust-inline>span{display:inline-flex;align-items:center;gap:6px}.sdd-footer-trust-inline i{display:inline-grid;place-items:center;font-style:normal}.sdd-footer-trust-inline i .sdd-footer-svg{width:17px;height:17px}
.sdd-commit-box p>span{display:inline-grid!important;place-items:center!important;width:18px!important;height:18px!important}.sdd-commit-box p>span .sdd-footer-svg{width:18px;height:18px}
.sdd-zalo-dot{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;background:var(--sdd-footer-accent,#ff5a00);color:#fff;font-size:10px;font-weight:900}

/* V402 - handoff chỉ hiện khi JS yêu cầu */
.ai-chat-panel #aiHumanHandoff[hidden]{display:none!important;}
