/* ============================================================
   detail-product.css — gộp mobile + desktop. Mốc chia: 768px.

   MỤC LỤC
   1. Mục lục (khối chú thích này)
   2. Mobile  — nguyên văn templates/front/mobi/css4/detail2.css, bọc @media (max-width: 767px)
   3. Desktop — nguyên văn assets/front/css/detail-product.css, bọc @media (min-width: 768px)
   4. Ghi đè — markup desktop của trang chi tiết ở khổ dưới 768px
   5. Co giãn tablet 768–1169px cho markup desktop

   Mục 2 và 3 là bản sao nguyên văn, không đổi thứ tự thuộc tính.
   ============================================================ */

/* ===== 2. MOBILE ===== */
@media (max-width: 767px) {
.content_v{
	background:#fff;
}
section.product_d .images_d{
	    clear: both;
    text-align: center;
    background: #fff;
    border-radius: 4px;
    max-width: 400px;
    margin: 0px 10px;
}
section.product_d .images_d img{
	height: auto;
    width: 100%;
    transform: translateX(0%);
}

section.product_d .detailP{
	clear:both;
	padding-bottom:10px;
}
.images_d_list .owl-controls .owl-page {
    display: inline-block;
    margin: 20px 2px 0;
}
.images_d_list .owl-controls .active span {
    background: #869791!important;
}
.images_d_list .owl-controls .owl-page span {
    background: #c3cbc8 none repeat scroll 0 0;
    border-radius: 20px;
    display: block;
    height: 10px;
    margin: 5px 7px;
    opacity: .5;
    width: 10px;
}
.images_d_list .owl-controls {
    display: block!important;
}
.images_d_list .owl-buttons .owl-prev {
    left: 10px!important;
    border-top: none!important;
}
.images_d_list .owl-buttons div {
    font-style: normal;
    font-weight: 400;
    top: 48%;
}
section.product_d .detailP .owl-buttons div:before{	
    content: "";
    color: #9B9B9B;
    font-family: FontAwesome;
    font-size: 30px;
    font-style: normal;
    font-weight: normal;
    line-height: 29px;
    position: relative;
    text-align: center;
    transition: all 0.4s ease 0s;

    
}
section.product_d .detailP .owl-buttons div{	
    border-radius: 2px 0 0 2px;
    top: 42%;
    font-size: 20px;
    height: 29px;
    padding-left: 9px;
    padding-right: 12px;
    position: absolute;
    right: 0;
    text-align: center;
    width: 15px;
    z-index: 9;
}
section.product_d .detailP .owl-buttons div.owl-prev{
	left: 0 !important;
	  border-radius: 0 2px 2px 0 !important;
}
section.product_d .detailP .owl-buttons div.owl-next:before{
	content: "\f105" !important;
	padding-left:4px !important;
}
section.product_d .detailP .desProduct{
	    clear: both;
    margin-right: 4px;
    padding: 8px 10px 0px 10px;
    border-radius: 2px;
    margin-top: 0px;
}
.num-cart {
    align-items: center;
    margin-right: 4px;
    border-radius: 6px;
    max-width: 31.3%;
    padding-left: 0;
    flex: 0 0 31.3%;
    display: flex;
}
.actions-detail{display: flex; align-items: center;flex-wrap: wrap;}
.actions-detail .buy-now{
	    background: #FD1D55;
    max-width: 31.3%;
    flex: 0 0 31.3%;
    display: flex;
    justify-content: center;
    padding: 7px 0px;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 2px;
}
.actions-detail .add-cart{
background: #FD1D55;
    max-width: 36.3%;
    flex: 0 0 33.3%;
    display: flex;
    justify-content: center;
    padding: 7px 0px;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
}
.num-cart span {
    font-size: 20px;
    padding: 6px 11px;
    cursor: pointer;
    border: 1px solid #DFE0DE;
}
.num-cart .input_number {
    width: 40px;
    text-align: center;
    border: none;
    border: 1px solid #DFE0DE;
    padding: 6px 0px;
}

.buy-later {
    display: flex;
    align-items: center;
        margin: 0px 10px;
}
.reduction {
    display: flex;
    align-items: center;
    background: #DBDBDB;
    padding: 10px;
    border-radius: 7px;
    margin-left: 10px;
    margin-right: 15px;
    margin-top: 7px;
    margin-bottom: 10px;
}
.reduction p:first-child {
    background: #FFFFFF;
    color: #A0A0A0;
    padding: 3px 8px;
    border-radius: 29px;
    font-weight: bold;
    margin-right: 10px;
}
.reduction p {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    color: #3D3D3D;
}
.endow-combo {
        border: 3px dashed #D9D9D8;
    padding: 10px;
    border-radius: 5px;
    margin-left: 10px;
    margin-right: 18px;
    margin-bottom: 13px;
}
.endow-combo h2 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}
.endow-combo-product {
    display: flex;
    align-items: center;
}
.endow-combo-product .plus {
    font-size: 41px;
    padding: 0px 6px;
    color: #9F9F9F;
}
.endow-combo-product .content {
    padding-left: 12px;
}
.endow-combo-product .title {
    font-weight: bold;
    color: #4A4A4A;
    line-height: 13px;
}
.endow-combo-product p {
    margin: 0;
    font-size: 9px;
    line-height: 13px;
    font-weight: bold;
}

