/* Longs – Premium Light UI + Product Gallery
   Nạp SAU Site.css để ưu tiên giao diện mới.
   Không thay đổi cấu trúc dữ liệu/model hiện có.
*/
:root{
  --ink:#25231f;
  --ink-soft:#68635b;
  --muted:#8c867c;
  --line:#e9e4dc;
  --line-strong:#ddd6ca;
  --paper:#ffffff;
  --paper-2:#ffffff;
  --card:#ffffff;
  --champ:#b89a67;
  --champ-dark:#947746;
  --price:#9b563e;
  --ok:#52745e;
  --r:16px;
  --wrap:1240px;
  --sh:0 2px 8px rgba(55,48,38,.045),0 14px 34px rgba(55,48,38,.055);
  --sh-hover:0 6px 18px rgba(55,48,38,.075),0 20px 42px rgba(55,48,38,.075);
}
html body{
  font-family:'Be Vietnam Pro',Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  zoom:1!important;
  min-width:0!important;
}
html body *{box-sizing:border-box}
a:focus-visible,button:focus-visible{outline:2px solid var(--champ);outline-offset:3px}

/* ===== KHUNG CHUNG ===== */
html body section,
html body section.laptopcate,
html body .wrap-main,
html body .rowfoot1,
html body .plc ul,
html body .rowfoot2 p{
  width:auto!important;
  max-width:var(--wrap)!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  float:none!important;
  box-sizing:border-box;
  padding-left:18px;
  padding-right:18px;
}
html body .plc ul{
  display:flex!important;
  align-items:center;
  gap:10px;
  height:auto;
  padding-top:14px;
  padding-bottom:14px;
}
html body .plc li{width:auto!important;flex:1}

/* ===== HEADER – thanh sáng, tinh gọn ===== */
html body header{
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--line);
  box-shadow:0 3px 18px rgba(55,48,38,.045);
  position:sticky;
  top:0;
  z-index:50;
  width:100%!important;
  backdrop-filter:blur(12px);
}
html body header .wrap-main{
  display:flex;
  align-items:center;
  gap:24px;
  min-height:76px;
  padding-top:9px;
  padding-bottom:9px;
}
html body header .wrap-main .logo{float:none;flex:none;width:auto!important;margin:0}
html body header .wrap-main .logo img{margin:0!important;height:52px!important;width:auto;max-width:190px}
html body nav{
  display:flex!important;
  flex:1;
  width:auto!important;
  gap:3px;
  margin:0;
  padding:0;
  justify-content:center;
}
html body nav a{
  display:block!important;
  width:auto!important;
  height:auto!important;
  padding:10px 15px!important;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  text-transform:none;
  color:var(--ink-soft);
  float:none;
  transition:background .18s,color .18s;
}
html body nav a i{display:none!important}
html body nav a:hover{
  background:#f3efe8;
  color:var(--ink);
}
html body nav a.actmenu{
  background:#eee8dc;
  color:var(--ink);
}
html body .hotline_m{
  float:none!important;
  margin:0 0 0 auto!important;
  width:auto!important;
  max-height:48px;
  max-width:210px;
}
.he_mobile{display:none}

/* ===== BANNER + DANH MỤC ===== */
html body section.laptopcate{
  padding-top:22px;
  padding-bottom:24px;
  background:transparent;
}
html body .laptoptop{
  display:flex;
  gap:18px;
  margin:0 0 18px;
  width:100%!important;
}
html body .laptoptop #owl-laptop{
  flex:2;
  width:auto!important;
  min-width:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--sh);
  background:#fff;
}
html body .laptoptop .right{
  flex:1;
  width:auto!important;
  float:none!important;
  min-width:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--sh);
  background:#fff;
}
html body .laptoptop .right img{
  width:100%!important;
  display:block;
}
html body .laptopmanu{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 2px 10px rgba(55,48,38,.035);
  padding:10px 14px;
  margin:0 0 15px;
  width:auto!important;
  max-width:100%;
}
html body .laptopmanu a.item{
  display:inline-block;
  margin:4px 5px;
  padding:7px 14px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  color:var(--ink-soft);
  transition:border-color .18s,background .18s,box-shadow .18s,color .18s;
}
html body .laptopmanu a.item:hover{
  border-color:#d0b98f;
  background:#fcfaf6;
  color:var(--ink);
  box-shadow:0 3px 10px rgba(55,48,38,.06);
}
html body ._boloc_tc,
html body .jplist-panel{
  background:var(--card)!important;
  border:1px solid var(--line)!important;
  border-radius:14px;
  box-shadow:none;
  padding:11px 13px;
  width:auto!important;
  margin:0 0 16px!important;
}

