
/* V143 - Fix specificity: desktop product list = TRUE 3 columns.
   V140 used .product-grid.v137-product-grid with !important,
   so V142's lower-specificity rule could not override it. */

/* DESKTOP: selector stronger than V140 */
.product-list-page.v137-product-list-page .product-grid.v137-product-grid,
.product-list-page.v136-product-list-page .product-grid.v136-product-grid,
.product-list-page .product-grid.v135-product-grid{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:17px!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}

/* Card phải lấp đầy chính xác mỗi cột */
.product-list-page.v137-product-list-page .product-grid.v137-product-grid > .v117-product-card,
.product-list-page.v136-product-list-page .product-grid.v136-product-grid > .v117-product-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100%!important;
  margin:0!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
}

/* Main content không bị shrink theo nội dung */
.product-list-page.v137-product-list-page .v136-list-layout{
  width:100%!important;
  grid-template-columns:225px minmax(0,1fr)!important;
  gap:22px!important;
}

.product-list-page.v137-product-list-page .v136-list-main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

/* Ảnh và body dùng toàn bộ card */
.product-list-page.v137-product-list-page .product-grid.v137-product-grid .v117-product-media{
  width:100%!important;
  max-width:none!important;
  aspect-ratio:1/1!important;
  height:auto!important;
}

.product-list-page.v137-product-list-page .product-grid.v137-product-grid .v117-product-body{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

/* Giá mới + đơn vị luôn một dòng */
.product-list-page.v137-product-list-page .product-grid.v137-product-grid .v117-price,
.product-list-page.v137-product-list-page .product-grid.v137-product-grid .v117-price strong,
.product-list-page.v137-product-list-page .product-grid.v137-product-grid .v117-price small{
  white-space:nowrap!important;
}

.product-list-page.v137-product-list-page .product-grid.v137-product-grid .v117-price{
  flex-wrap:nowrap!important;
}

/* TABLET: also beat V140 specificity */
@media (max-width:1050px){
  .product-list-page.v137-product-list-page .v136-list-layout{
    grid-template-columns:190px minmax(0,1fr)!important;
    gap:16px!important;
  }

  .product-list-page.v137-product-list-page .product-grid.v137-product-grid,
  .product-list-page.v136-product-list-page .product-grid.v136-product-grid,
  .product-list-page .product-grid.v135-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
}

/* MOBILE: 2 columns */
@media (max-width:760px){
  .product-list-page.v137-product-list-page .v136-list-layout{
    display:block!important;
  }

  .product-list-page.v137-product-list-page .v136-sidebar{
    display:none!important;
  }

  .product-list-page.v137-product-list-page .product-grid.v137-product-grid,
  .product-list-page.v136-product-list-page .product-grid.v136-product-grid,
  .product-list-page .product-grid.v135-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
}
