/* =========================================================
   BẾP HỒNG - ALL CATEGORY GRID V1.8 - TYPOGRAPHY FIX
   File: Assets/bephong-all-category-grid.css
   - Giữ nguyên layout/responsive/icon của bản V1.7.
   - Sửa typography tên danh mục cho đẹp và ổn định tiếng Việt.
   - Tránh font-weight 750 gây render giả bold trên một số máy.
========================================================= */

body.bephong-theme-luxury .bph-all-category{
  margin:16px 0 0;
  padding:14px 0 0;
  border-top:1px solid rgba(216,174,98,.18);
}

body.bephong-theme-luxury .bph-all-category__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
}

body.bephong-theme-luxury .bph-all-category__item{
  min-width:0;
  min-height:88px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 11px;
  border:1px solid rgba(216,174,98,.22);
  border-radius:13px;
  background:rgba(255,255,255,.026);
  color:#F8F1E6!important;
  text-decoration:none!important;
  transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease;
}

body.bephong-theme-luxury .bph-all-category__icon{
  flex:0 0 58px;
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:11px;
  background:transparent;
}

body.bephong-theme-luxury .bph-all-category__icon img{
  display:block;
  width:100%;
  height:100%;
  padding:0;
  object-fit:contain;
  object-position:center;
  background:transparent;
  transform:none;
}

body.bephong-theme-luxury .bph-all-category__fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#B72025;
  font-family:"Segoe UI",Arial,sans-serif;
  font-size:22px;
  font-weight:700;
}

/* TYPOGRAPHY FIX */
body.bephong-theme-luxury .bph-all-category__name{
  min-width:0;
  color:#F8F1E6;
  font-family:"Be Vietnam Pro","Segoe UI",Arial,sans-serif;
  font-size:14px;
  line-height:1.35;
  font-weight:700;
  letter-spacing:-0.01em;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  word-break:normal;
  overflow-wrap:break-word;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

@media (hover:hover) and (pointer:fine){
  body.bephong-theme-luxury .bph-all-category__item:hover{
    transform:translateY(-2px);
    border-color:rgba(240,212,138,.70);
    background:rgba(216,174,98,.08);
    box-shadow:0 10px 22px rgba(0,0,0,.18),0 0 18px rgba(216,174,98,.10);
  }

  body.bephong-theme-luxury .bph-all-category__item:hover .bph-all-category__name{
    color:#F0D48A;
  }
}

/* Laptop tiêu chuẩn */
@media (min-width:1200px) and (max-width:1439px){
  body.bephong-theme-luxury .bph-all-category__grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:9px;
  }

  body.bephong-theme-luxury .bph-all-category__name{
    font-size:13.5px;
  }
}

/* Laptop nhỏ / tablet ngang */
@media (min-width:768px) and (max-width:1199px){
  body.bephong-theme-luxury .bph-all-category__grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:9px;
  }

  body.bephong-theme-luxury .bph-all-category__name{
    font-size:13px;
  }
}

/* Mobile */
@media (max-width:767px){
  body.bephong-theme-luxury .bph-all-category{
    margin-top:13px;
    padding-top:12px;
  }

  body.bephong-theme-luxury .bph-all-category__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  body.bephong-theme-luxury .bph-all-category__item{
    min-height:84px;
    display:block;
    padding:9px 7px;
    text-align:center;
  }

  body.bephong-theme-luxury .bph-all-category__icon{
    width:50px;
    height:50px;
    margin:0 auto 7px;
    border-radius:10px;
  }

  body.bephong-theme-luxury .bph-all-category__name{
    font-size:12px;
    line-height:1.35;
    font-weight:700;
    letter-spacing:0;
  }
}