/* ===== LƯỚI SẢN PHẨM ===== */
html body section ul.homeproduct.list{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
  background:transparent!important;
  border:0!important;
  margin:0 0 28px!important;
  padding:0!important;
  width:100%!important;
  float:none!important;
}
html body section ul.homeproduct.list>li,
html body section ul.homeproduct.list>li.list-item{
  width:auto!important;
  float:none!important;
  margin:0!important;
  padding:15px!important;
  height:auto!important;
  min-height:0!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:14px;
  box-shadow:none;
  position:relative;
  transition:box-shadow .22s,border-color .22s,transform .22s;
  overflow:hidden;
}
html body section ul.homeproduct.list>li:hover{
  border-color:#d8ccb8!important;
  box-shadow:var(--sh-hover);
  transform:translateY(-3px);
}
html body section ul.homeproduct.list>li img{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  border:1px solid #e5e0d8;
  display:block;
  margin:0 auto;
}
html body section ul.homeproduct.list>li h3{
  font-size:14px;
  font-weight:600;
  line-height:1.45;
  color:var(--ink);
  margin:10px 0 6px;
  height:2.9em;
  overflow:hidden;
}
html body section ul.homeproduct.list>li .price strong{
  font-size:17px;
  font-weight:700;
  color:var(--price);
}
html body section ul.homeproduct.list>li .props span{
  display:inline-block;
  background:#f5f2ec;
  color:var(--ink-soft);
  border:0;
  border-radius:6px;
  padding:3px 8px;
  font-size:12px;
  margin:0 4px 4px 0;
}
html body .ratingresult span{color:var(--ok)!important}

/* ===== TRANG CHI TIẾT – bố cục cao cấp ===== */
html body .ask_left{
  float:none!important;
  width:100%!important;
  margin:10px 0!important;
  overflow:visible;
}
html body .col_content.simpleCart_shelfItem{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  box-shadow:var(--sh);
  display:block;
}
html body .col_content .rightInfo{
  float:right!important;
  width:320px!important;
  max-width:100%;
  margin:0 0 20px 28px!important;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-sizing:border-box;
}
html body .rightInfo img,
html body .rightInfo .btn{max-width:100%}
html body .rightInfo .btn,
html body .area_promotion .btn{
  display:block;
  width:100%;
  margin:0 0 9px;
  border-radius:11px;
  font-weight:600;
  padding:12px 14px;
  box-sizing:border-box;
  border:1px solid transparent;
  text-align:center;
}
html body .area_price .item_price{
  font-size:28px;
  font-weight:700;
  color:var(--price);
}
html body .box_content{
  clear:both;
  max-width:100%;
  overflow-x:auto;
  line-height:1.78;
  color:#514c45;
}
html body .box_content img{max-width:100%;height:auto}
html body .ttsanpham{
  clear:both;
  font-weight:700;
  font-size:17px;
  padding:14px 0 11px;
  border-bottom:1px solid var(--line-strong);
  margin:22px 0 15px;
  color:var(--ink);
}