.rview-wp {
    display: flex;
    align-items: center;
}
.rview-wp span {
    padding: 0px 12px;
    color: #777777;
    font-size: 11px;
position: relative;
}
.rview-wp span::after{
  content: "";
    width: 1px;
    height: 11px;
    background: #4F4F4F;
    position: absolute;
    right: 0;
    top: 4px;
}
.rview-wp span:last-child::after{
	background: none;
}
section.product_d .detailP .desProduct .des{
	clear: both;
text-align: justify;
font-size: 13px;
padding-bottom: 5px;
}
section.product_d .detailP  h1.detailPT{
	    clear: both;
    font-size: 17px;
    line-height: 25px;
    padding: 24px 10px 0px 10px;
    text-align: start;
    font-weight: bold;
}
.pr_det_price{
	clear: both;
    line-height: 22px;
}
.ckProductAll{
	    clear: both;
    border-radius: 3px;
    padding-top: 10px;
    padding-bottom: 30px;
    padding-left: 7px;
    border: 1px solid #E9E9EA;
}
.pr_det_price .price{
	float:left;
}
.pr_det_price .title{
	float:left;
	padding-right:5px;
}
.pr_det_price .price span{
	  color: #888 !important;
    font-weight: normal;
    margin-right: 5px;
    text-decoration: line-through;
}
.proFtiter{
	 clear: both;
}
.proFtiter span{
	color:#2C2C2C;
	font-size:12px;
	margin: 0px 4px;
}
.proFtiter_thuonghieu::after{    content: "";
    width: 2px;
    height: 13px;
    position: absolute;
    background: #333;
    top: 5px;
    right: 15px;}
