/* Louis Yoga — Trang chi tiết sản phẩm bản mobile kiểu Shopee (10/2026)
   Chỉ có hiệu lực ≤767px khi body có class .lyp-on (do assets/ly-pdp.js gắn).
   Hoàn tác: xoá dòng {% include 'ly-pdp-mobile' %} trong snippets/tab_product.bwt */
.lyp-meta,.lyp-rows,.lyp-bar,.lyp-sheet,.lyp-backdrop,.lyp-count,.lyp-sh-head,.lyp-sh-foot{display:none}

@media (max-width:767px){
html.lyp-lock,html.lyp-lock body{overflow:hidden!important}
body.lyp-on{padding-bottom:calc(56px + env(safe-area-inset-bottom))!important}

/* ---------- Ảnh + cột thông tin tràn hết chiều ngang ---------- */
.lyp-on .layout-product .product-detail-left,.lyp-on .layout-product .details-pro{flex:0 0 100vw!important;width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
.lyp-on .layout-product .product-detail-left{position:static!important;top:auto!important;padding-left:0!important;padding-right:0!important;margin-bottom:0!important}
.lyp-on .layout-product .product-image-block{position:relative!important;top:auto!important;margin:0!important;padding:0!important;background:#fff!important;border-radius:0!important;box-shadow:none!important;border:0!important}
.lyp-on .layout-product .gallery-thumbs{display:none!important}
.lyp-on .layout-product .gallery-top{margin:0!important;border:0!important;border-radius:0!important;aspect-ratio:1/1;background:#fff!important}
.lyp-on .layout-product .gallery-top .swiper-slide{display:flex;align-items:center;justify-content:center;height:auto;background:#fff}
.lyp-on .layout-product .gallery-top .swiper-slide img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;border-radius:0!important}
.lyp-on .lyp-count{display:block;position:absolute;right:12px;bottom:12px;z-index:5;padding:3px 10px;border-radius:12px;background:rgba(23,21,22,.5);color:#fff;font:600 12px/1.4 Inter,system-ui,sans-serif;letter-spacing:.3px;pointer-events:none}

/* ---------- Cột thông tin: xếp lại thứ tự như Shopee ---------- */
.lyp-on .layout-product .details-pro{display:flex!important;flex-direction:column;padding:0!important;margin-top:0!important;margin-bottom:0!important;background:#fff}
.lyp-on .layout-product .details-pro>form,.lyp-on .layout-product .details-pro .form-product{display:contents!important}
.lyp-on .layout-product .details-pro>*,.lyp-on .layout-product .details-pro .form-product>*{order:20!important}
.lyp-on .layout-product .details-pro .product-top,
.lyp-on .layout-product .details-pro .inventory_quantity,
.lyp-on .layout-product .details-pro .sale,
.lyp-on .layout-product .details-pro>.clearfix{display:none!important}

.lyp-on .layout-product .details-pro>.title-product{order:1!important;margin:0!important;padding:12px 16px 4px!important;font:600 16px/1.42 Inter,system-ui,sans-serif!important;color:#222!important;text-transform:none!important;letter-spacing:0!important;text-align:left!important}
.lyp-on .layout-product .details-pro>.title-product::before{content:"Chính hãng";display:inline-block;margin:0 6px 0 0;padding:2px 5px;border-radius:3px;background:#d72182;color:#fff;font:700 10px/1.3 Montserrat,Inter,sans-serif;letter-spacing:.2px;vertical-align:2px}

.lyp-on .layout-product .details-pro .form-product>.price-box{order:2!important;display:flex!important;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0!important;padding:4px 16px 8px!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:0!important}
.lyp-on .layout-product .details-pro .price-box .special-price{margin:0!important;padding:0!important}
.lyp-on .layout-product .details-pro .price-box .special-price .product-price{font:700 22px/1.2 Montserrat,Inter,sans-serif!important;color:#d72182!important;letter-spacing:0!important}
.lyp-on .layout-product .details-pro .price-box .old-price{margin:0!important;padding:0!important}
.lyp-on .layout-product .details-pro .price-box .old-price del,.lyp-on .layout-product .details-pro .price-box .old-price .product-price-old{font:400 13px/1.2 Inter,sans-serif!important;color:#9a9a9a!important;text-decoration:line-through!important}
.lyp-on .layout-product .details-pro .price-box .label_product{position:static!important;inset:auto!important;transform:none!important;display:inline-flex;align-items:center;width:auto!important;height:auto!important;min-width:0!important;margin:0!important;padding:2px 6px!important;border-radius:4px!important;background:#fed8e3!important;color:#d72182!important;font:700 11px/1.3 Montserrat,Inter,sans-serif!important;writing-mode:horizontal-tb!important;box-shadow:none!important;border:0!important;align-self:center}
.lyp-on .layout-product .details-pro .price-box .label_product::before,.lyp-on .layout-product .details-pro .price-box .label_product::after{display:none!important;content:none!important}

/* Hàng đánh giá + yêu thích + chia sẻ */
.lyp-on .layout-product .details-pro>.lyp-meta{display:flex;order:3!important;align-items:center;justify-content:space-between;gap:12px;padding:0 10px 8px 16px}
.lyp-rate{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 0;border:0;background:none;color:#222;font:500 13px/1.3 Inter,system-ui,sans-serif!important;letter-spacing:0!important;text-align:left;cursor:pointer}
.lyp-rate .danhgiasao{margin:0!important;padding:0!important;line-height:1!important;display:flex;align-items:center}
.lyp-rate .danhgiasao .sapo-product-reviews-badge{margin:0!important}
.lyp-rate-t{white-space:nowrap;color:#4a4a4a}
.lyp-meta-act{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.lyp-ic{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;color:#4a202c;cursor:pointer}
.lyp-ic svg{width:22px;height:22px}
.lyp-ic:active{background:#fcefef}
.lyp-wish.active{color:#d72182}
.lyp-wish.active svg path{fill:currentColor}

/* Dải cam kết: lưới 2×2 */
.lyp-on .layout-product .details-pro>.product-policises-wrapper{order:4!important;margin:0!important;padding:10px 16px 12px!important;border:0!important;border-top:1px solid #f0f0f0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.lyp-on .layout-product .details-pro .product-policises{display:grid!important;grid-template-columns:1fr 1fr;gap:10px 12px;margin:0!important;padding:0!important;list-style:none}
.lyp-on .layout-product .details-pro .product-policises .item_poli{display:flex!important;align-items:center;gap:7px;width:auto!important;max-width:none!important;flex:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;min-height:0!important}
.lyp-on .layout-product .details-pro .product-policises .img_poly{flex:0 0 20px;width:20px!important;height:20px!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
.lyp-on .layout-product .details-pro .product-policises .img_poly img{width:20px!important;height:20px!important;object-fit:contain}
.lyp-on .layout-product .details-pro .product-policises .content_poli{padding:0!important;margin:0!important;font:500 11.5px/1.35 Inter,system-ui,sans-serif!important;color:#4a202c!important;text-align:left!important}

/* Các hàng bấm được: Phân loại, Vận chuyển */
.lyp-on .layout-product .details-pro>.lyp-rows{display:block;order:5!important;border-top:8px solid #f2f2f2}
.lyp-row{display:grid;grid-template-columns:84px minmax(0,1fr) 16px;align-items:center;gap:8px;width:100%;min-height:48px;margin:0;padding:10px 12px 10px 16px;border:0;border-bottom:1px solid #f0f0f0;background:#fff;color:#222;font:500 13px/1.4 Inter,system-ui,sans-serif!important;letter-spacing:0!important;text-align:left;cursor:pointer}
.lyp-row:active{background:#fdf6f9}
.lyp-row[hidden]{display:none}
.lyp-row-k{color:#7a7a7a;font-weight:500;white-space:nowrap}
.lyp-row-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lyp-row-v b{font-weight:600;text-transform:capitalize}
.lyp-row-v small{color:#9a9a9a;font-size:12px}
.lyp-row svg{width:16px;height:16px;color:#b0b0b0}

.lyp-on .layout-product .details-pro .form-product>.product-summary{order:6!important;margin:0!important;border-top:8px solid #f2f2f2!important;border-radius:0!important}
.lyp-on .layout-product .details-pro>.sapo-buyxgety-module-detail-v2{order:7!important}
.lyp-on .layout-product .ly-pd-info{border-top:8px solid #f2f2f2}

/* ---------- Thanh mua hàng cố định đáy ---------- */
.lyp-on .lyp-bar{display:grid;grid-template-columns:1fr 1fr 2fr;position:fixed;left:0;right:0;bottom:0;z-index:990;height:calc(56px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;box-shadow:0 -1px 0 #ececec,0 -6px 18px rgba(74,32,44,.07)}
.lyp-bar-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;margin:0;padding:0 4px;border:0;border-radius:0;background:#fff;color:#d72182!important;font:500 10.5px/1.2 Inter,system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;cursor:pointer}
.lyp-bar-btn+.lyp-bar-btn{box-shadow:inset 1px 0 0 #eee}
.lyp-bar-btn svg{width:23px;height:23px}
.lyp-bar-btn span{color:#4a4a4a;white-space:nowrap;font:inherit!important}
.lyp-bar-btn:active{background:#fdf2f7}
.lyp-bar-buy{display:flex;align-items:center;justify-content:center;margin:0;padding:0 8px;border:0;border-radius:0;background:#d72182;color:#fff!important;font:700 15px/1.2 Montserrat,Inter,sans-serif!important;letter-spacing:.2px!important;text-transform:none!important;text-decoration:none!important;cursor:pointer}
.lyp-bar-buy:active{background:#b9166d}
.lyp-bar [disabled]{cursor:not-allowed}
.lyp-bar .lyp-bar-buy[disabled]{background:#c9c0c4}
.lyp-bar .lyp-bar-btn[disabled]{color:#c4c4c4!important}

/* Nút Zalo / gọi nổi: đẩy lên trên thanh mua, ẩn khi mở bảng chọn */
html body.lyp-on .zalo-chat-widget{bottom:calc(70px + env(safe-area-inset-bottom))!important}
html body.lyp-on .addThis_listSharing{bottom:calc(138px + env(safe-area-inset-bottom))!important}
html.lyp-lock body.lyp-on .zalo-chat-widget,html.lyp-lock body.lyp-on .addThis_listSharing{display:none!important}

/* ---------- Bảng chọn phân loại trượt từ dưới ---------- */
.lyp-on .lyp-backdrop{display:block;position:fixed;inset:0;z-index:1090;background:rgba(23,21,22,.5);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s}
.lyp-backdrop.is-open{opacity:1;visibility:visible}
.lyp-on .lyp-sheet{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;z-index:1100;max-height:84vh;max-height:84dvh;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-radius:16px 16px 0 0;box-shadow:0 -10px 30px rgba(23,21,22,.18);transform:translateY(105%);visibility:hidden;transition:transform .32s cubic-bezier(.2,.8,.2,1),visibility .32s}
.lyp-on .lyp-sheet.is-open{transform:none;visibility:visible}
.lyp-on .lyp-sh-head{display:grid;grid-template-columns:104px minmax(0,1fr) 36px;gap:12px;align-items:end;padding:12px 8px 12px 16px;border-bottom:1px solid #f0f0f0}
.lyp-sh-img{display:block;width:104px;height:104px;margin-top:-40px;object-fit:cover;border-radius:10px;border:1px solid #f0e6ea;background:#fff;box-shadow:0 4px 14px rgba(23,21,22,.12)}
.lyp-sh-price{min-width:0;padding-bottom:2px}
.lyp-sh-price b{display:block;font:700 20px/1.2 Montserrat,Inter,sans-serif;color:#d72182}
.lyp-sh-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:4px}
.lyp-sh-line del{font:400 12px/1.2 Inter,sans-serif;color:#9a9a9a}
.lyp-sh-line em{font:700 10.5px/1.3 Montserrat,Inter,sans-serif;font-style:normal;padding:1px 5px;border-radius:4px;background:#fed8e3;color:#d72182}
.lyp-sh-line del:empty,.lyp-sh-line em:empty{display:none}
.lyp-sh-stock{display:block;margin-top:4px;font:500 12px/1.3 Inter,sans-serif;color:#7a7a7a}
.lyp-sh-stock.is-out{color:#ed1c24}
.lyp-sh-x{align-self:start;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:none;color:#555;cursor:pointer}
.lyp-sh-x svg{width:20px;height:20px}
.lyp-sh-body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 16px 8px}
.lyp-on .lyp-sh-body .select-swatch{margin:0!important;padding:8px 0 0!important}
.lyp-on .lyp-sh-body .swatch{margin:0 0 12px!important}
.lyp-on .lyp-sh-body .swatch .header{margin:0 0 10px!important;font:600 13px/1.3 Inter,system-ui,sans-serif!important;color:#222!important}
.lyp-on .lyp-sh-body .form-group{margin:0!important;padding:12px 0 4px!important;border-top:1px solid #f0f0f0}
.lyp-on .lyp-sh-body .flex-quantity{display:block!important}
.lyp-on .lyp-sh-body .custom-btn-number{display:flex!important;align-items:center;justify-content:space-between;width:100%!important;margin:0!important;float:none!important}
.lyp-on .lyp-sh-body .custom-btn-number.d-none{display:none!important}
.lyp-on .lyp-sh-body .custom-btn-number>label{margin:0!important;font:600 13px/1.3 Inter,system-ui,sans-serif!important;color:#222!important}
html body.lyp-on .layout-product .lyp-sheet .lyp-sh-body .flex-quantity>.btn-mua,html body.lyp-on .layout-product .lyp-sheet .lyp-sh-body .btn-mua.button_actions{display:none!important}
.lyp-on .lyp-sh-foot{display:flex;gap:10px;padding:10px 16px 12px;border-top:1px solid #f0f0f0}
.lyp-sh-foot button,.lyp-sh-foot a{flex:1 1 0;display:flex;align-items:center;justify-content:center;height:46px;margin:0;padding:0 10px;border-radius:24px;font:700 14px/1.2 Montserrat,Inter,sans-serif!important;letter-spacing:.2px!important;text-transform:none!important;text-decoration:none!important;cursor:pointer}
.lyp-sh-add{border:1.5px solid #d72182;background:#fff;color:#d72182}
.lyp-sh-buy,.lyp-sh-contact{border:0;background:#d72182;color:#fff!important}
.lyp-sh-foot [disabled]{border-color:#d9d0d4;background:#eee6ea;color:#9a8f94;cursor:not-allowed}
.lyp-sh-contact{display:none!important}
.lyp-sheet[data-mode="add"] .lyp-sh-buy,.lyp-sheet[data-mode="buy"] .lyp-sh-add{display:none}
.lyp-sheet.is-contact .lyp-sh-add,.lyp-sheet.is-contact .lyp-sh-buy{display:none!important}
.lyp-sheet.is-contact .lyp-sh-contact{display:flex!important}

.lyp-toast{position:fixed;left:50%;bottom:calc(72px + env(safe-area-inset-bottom));z-index:1200;transform:translate(-50%,8px);padding:9px 16px;border-radius:20px;background:rgba(23,21,22,.88);color:#fff;font:500 13px/1.3 Inter,sans-serif;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;white-space:nowrap}
.lyp-toast.is-visible{opacity:1;transform:translate(-50%,0)}

@media (prefers-reduced-motion:reduce){.lyp-on .lyp-sheet,.lyp-on .lyp-backdrop{transition:none}}
}