/* ===== BỘ ẢNH SẢN PHẨM – gallery tự động ===== */
#longs-product-gallery{
  display:grid;
  grid-template-columns:minmax(0,1fr) 86px;
  gap:12px;
  width:100%;
  max-width:720px;
  margin:0 0 24px;
  padding:0;
}
#longs-product-gallery .lpg-main{
  min-width:0;
  height:460px;
  border:1px solid #ddd7ce;
  border-radius:14px;
  background:#fff;
  box-shadow:none;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  cursor:zoom-in;
}
#longs-product-gallery .lpg-main img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  padding:18px;
}
#longs-product-gallery .lpg-thumbs{
  display:flex;
  flex-direction:column;
  gap:9px;
  max-height:460px;
  overflow-y:auto;
  padding:1px 3px 1px 1px;
}
#longs-product-gallery .lpg-thumb{
  flex:0 0 72px;
  width:78px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  cursor:pointer;
  transition:border-color .18s,box-shadow .18s;
}
#longs-product-gallery .lpg-thumb:hover,
#longs-product-gallery .lpg-thumb.active{
  border-color:#c2a675;
  box-shadow:0 0 0 2px rgba(184,154,103,.13);
}
#longs-product-gallery .lpg-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:7px;
}
#longs-product-gallery .lpg-empty{display:none}

/* Ảnh gốc được ẩn sau khi gallery đã được tạo */
.longs-gallery-source{display:none!important}

/* ===== FOOTER – sạch, sáng và sang trọng ===== */
html body footer{
  background:#fff;
  color:var(--ink-soft);
  width:100%!important;
  border-top:1px solid #e5e0d8;
  margin-top:28px;
}
html body footer .rowfoot1{
  max-width:var(--wrap)!important;
  padding-top:34px!important;
  padding-bottom:30px!important;
  display:grid!important;
  grid-template-columns:1.35fr 1fr 1.2fr 1fr;
  gap:34px;
  align-items:start;
}
html body footer .colfoot{
  width:auto!important;
  float:none!important;
  margin:0!important;
  padding:0!important;
  list-style:none;
  min-width:0;
}
html body footer .colfoot li{
  margin:0 0 9px;
  padding:0;
  list-style:none;
}
html body footer .colfoot li:first-child{
  margin-top:0;
}
html body footer .colfoot a{
  color:#6f695f;
  text-decoration:none;
  font-size:13px;
  line-height:1.7;
  transition:color .18s;
}
html body footer .colfoot a:hover{
  color:#9b7b4c;
}
html body footer .colfoot label,
html body footer .group label{
  display:block;
  color:#2c2925;
  font-size:14px;
  font-weight:700;
  margin-bottom:12px;
}
html body footer .ttft_1:before,
html body footer .ttft_2:before,
html body footer .ttft_3:before,
html body footer .collast:before{
  display:block;
  color:#282521;
  font-size:14px;
  font-weight:700;
  margin:0 0 13px;
}
html body footer .ttft_1:before{content:"Laptop Longs";}
html body footer .ttft_2:before{content:"Thông tin";}
html body footer .ttft_3:before{content:"Hỗ trợ khách hàng";}
html body footer .collast:before{content:"Kết nối";}
html body footer .group{
  margin-bottom:18px;
}
html body footer .group2{
  margin-top:12px;
}
html body footer .rowfoot1 .bct{
  display:inline-flex;
  margin-top:12px;
}
html body footer .rowfoot2{
  background:#f8f6f2;
  border-top:1px solid #e9e4dc;
  color:#8a847a;
  width:100%!important;
  text-align:center;
}
html body footer .rowfoot2 p{
  padding-top:15px!important;
  padding-bottom:15px!important;
  margin:0!important;
  font-size:12px;
}
html body footer .plc{
  background:#faf9f6;
}
html body #back-top a{
  border-radius:50%;
  background:#2d2a26;
  box-shadow:0 4px 14px rgba(40,35,28,.12);
}