section .groupPrice .priceBig{
       font-size: 22px;
}
.suggestBox .item{align-items: center;}
.suggestBox{display: flex;flex-direction: column;}
.suggestBox .item h2 {
    font-size: 12px;
    text-align: center;
}
.list-toggle .item-toggle{
  margin-bottom: 10px;
}
.list-toggle .item-toggle .title {
    font-size: 14px;
    background: linear-gradient(to left, #DFDFDF, #F5F4F4, #DFDFDF);
    color: #333;
    padding: 9px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.list-toggle .item-toggle .fa-chevron-down:before {
    color: #666;
    display: block;
    float: left;
    font-family: FontAwesome;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    margin-left: 5px;
    text-align: center;
    width: 35px;
}
.list-toggle .item-toggle .content{display: none;}
.titileBrum{height: 20px;
    text-decoration: none;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    width: 170px;color: #ef4679;}
.pro_dg{
	 clear: both;
}
.pro_dg .pro_dg_tt{
	clear:both;
}
.pro_dg .ratings{
	font-size:15px;
}
.proDha{
	  clear: both;
    padding-top: 9px;
}


.dat_hang_v{
	clear:both;
	margin-left:4px;
	margin-right:4px;
	 padding-top: 5px;
}
.goiTongDa .goiTongDah{
	font-weight: normal;
	color:#444;
}
.goiTongDa .icon:before{
	  color: #666;
    content: "\f098";
    font-family: "FontAwesome";
    font-size: 23px;
    font-style: normal;
    font-weight: normal;
    padding-right: 2px;	
	 display: inline;
}
.hotroMnd{
	clear:both;
	margin-top:8px;
}

aside.ckProduct .titile{
	background: #f3f3f3 none repeat scroll 0 0;
	border: 1px solid #eaeaea;
	font-weight: bold;
	height: 50px;
	line-height: 50px;
	margin-bottom: 7px;
	text-align: center;
	border-radius: 2px;
	font-size:15px;
}
.detail_ct img{width: 100%!important; height: 100%!important;}
.detail_ct{
	clear:both;
	background:#fff;
	border-radius:4px;
	padding:8px;
}
aside.ckProduct .deCk{
    clear: both;
    padding-bottom: 1px;
    padding-right: 5px;
    padding-top: 1px;
}

aside.ckProduct .titile span{
	color:#ef4679;
}
.lc__reviews-progressviews i::before{color: #B2B2B2;
    display: block;
    float: left;
    font-family: FontAwesome;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    width: 18px;
    content: "\f005";
    cursor: pointer;}
aside.ckProduct .icon:before{
	     color: #666;
    display: block;
    float: left;
    font-family: "FontAwesome";
    font-size: 21px;
    font-style: normal;
    font-weight: normal;
    margin-left: 5px;
    margin-top: 11px;
    padding-right: 2px;
    text-align: center;
    width: 50px;
}
.ckProductAll span{font-size: 13px;}
.deCkTtct .icon:before{
    content:  "\f1f0";    
}
.deCkTtct .ttCK{
	display: block;
	font-size:13px;
}
.deCkGhMpTq .icon:before{
    content:  "\f0d1";  
}
.deCkHln .icon:before{
	 content:  "\f087";
}
.deCkHlndt .icon:before{
	 content:  "\f1b8";  
}
.deCkTlnq .icon:before{
	 content:  "\f06b";  
}
.deCktmhg .icon:before{
	 content:  "\f044";  
}
.deCkGhMpTq .ttCK,.deCkHln .ttCK{
	line-height:40px;
}
.deCkGhMpTq,.deCkHln,.deCktmhg{
	 padding-bottom: 0 !important;
    padding-top: 0 !important;
}
.deCktmhg .ttCK{
	line-height:38px;
}
aside.productEditQri{
	 clear: both;
}
aside.product{
	clear:both;
}
aside.product .de_Product_t{
	clear: both;
	height: 41px;
	position: relative;
	z-index: 99;
	background: #f3f3f3;
	margin-top: 10px;
}
.doc_them,.thu_ngon{
	color:#f44578;
	font-size:14px;
	margin-left:6px;
}
.doc_them:after,.thu_ngon:after{
	content: "\f0d7";
    font-family: FontAwesome;
    font-size: 14px;
	padding-left:5px;
}
.thu_ngon:after{
	content: "\f0d8" !important;
}
aside.product .de_Product_t span{	
    display: inline-block;
    float: left;
    font-size: 14px;
    height: 38px;
    line-height: 40px;
    margin-bottom: -1px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}
aside.product .hdSudDetail{
	clear:both;
	padding-top:10px;
}
aside.product article{
	 clear: both;
    font-size: 13px;
    padding: 6px;
}
aside.product article img{
	height:auto !important;
	max-width:100% !important;
}
.rightDetailHA{
	  clear: both;
    font-size: 14px;
    line-height: 24px;
    padding-left: 6px;
    padding-top: 10px;
}
.productEditQriRTAl {
       clear: both;
    margin-bottom: 0;
}

.clear10px{
	clear:both;
	height:10px;
}
.shareFa{
	background: #999999 none repeat scroll 0 0;
    border-radius: 1px;
    color: #fff;
    display: block;
    float: left;
    font-family: FontAwesome;
    font-size: 14px;
    height: 25px;
    line-height: 25px;
    margin-left: 8px;
    text-align: center;
    width: 50px;
}
.shareFa:hover{
	background:#f14a46;
}
.commemntKdD{
	 clear: both;
    padding-left: 4px;
    padding-right: 4px;
    position: relative;
}
.commemntKdD #noi_dung_com{
	  border: 2px solid #ddd;
    clear: both;
    color: #777;
    display: block;
    position: relative;
    border-radius: 5px;
    width: 94%;
    padding: 10px;
}
.comMentproductFD{
	     clear: both;
    display: flex;
   
    position: relative;
}
.comMentproductFD input{
	border: 2px solid #ddd;
    clear: both;
    display: block;
    height: 24px;
    margin-top: 7px;
    position: relative;
    width: 98%;
    border-radius: 5px;
    padding: 3px 10px;
}
.xem_them_comment{
	background: #f3f3f3;
border: 1px solid #e7e7e7;
margin-top: 10px;
text-align: center;
padding-top: 6px;
padding-bottom: 6px;
border-radius: 2px;
color:#ef4679;
}
.xem_them_comment span::after {
    content: "\f0d7";
    font-family: FontAwesome;
    font-size: 14px;
    padding-left: 5px;
}
.commemntKdDBtAll{
	clear: both;
display: block;
position: relative;
border-radius: 3px;
margin-top: 8px;
}

.btBinhLuan{
	    background: #FE1D55;
    border: medium none;
    clear: both;
    color: #fff;
    cursor: pointer;
    display: table;
    margin: 9px auto auto;
    border-radius: 2px;
    text-align: center;
    position: absolute;
    right: 0;
    padding: 21px 10px;
    top: -8px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    font-weight: bold;
}
.commentDetailTopLeft{
	clear: both;
    padding-top: 8px;
}
.commentDetailTopLeft .titl{
	font-weight: bold;
    padding-right: 5px;
    text-transform: capitalize;
}
.commentDetailTopLeft .date{
	color:#888;
}
.bt_bLuan{
	  clear: both;
}
.bt_bLuan #diem{
	border: 1px solid #ddd;
    clear: both;
    height: 20px;
    width: 122px;
}
.clearTraloiFion{
	  clear: both;
    color: #c70000;
	cursor:pointer;
}
.commentTraloi{
	  background: #f1f1f1 none repeat scroll 0 0;
    border: 1px solid #e7e7e7;
    clear: both;
    color: #333;
    display: block;
    margin-top: 9px;
    padding-bottom: 10px;
    padding-left: 10px;
    position: relative;
	border-radius: 2px;
}
.imagrTraloiE{
	 border-bottom: 1px dotted #ddd;
    clear: both;
    margin-right: 10px;
}
.commentTraloi .imagrTraloiE:last-child{
	border:none !important;
}
.cmtralTOp{
	 clear: both;
    font-weight: bold;
    margin-top: 6px;
}
.cmtralTOp span{
	 background: #ef4679 none repeat scroll 0 0;
    border-radius: 2px;
    color: #fff;
    font-weight: normal;
    padding: 1px 8px;
    position: relative;
}
.cmtralBt{
	clear:both;
	padding-bottom:5px;
	padding-top:5px;
}
.btTopMt{
	   border-bottom: 16px solid #f1f1f1;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    height: 0;
    margin-top: -12px;
    position: absolute;
    width: 0;
}
.right_product_A{
	clear:both;

}
.right_roduct_hd{
	 clear: both;
}

.right_roduct_hd .phone_product{
	background: #f87062 none repeat scroll 0 0;
    clear: both;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    height: 25px;
    line-height: 32px;
    margin-top: 5px;
    padding: 7px 6px 12px;
    text-align: center;
}
.title_plq{
	clear: both;
	height: 18px;
	margin-left: 5px;
	margin-right: 5px;
	margin-top: 11px;
	z-index: 999;
	position: relative;
}
aside.slider_row{
overflow: hidden;
margin: 0px 4px 4px 4px;
border-radius: 4px;
}
aside.slider_row{
	padding-top:10px;
}
.title_plq span{
	    padding: 5px 10px;
    display: table;
    border-radius: 2px;
    font-weight: bold;
    font-size: 17px;
    text-transform: uppercase;
}
/* Bản gốc có mẩu thừa "font-size: 14px; }" ở đây: dấu } thừa sẽ đóng sớm khối @media bao ngoài */
.row_product_lq{
	clear:both;
	margin-top:30px;
}
.detRight_ban_bt{
	clear:both;
	margin-top:6px;
	display:block;
}

.row_product_h_l{
	clear:both;
	height:323px;
}
}
/* ===== hết mục 2 ===== */