/* ===== TIN TỨC – danh sách gọn, sạch, dễ đọc ===== */
html body .news-list,
html body .newslist,
html body .list-news,
html body .news-items,
html body .box-news-list{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  width:100%!important;
  margin:0 0 28px!important;
  padding:0!important;
}
html body .news-list > *,
html body .newslist > *,
html body .list-news > *,
html body .news-items > *,
html body .box-news-list > *{
  width:auto!important;
  float:none!important;
  margin:0!important;
  padding:0!important;
}
html body .news-item,
html body .newslist .item,
html body .list-news .item,
html body .news-items .item,
html body .box-news-list .item{
  background:#fff!important;
  border:1px solid #e5e0d8!important;
  border-radius:13px;
  overflow:hidden;
  box-shadow:none;
  transition:border-color .18s, transform .18s, box-shadow .18s;
}
html body .news-item:hover,
html body .newslist .item:hover,
html body .list-news .item:hover,
html body .news-items .item:hover,
html body .box-news-list .item:hover{
  border-color:#cdbb9f!important;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(55,48,38,.06);
}
html body .news-item img,
html body .newslist .item img,
html body .list-news .item img,
html body .news-items .item img,
html body .box-news-list .item img{
  width:100%!important;
  height:185px!important;
  object-fit:cover!important;
  display:block;
  border:0;
  background:#fff;
}
html body .news-item .content,
html body .newslist .item .content,
html body .list-news .item .content,
html body .news-items .item .content,
html body .box-news-list .item .content{
  padding:13px 15px 15px;
}
html body .news-item h2,
html body .news-item h3,
html body .newslist .item h2,
html body .newslist .item h3,
html body .list-news .item h2,
html body .list-news .item h3,
html body .news-items .item h2,
html body .news-items .item h3,
html body .box-news-list .item h2,
html body .box-news-list .item h3{
  margin:0 0 7px!important;
  color:#292622;
  font-size:15px!important;
  line-height:1.45;
  font-weight:600;
}
html body .news-item p,
html body .newslist .item p,
html body .list-news .item p,
html body .news-items .item p,
html body .box-news-list .item p{
  margin:0!important;
  color:#777168;
  font-size:12.5px;
  line-height:1.65;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
html body .news-item .date,
html body .newslist .item .date,
html body .list-news .item .date{
  display:block;
  margin-top:9px;
  color:#a08c70;
  font-size:11px;
}

/* ===== RESPONSIVE ===== */

@media (max-width:1199px){
  html body section ul.homeproduct.list{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:979px){
  .he_mobile{display:block}
  html body header .wrap-main{display:none}
  #longs-product-gallery{max-width:100%}
}
@media (max-width:899px){
  html body section ul.homeproduct.list{grid-template-columns:repeat(3,minmax(0,1fr))}
  html body .col_content .rightInfo{
    float:none!important;
    width:100%!important;
    margin:0 0 18px!important;
  }
  #longs-product-gallery .lpg-main{height:390px}
  #longs-product-gallery .lpg-thumbs{max-height:390px}
}
@media (max-width:639px){
  html body section ul.homeproduct.list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  html body section ul.homeproduct.list>li{padding:10px!important}
  html body .laptoptop{flex-direction:column}
  html body .col_content.simpleCart_shelfItem{padding:14px;border-radius:15px}
  #longs-product-gallery{
    grid-template-columns:1fr;
    gap:9px;
  }
  #longs-product-gallery .lpg-main{
    height:300px;
    border-radius:14px;
  }
  #longs-product-gallery .lpg-thumbs{
    flex-direction:row;
    max-height:none;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:2px;
  }
  #longs-product-gallery .lpg-thumb{
    flex:0 0 64px;
    width:64px;
    height:64px;
  }
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
}

@media (max-width:899px){
  html body footer .rowfoot1{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:25px;
  }
  html body .news-list,
  html body .newslist,
  html body .list-news,
  html body .news-items,
  html body .box-news-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:639px){
  html body footer .rowfoot1{
    grid-template-columns:1fr;
    gap:22px;
    padding-top:26px!important;
    padding-bottom:24px!important;
  }
  html body .news-list,
  html body .newslist,
  html body .list-news,
  html body .news-items,
  html body .box-news-list{
    grid-template-columns:1fr;
    gap:12px;
  }
  html body .news-item img,
  html body .newslist .item img,
  html body .list-news .item img,
  html body .news-items .item img,
  html body .box-news-list .item img{
    height:175px!important;
  }
}