/* ===== 3. DESKTOP ===== */
@media (min-width: 768px) {
.lslide
{
	z-index: 1000;
	position: relative;
}
}
/* ===== hết mục 3 ===== */

/* ============================================================
   4. GHI ĐÈ — markup desktop của trang chi tiết ở khổ dưới 768px
   ============================================================ */
@media (max-width: 767px) {
  /* Các mục Chi tiết / Thanh toán / Bình luận / Đánh giá đóng sẵn, bấm tiêu đề mới mở
     (app.js desktop bật tắt .product-N và .content-3), giống desktop */
  .content-detail .item-toggle .product,
  .content-detail .item-toggle .content-3 { display: none; }
  .content-detail .list-toggle { margin: 0 10px; padding: 0; list-style: none; }

  /* Bài mô tả, hướng dẫn, video: co theo bề ngang màn hình */
  .content-detail img { max-width: 100%; height: auto; }
  .content-detail iframe { max-width: 100%; margin-left: 0 !important; }
  .content-detail article { padding: 10px; box-sizing: border-box; overflow-wrap: anywhere; }

  /* Khối mua (.proDha): dựng lại hàng số lượng + 2 nút như .actions-detail của bản mobile cũ */
  .proDha { display: flex; align-items: center; flex-wrap: wrap; padding: 8px 10px 0; }
  .proDha .num-cart { flex: 0 0 31.3%; max-width: 31.3%; margin-right: 4px; }
  .proDha .buy-now,
  .proDha .add-cart {
    display: flex; justify-content: center; align-items: center;
    padding: 7px 0; min-height: 36px; box-sizing: border-box;
    background: #FD1D55; color: #fff;
    border-radius: 4px; font-weight: bold; cursor: pointer;
  }
  .proDha .buy-now { flex: 0 0 31.3%; max-width: 31.3%; margin-right: 2px !important; }
  .proDha .add-cart { flex: 1; font-size: 11px; }
  .proDha .btDah .bttOp { display: block; }

  /* Giá: giá gốc gạch ngang và giá bán đứng sát nhau, chừa khoảng */
  section .groupPrice { flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0 10px; }
  section .groupPrice .priceFinal { padding-left: 0; }

  /* Cột phải (banner lặp lại + bài viết liên quan) vốn ẩn trên desktop: ẩn luôn ở khổ nhỏ */
  aside.productEditQri { display: none; }
  .content-detail .detRight_ban_bt { display: block; margin: 10px; }
  .content-detail .detRight_ban_bt img { max-width: 100%; height: auto; display: block; }

  /* Tên sản phẩm, mô tả: cùng lề 10px với khối giá */
  section.product_d .desProduct { padding: 0 10px; box-sizing: border-box; }
  section.product_d .desProduct .detailPT { padding-left: 0; }
  section.product_d .desProduct .groupPrice,
  section.product_d .desProduct .proDha { padding-left: 0; padding-right: 0; }

  /* Tiêu đề "Sản phẩm liên quan", "Hoa Anh Đào gợi ý": chữ 43px nội tuyến quá khổ */
  h2.parent { padding: 16px 10px 6px !important; }
  h2.parent a { font-size: 20px !important; letter-spacing: 2px !important; padding-left: 0 !important; white-space: nowrap; }
  h2.parent .line-before,
  h2.parent .line-after { width: 12%; }
}

/* ============================================================
   5. CO GIÃN TABLET (768–1169px) — markup desktop, từ 1170px giữ nguyên
   ============================================================ */
@media (min-width: 768px) and (max-width: 1169px) {
  /* Khung 1170/1150px cố định: co theo màn hình, chừa lề 10px */
  /* display:table (dùng để bọc float) nở theo nội dung rộng nhất nên không co được: đổi sang block/flow-root */
  section.product_d { display: block; width: 100%; padding: 0 10px; box-sizing: border-box; }
  section.product_d .detailP { display: flow-root; }
  section.product_d .detailP,
  section.product_d .content-detail,
  section.product_d h2.parent { width: 100%; box-sizing: border-box; }

  /* Ảnh 450px + mô tả 675px: giữ tỉ lệ 40/60 */
  section.product_d #list_image { width: calc(40% - 10px); }
  section.product_d .detailP .desProduct { width: calc(60% - 20px); box-sizing: border-box; }
  section.product_d #list_image img { max-width: 100%; height: auto; }

  /* Cột Chi tiết/Thanh toán… 837px cạnh banner 300px: phần chữ co, banner giữ */
  section.product_d .content-detail-left { flex: 1; min-width: 0; width: auto; }
  section.product_d .content-detail img,
  section.product_d .content-detail iframe { max-width: 100%; height: auto; }
}
