*{box-sizing:border-box}body{margin:0;font-family:Arial,"Helvetica Neue",sans-serif;background:#f4f6f8;color:#1f2937;font-size:14px}.topbar{background:#111827;color:#fff;padding:12px 18px;display:flex;justify-content:space-between;align-items:center}.brand{font-size:22px;font-weight:600}.slogan{font-size:12px;color:#d1d5db;margin-top:2px}.userbox a{color:#fde68a}.nav{background:#fff;border-bottom:1px solid #e5e7eb;padding:10px 16px;position:sticky;top:0;z-index:5}.nav a{display:inline-block;margin:4px 6px 4px 0;padding:8px 12px;border-radius:8px;text-decoration:none;background:#eef2ff;color:#1e3a8a;font-weight:500}.nav a:hover{background:#dbeafe}.wrap{max-width:1180px;margin:18px auto;padding:0 12px}.footer{text-align:center;color:#6b7280;padding:20px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;margin-bottom:16px;box-shadow:0 2px 8px rgba(0,0,0,.04)}h1{font-size:24px;margin:0 0 14px}h2{font-size:18px;margin:0 0 12px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px}.stat b{display:block;font-size:24px;margin-top:6px;color:#111827}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.form-grid .full{grid-column:1/-1}label{display:block;font-weight:600;margin-bottom:5px}input,select,textarea{width:100%;padding:9px;border:1px solid #d1d5db;border-radius:8px;background:#fff;font-family:inherit;font-size:14px}textarea{min-height:78px}.btn{display:inline-block;border:0;border-radius:8px;padding:9px 13px;background:#2563eb;color:#fff;text-decoration:none;font-weight:600;cursor:pointer}.btn.secondary{background:#6b7280}.btn.danger{background:#dc2626}.btn.ok{background:#16a34a}.btn.small{padding:5px 8px;font-size:12px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.table-wrap{overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:12px}table{width:100%;border-collapse:collapse;min-width:880px}th,td{border-bottom:1px solid #e5e7eb;text-align:left;padding:9px;vertical-align:top}th{background:#f9fafb;color:#374151;white-space:nowrap}tr:hover td{background:#f8fafc}.thumb{width:48px;height:48px;object-fit:cover;border:1px solid #e5e7eb;border-radius:8px;background:#f3f4f6}.thumb:hover{transform:scale(2.6);transition:.15s;position:relative;z-index:20}.muted{color:#6b7280}.flash{padding:12px 14px;border-radius:10px;margin-bottom:12px;font-weight:600}.flash.ok{background:#dcfce7;color:#166534;border:1px solid #86efac}.flash.err{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.searchbar{display:flex;gap:8px;margin-bottom:12px}.searchbar input{max-width:360px}.pager{margin-top:12px}.pager a{display:inline-block;padding:6px 10px;margin-right:4px;border-radius:6px;background:#fff;border:1px solid #d1d5db;text-decoration:none;color:#111827}.pager a.active{background:#2563eb;color:#fff}.login{max-width:420px;margin:50px auto}.notice{background:#fffbeb;color:#92400e;border:1px solid #fcd34d;padding:12px;border-radius:10px}.nowrap{white-space:nowrap}.code{font-family:Consolas,monospace;background:#f3f4f6;border-radius:6px;padding:2px 5px}@media(max-width:800px){.grid,.form-grid{grid-template-columns:1fr}.topbar{display:block}.searchbar{display:block}.searchbar input{max-width:100%;margin-bottom:8px}.nav a{font-size:13px;padding:7px 9px}}
.nav-cache-btn{display:inline-block;margin:4px 6px 4px 0;padding:8px 12px;border:0;border-radius:8px;background:#f59e0b;color:#fff;font-weight:600;cursor:pointer}.nav-cache-btn:disabled{opacity:.65;cursor:wait}

.mshop-fav-form{position:absolute;left:0;top:8px;z-index:8;margin:0}.mshop-fav-badge{display:inline-block;border:0;background:#9ca3af;color:#fff;font-size:10px;font-weight:600;padding:4px 6px;border-radius:0 3px 3px 0;line-height:1;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12)}.mshop-fav-badge.is-favorited{background:#6d28d9}.mshop-fav-badge:disabled{opacity:.7;cursor:wait}.mshop-selling-bar{display:block;height:16px;background:linear-gradient(90deg,#7c3aed,#ddd6fe);border-radius:999px;margin-top:6px;overflow:hidden;text-align:center;line-height:16px;color:#fff;text-transform:uppercase;font-size:10px;font-weight:600}.mshop-selling-bar span{display:block;filter:drop-shadow(0 1px 0 rgba(0,0,0,.08))}.shop-detail-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.shop-detail-badges .mshop-fav-form{position:static}.shop-detail-badges .mshop-fav-badge{position:static;border-radius:4px;font-size:12px;padding:7px 10px}.detail-selling-badge{display:inline-flex;align-items:center;height:28px;border-radius:999px;padding:0 10px;background:#f5f3ff;color:#6d28d9;font-weight:600;border:1px solid #ddd6fe}.mshop-toast{position:fixed;left:50%;bottom:82px;z-index:9999;transform:translate(-50%,12px);opacity:0;background:rgba(17,24,39,.92);color:#fff;border-radius:999px;padding:9px 14px;box-shadow:0 12px 30px rgba(0,0,0,.25);transition:.2s;max-width:90%;text-align:center}.mshop-toast.is-show{opacity:1;transform:translate(-50%,0)}.shop-account-favorites{margin:16px 0}.shop-favorite-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.shop-favorite-card{position:relative;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px;display:grid;grid-template-columns:82px 1fr;gap:10px}.shop-favorite-card img{width:82px;height:82px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb;background:#f8fafc}.shop-favorite-name{display:block;color:#111827;text-decoration:none;font-weight:600;line-height:1.3;max-height:38px;overflow:hidden}.shop-favorite-card b{display:block;color:#6d28d9;margin-top:5px}.shop-favorite-card small{display:block;color:#6b7280;margin:3px 0 7px}.shop-favorite-card .mshop-fav-form{position:static}.shop-favorite-card .mshop-fav-badge{position:static;border-radius:6px;font-size:12px}.shop-empty-box{background:#fff;border:1px dashed #d1d5db;border-radius:12px;padding:16px;color:#6b7280}.order-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.order-toolbar .grow{flex:1;min-width:220px}.order-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:14px}.order-stat{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px}.order-stat span{display:block;color:#6b7280;font-size:12px}.order-stat b{font-size:22px;color:#111827}.order-tabs{display:flex;gap:6px;overflow:auto;margin:0 0 12px}.order-tabs a{white-space:nowrap;text-decoration:none;color:#334155;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:8px 12px;font-weight:600}.order-tabs a.active{background:#2563eb;border-color:#2563eb;color:#fff}.order-list{display:grid;gap:10px}.order-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 2px 8px rgba(15,23,42,.04);overflow:hidden}.order-card-head{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 14px;border-bottom:1px solid #eef2f7;background:#fbfdff}.order-code{font-weight:600;color:#0f172a}.order-meta{display:flex;gap:10px;flex-wrap:wrap;color:#64748b;font-size:12px;margin-top:4px}.order-status-badge{display:inline-flex;align-items:center;height:26px;border-radius:999px;padding:0 9px;background:#e0f2fe;color:#0369a1;font-weight:600;font-size:12px}.order-status-badge.completed{background:#dcfce7;color:#166534}.order-status-badge.cancelled{background:#fee2e2;color:#991b1b}.order-status-badge.shipping{background:#fef3c7;color:#92400e}.order-card-body{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.6fr) minmax(260px,.8fr);gap:12px;padding:14px}.order-info-line{display:flex;justify-content:space-between;gap:10px;padding:4px 0;color:#475569}.order-info-line b{color:#111827;text-align:right}.order-items-list{margin:0;padding-left:18px;max-height:155px;overflow:auto}.order-items-list li{margin-bottom:5px}.order-quick-form{display:grid;gap:8px}.order-quick-form .two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.order-quick-form button{width:100%}.order-create-card summary{font-size:18px;font-weight:600;cursor:pointer}.order-create-card[open] summary{margin-bottom:12px}@media(max-width:900px){.order-card-body{grid-template-columns:1fr}.order-card-head{grid-template-columns:1fr}.order-toolbar{display:block}.order-toolbar>*{margin-bottom:8px}.shop-favorite-grid{grid-template-columns:1fr}}

.web-link-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:30px;border-radius:8px;background:#eef2ff;color:#1d4ed8;text-decoration:none;font-weight:600;font-size:0}.web-link-icon:before{content:"🔗";font-size:16px;line-height:1}.web-link-icon:hover{background:#dbeafe}
.product-head{justify-content:space-between}.product-head h2{margin-bottom:4px}.note-yellow{background:#f59e0b}.notice.blue{background:#eff6ff;color:#1e3a8a;border-color:#bfdbfe}.product-notes-card{max-width:920px}.note-tabs .btn{min-width:82px;text-align:center}.note-row{display:grid;grid-template-columns:54px 1fr 54px;gap:10px;align-items:stretch;margin-bottom:10px}.note-number{display:flex;align-items:center;justify-content:center;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:10px;font-weight:600;font-size:18px}.note-main textarea{min-height:86px}.note-delete{border:0;border-radius:10px;background:#fee2e2;color:#ef4444;font-size:22px;font-weight:600;cursor:pointer}.note-web-actions{display:flex;align-items:center;gap:10px;margin:8px 16px 0 16px;padding:10px 12px;border:1px dashed #86efac;background:#ecfdf5;border-radius:14px}.note-web-actions.is-empty{border-color:#bfdbfe;background:#eff6ff}.note-status{font-weight:600;color:#047857;flex:1}.note-web-actions.is-empty .note-status{color:#475569}.note-form-actions .grow{flex:1}@media(max-width:800px){.note-row{grid-template-columns:42px 1fr 42px}.note-web-actions{margin-left:0;margin-right:0;flex-wrap:wrap}.product-head{align-items:flex-start}}
.btn.disabled{opacity:.55;cursor:not-allowed;pointer-events:none}.note-web-actions.is-saved{border-color:#86efac;background:#ecfdf5}.note-web-actions.is-saved .note-status{color:#047857}
.purchase-line-row{display:grid;grid-template-columns:minmax(280px,1.4fr) minmax(90px,.35fr) minmax(120px,.45fr) minmax(130px,.45fr) 44px;gap:8px;align-items:center;margin-bottom:8px}.purchase-note-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.purchase-note-row{display:grid;grid-template-columns:54px 1fr 54px;gap:10px;align-items:stretch;margin-bottom:10px}.purchase-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0}.purchase-detail-grid div{border:1px solid #e5e7eb;border-radius:8px;padding:10px;background:#f8fafc}@media(max-width:800px){.purchase-line-row{grid-template-columns:1fr}.purchase-note-row{grid-template-columns:42px 1fr 42px}}
.product-search-wrap{position:relative;min-width:360px;max-width:520px;flex:1}.product-search-wrap input{max-width:none}.product-suggest-box{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:80;background:#fff;border:1px solid #d1d5db;border-radius:10px;box-shadow:0 18px 45px rgba(15,23,42,.18);overflow:hidden}.product-suggest-item{display:grid;grid-template-columns:46px 1fr;gap:10px;width:100%;border:0;background:#fff;text-align:left;padding:8px 10px;cursor:pointer;align-items:center}.product-suggest-item:hover{background:#eff6ff}.product-suggest-item img,.product-suggest-noimg{width:46px;height:46px;border-radius:8px;object-fit:cover;border:1px solid #e5e7eb;background:#f3f4f6}.product-suggest-item b{display:block;color:#111827}.product-suggest-item small{display:block;color:#6b7280;margin-top:2px}.product-preview-thumb{cursor:zoom-in}.thumb.product-preview-thumb:hover{transform:none;position:static;z-index:auto}.product-image-preview{position:fixed;z-index:9999;width:300px;height:300px;padding:8px;border-radius:12px;background:#fff;border:1px solid #d1d5db;box-shadow:0 24px 70px rgba(15,23,42,.32);pointer-events:none}.product-image-preview img{width:100%;height:100%;object-fit:contain;border-radius:8px;background:#f8fafc}@media(max-width:800px){.product-search-wrap{min-width:0;max-width:100%}}
.purchase-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.purchase-title-row h2{margin:0}@media(max-width:800px){.purchase-title-row{align-items:flex-start;flex-direction:column}}
.purchase-toggle-title{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;user-select:none}.purchase-toggle-title:after{content:"Hiện";display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:30px;padding:0 10px;border-radius:8px;background:#2563eb;color:#fff;font-size:13px;font-weight:600}.purchase-toggle-title[aria-expanded="true"]:after{content:"Ẩn";background:#64748b}.purchase-toggle-body{margin-top:12px}
.purchase-product-search{position:relative}.purchase-product-search .purchase-product-input{width:100%}.purchase-product-selected{display:flex;align-items:center;gap:8px;margin-top:5px;color:#6b7280;font-size:12px;min-height:22px}.purchase-product-selected img,.purchase-product-selected span{width:28px;height:28px;border-radius:6px;object-fit:cover;border:1px solid #e5e7eb;background:#f3f4f6}.purchase-product-results{top:calc(100% + 6px);left:0;right:0}.product-suggest-empty{padding:10px;color:#6b7280;background:#fff}.purchase-line-row{align-items:start}
.line-original-price-note{margin-top:6px;font-size:13px}
.purchase-note-main{display:flex;flex-direction:column;gap:8px}.purchase-link-actions{display:flex;justify-content:flex-start}
.product-extra-gallery{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc}.product-extra-item{width:96px;display:grid;gap:6px}.product-extra-item img{width:96px;height:96px;object-fit:cover;border:1px solid #d1d5db;border-radius:8px;background:#fff;cursor:zoom-in}.product-extra-item .btn{text-align:center}
.product-form-toggle-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;cursor:pointer;user-select:none}.product-form-toggle-title:after{content:"Hiện";display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:30px;padding:0 10px;border-radius:8px;background:#2563eb;color:#fff;font-size:13px;font-weight:600}.product-form-toggle-title[aria-expanded="true"]:after{content:"Ẩn";background:#64748b}.product-form-toggle-title+form{margin-top:14px}
.product-image-manage{border:0;background:transparent;padding:0;cursor:pointer}.product-image-empty{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px dashed #93c5fd;border-radius:8px;background:#eff6ff;color:#2563eb;font-weight:600;font-size:22px}.product-image-inline-row td{padding:0!important;background:#fff!important}.product-image-modal{display:block;padding:0;background:#fff}.product-image-modal[hidden]{display:none}.product-image-dialog{width:100%;max-height:none;overflow:visible;background:#fff;border:1px solid #dbeafe;border-radius:10px;margin:10px 0 14px;box-shadow:0 14px 40px rgba(15,23,42,.12)}.product-image-dialog-head{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #e5e7eb;background:#f8fafc}.product-image-dialog-head h2{margin:0}.product-image-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#111827}.product-image-toolbar{display:flex;align-items:center;gap:12px;padding:18px;flex-wrap:wrap}.product-image-upload{margin:0}.product-image-upload input{display:none}.product-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;padding:12px 20px 24px}.product-image-tile{position:relative;min-height:200px;border:1px solid #e5e7eb;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-image-tile img{width:100%;height:200px;object-fit:contain;background:#f8fafc}.product-image-cover-badge{position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:50%;background:#f59e0b;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600}.product-image-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:12px;background:rgba(15,23,42,.58);opacity:0;transition:.15s}.product-image-tile:hover .product-image-overlay{opacity:1}.product-image-cover-text{padding:7px 10px;border-radius:8px;background:rgba(255,255,255,.9);color:#111827;font-weight:600}.product-image-empty-state{grid-column:1/-1;padding:28px;text-align:center;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc}
.product-image-grid{grid-template-columns:repeat(auto-fill,200px);gap:12px}.product-image-tile{width:200px;min-height:200px}.product-image-tile img{width:200px;height:200px}.product-image-overlay{gap:6px;padding:8px}.product-image-overlay .btn{padding:5px 8px;font-size:12px}.product-image-cover-text{display:none}.product-image-cover-badge{width:24px;height:24px;font-size:13px}
/* Website bán hàng */
.shop-body{background:#e9e9e9;color:#111827}.shop-top{background:#fff}.shop-top-line{background:#f5f5f5;border-bottom:1px solid #ddd;display:flex;gap:22px;justify-content:center;padding:8px 12px;font-size:13px}.shop-main-head{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:230px 1fr 150px;gap:16px;align-items:center;padding:18px 12px}.shop-logo{font-size:26px;font-weight:600;color:#111;text-decoration:none}.shop-logo small{display:block;font-size:12px;color:#666;font-weight:400}.shop-search{display:flex}.shop-search input{border-radius:3px 0 0 3px;border:2px solid #d1d5db;height:42px}.shop-search button{border:0;background:#dedede;color:#111;font-weight:600;padding:0 22px;border-radius:0 3px 3px 0}.shop-cart-btn{background:#dedede;color:#111;text-decoration:none;border-radius:4px;padding:12px 14px;text-align:center;font-weight:600}.shop-cart-btn b{background:#111;color:#fff;border-radius:50%;padding:2px 7px;margin-left:5px}.shop-nav{background:#dfdfdf;border-top:1px solid #d6d6d6;border-bottom:1px solid #cfcfcf;text-align:center}.shop-nav a{display:inline-block;padding:13px 18px;text-decoration:none;color:#111;font-weight:600}.shop-nav a:hover{background:#fff}.shop-wrap{max-width:1180px;margin:18px auto;padding:0 12px}.shop-hero{background:#fff;border-radius:2px;border:1px solid #ddd;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:24px;margin-bottom:16px}.shop-hero h1{font-size:28px;margin-bottom:8px}.shop-hero p{margin:0;color:#555}.shop-hero-btn,.shop-checkout-btn{background:#111;color:#fff;text-decoration:none;border-radius:4px;padding:12px 18px;font-weight:600}.shop-layout{display:grid;grid-template-columns:270px 1fr;gap:16px}.shop-sidebar{background:#fff;border:1px solid #ddd;padding:0 0 12px}.shop-sidebar h3{background:#222;color:#fff;margin:0;padding:13px 16px;font-size:16px}.shop-cat{display:flex;justify-content:space-between;gap:10px;text-decoration:none;color:#111;border-bottom:1px solid #eee;padding:11px 14px}.shop-cat:hover,.shop-cat.active{background:#f3f4f6;font-weight:600}.shop-policy{margin:14px;border:1px dashed #bbb;background:#f9fafb;padding:12px;line-height:1.55}.shop-products{min-width:0}.shop-section-head{display:flex;justify-content:space-between;align-items:center;background:#dfdfdf;border:1px solid #d2d2d2;padding:10px 14px;margin-bottom:12px}.shop-section-head h2{margin:0;font-size:18px}.shop-section-head span{color:#555}.shop-grid-products{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.shop-product-card{background:#fff;border:1px solid #ddd;transition:.15s}.shop-product-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.12);transform:translateY(-2px)}.shop-product-img{display:block;aspect-ratio:1/1;background:#f8fafc;border-bottom:1px solid #eee}.shop-product-img img{width:100%;height:100%;object-fit:contain}.shop-product-body{padding:10px}.shop-product-name{display:block;min-height:40px;color:#111;text-decoration:none;font-weight:600;line-height:1.35}.shop-product-name:hover{color:#1d4ed8}.shop-product-code,.shop-product-stock{font-size:12px;color:#6b7280;margin-top:4px}.shop-product-price{font-size:18px;color:#111;font-weight:600;margin-top:8px}.shop-add-form{display:grid;grid-template-columns:54px 1fr;gap:6px;margin-top:10px}.shop-add-form input,.shop-qty{height:34px;text-align:center}.shop-add-form button,.shop-cart-actions button,.shop-checkout-form button{border:0;background:#dedede;color:#111;border-radius:4px;font-weight:600;cursor:pointer}.shop-pager a{background:#fff}.shop-detail{display:grid;grid-template-columns:45% 1fr;gap:18px;background:#fff;border:1px solid #ddd;padding:18px}.shop-detail-gallery{background:#f8fafc;border:1px solid #eee;display:flex;align-items:center;justify-content:center}.shop-detail-gallery img{width:100%;max-height:520px;object-fit:contain}.shop-breadcrumb{font-size:13px;color:#777;margin-bottom:8px}.shop-breadcrumb a{color:#2563eb}.shop-detail-info h1{font-size:28px}.shop-detail-code,.shop-detail-stock{color:#555;margin:8px 0}.shop-detail-price{font-size:30px;font-weight:600;margin:14px 0}.shop-detail-buy{display:flex;align-items:end;gap:8px;margin:16px 0}.shop-detail-buy label{margin:0}.shop-detail-buy input{width:90px}.shop-detail-buy button{height:40px;border:0;background:#111;color:#fff;border-radius:4px;padding:0 18px;font-weight:600}.shop-detail-box{border-top:1px solid #eee;margin-top:18px;padding-top:14px;line-height:1.6}.shop-empty{background:#fff;border:1px solid #ddd;padding:20px}.shop-cart-table{background:#fff;border:1px solid #ddd;overflow:auto}.shop-cart-product{display:flex;gap:10px;align-items:center}.shop-cart-product img{width:64px;height:64px;object-fit:contain;border:1px solid #eee;background:#f8fafc}.shop-cart-product small{display:block;color:#777;margin-top:4px}.shop-cart-total{display:flex;justify-content:flex-end;gap:18px;background:#fff;border:1px solid #ddd;border-top:0;padding:16px;font-size:20px}.shop-cart-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;flex-wrap:wrap}.shop-cart-actions a,.shop-cart-actions button{padding:10px 14px;border-radius:4px;text-decoration:none;font-weight:600}.shop-secondary{background:#fff;border:1px solid #d1d5db;color:#111}.shop-cart-actions button.danger{background:#fee2e2;color:#991b1b}.shop-checkout-layout{display:grid;grid-template-columns:1fr 420px;gap:16px}.shop-checkout-form,.shop-order-summary{background:#fff;border:1px solid #ddd;padding:16px}.shop-checkout-form label{margin-top:10px}.shop-checkout-form button{margin-top:12px;padding:12px 18px;background:#111;color:#fff}.shop-summary-line,.shop-summary-total{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eee;padding:10px 0}.shop-summary-total{font-size:20px;border-bottom:0}.shop-footer{text-align:center;color:#666;padding:24px}@media(max-width:900px){.shop-top-line{display:block;text-align:center;line-height:1.7}.shop-main-head{grid-template-columns:1fr}.shop-layout,.shop-detail,.shop-checkout-layout{grid-template-columns:1fr}.shop-grid-products{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.shop-grid-products{grid-template-columns:1fr}.shop-hero{display:block}.shop-detail-buy{display:block}.shop-detail-buy input,.shop-detail-buy button{width:100%;margin-top:6px}.shop-cart-actions{justify-content:stretch}.shop-cart-actions a,.shop-cart-actions button{flex:1;text-align:center}}

/* Tài khoản khách hàng + địa chỉ Việt Nam */
.shop-auth-layout{max-width:880px;margin:0 auto}.shop-auth-layout.narrow{max-width:520px}.shop-auth-form h1{margin-top:0}.shop-muted{color:#64748b;line-height:1.55}.shop-auth-note{margin:14px 0 0}.shop-auth-note a,.shop-account-prompt a{color:#1d4ed8;font-weight:600}.shop-account-prompt{border:1px dashed #93c5fd;background:#eff6ff;color:#0f172a;padding:12px;border-radius:8px;margin-bottom:12px}.shop-address-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.shop-address-grid.two{grid-template-columns:repeat(2,1fr)}.shop-address-box{border:1px solid #e5e7eb;background:#f8fafc;padding:14px;border-radius:10px;margin-top:8px}.shop-address-mode{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.shop-address-mode label{margin:0;font-weight:600}.shop-address-mode input{width:auto;margin-right:6px}.shop-address-box select{min-height:38px;background:#fff}.shop-address-hint{margin:8px 0 0;color:#64748b;font-size:13px}.account-layout .shop-summary-line{align-items:flex-start}.account-layout .shop-summary-line b{max-width:230px;text-align:right;word-break:break-word}.shop-checkout-form input[pattern="[0-9]{10}"]{letter-spacing:.5px}@media(max-width:760px){.shop-address-grid,.shop-address-grid.two{grid-template-columns:1fr}.shop-auth-layout{max-width:none}.shop-address-mode{display:block}.shop-address-mode label{display:block;margin:8px 0}.account-layout .shop-summary-line{display:block}.account-layout .shop-summary-line b{display:block;text-align:left;margin-top:4px;max-width:none}}

.row-active{background:#eff6ff}.customer-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.customer-admin-edit h3{margin:18px 0 8px}.customer-admin-summary{position:sticky;top:10px}.customer-mini-list{padding-left:18px;margin:8px 0}.customer-cart-product{display:flex;gap:10px;align-items:center;min-width:260px}.customer-cart-product img{width:54px;height:54px;object-fit:contain;border:1px solid #e5e7eb;background:#f8fafc;border-radius:8px}.customer-cart-product small{display:block;color:#64748b;margin-top:4px}.mini-input{max-width:100px}.btn.danger{background:#fee2e2;color:#991b1b}.shop-address-box{max-width:100%}.shop-address-grid select{width:100%}@media(max-width:900px){.customer-admin-layout{grid-template-columns:1fr}.customer-admin-summary{position:static}.customer-cart-product{min-width:0}}


/* Hiển thị sản phẩm ngoài shop */
.shop-visible-cell{min-width:110px}.shop-visible-toggle-form{margin:0}.shop-visible-switch{display:inline-flex;align-items:center;gap:7px;margin:0;font-weight:600;cursor:pointer;white-space:nowrap}.shop-visible-switch input[type="checkbox"]{width:18px;height:18px;padding:0;margin:0;accent-color:#16a34a}.shop-visible-switch.compact span{font-size:12px;color:#334155}.product-shop-visible-field{display:flex;flex-direction:column;justify-content:flex-end}.product-shop-visible-field .shop-visible-switch{min-height:38px;border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;background:#f8fafc}.product-shop-visible-field input[type="hidden"]{display:none}

/* Mobile shop layout phong cách sàn TMĐT */
.mshop-header,.mshop-home,.mshop-bottom-nav{display:none}
@media(max-width:760px){
  html{scroll-behavior:smooth}
  body.shop-body{background:#f4f4f4;color:#222;padding-bottom:64px;-webkit-tap-highlight-color:transparent}
  .shop-top{position:sticky;top:0;z-index:40;background:linear-gradient(180deg,#7c3aed 0%,#8b5cf6 100%);box-shadow:0 1px 0 rgba(0,0,0,.08)}
  .shop-top-line,.shop-main-head,.shop-nav{display:none}
  .mshop-header{display:grid;grid-template-columns:1fr 42px 42px;gap:8px;align-items:center;padding:10px 10px 12px;padding-top:max(10px,env(safe-area-inset-top));background:linear-gradient(180deg,#7c3aed 0%,#8b5cf6 100%)}
  .mshop-search{position:relative;display:flex;align-items:center;background:#fff;border-radius:3px;min-height:38px;box-shadow:0 1px 2px rgba(0,0,0,.09);overflow:hidden}
  .mshop-search-icon{display:flex;align-items:center;justify-content:center;width:34px;height:38px;color:#999;font-size:22px;line-height:1;font-weight:600;transform:rotate(-18deg)}
  .mshop-search input{height:38px;border:0;border-radius:0;padding:0 10px 0 0;font-size:14px;color:#333;background:#fff;box-shadow:none;outline:0}
  .mshop-search input::placeholder{color:#8b5cf6;opacity:1}
  .mshop-head-icon{position:relative;display:flex;align-items:center;justify-content:center;height:42px;text-decoration:none;color:#fff;font-size:24px;line-height:1}
  .mshop-head-icon b{position:absolute;top:1px;right:0;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:#fff;color:#6d28d9;border:1px solid #6d28d9;font-size:11px;line-height:17px;text-align:center;font-weight:600}
  .shop-wrap{max-width:none;margin:0;padding:0;background:#f4f4f4;overflow:hidden}
  .flash{margin:8px 8px 0;border-radius:8px}
  .mshop-home{display:block;background:#f4f4f4}
  .shop-hero,.shop-sidebar{display:none}
  .shop-layout{display:block;margin:0;padding:0}
  .shop-products{display:block;margin:0;background:#f4f4f4}
  .shop-section-head{margin:8px 0 0;border:0;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;background:#fff;padding:12px 12px;color:#6d28d9;text-transform:uppercase}
  .shop-section-head h2{font-size:18px;color:#6d28d9;font-weight:500;letter-spacing:.2px}
  .shop-section-head span{font-size:12px;color:#999;text-transform:none}
  .mshop-quick-row{display:grid;grid-auto-flow:column;grid-auto-columns:72px;gap:10px;overflow-x:auto;background:#fff;padding:14px 12px 16px;border-bottom:1px solid #eee;scroll-snap-type:x proximity}
  .mshop-quick-row::-webkit-scrollbar,.mshop-scroll-products::-webkit-scrollbar{display:none}
  .mshop-quick-item{scroll-snap-align:start;text-decoration:none;color:#222;text-align:center;font-size:12px;line-height:1.25}
  .mshop-quick-item span{display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin:0 auto 7px;border:1px solid #eee;border-radius:14px;background:#fff;color:#6d28d9;font-size:25px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
  .mshop-quick-item b{display:block;font-weight:400;min-height:30px;overflow:hidden}
  .mshop-section{background:#fff;margin:8px 0 0;border-top:1px solid #eee;border-bottom:1px solid #eee}
  .mshop-section-title{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 8px;background:#fff}
  .mshop-section-title h2{margin:0;color:#6d28d9;font-size:18px;font-weight:500;text-transform:uppercase;letter-spacing:.2px}
  .mshop-section-title a{color:#777;text-decoration:none;font-size:14px;white-space:nowrap}
  .mshop-timer{display:inline-flex;gap:2px;margin-left:6px;vertical-align:middle;color:#fff;font-size:14px;letter-spacing:1px;background:#111;border-radius:2px;padding:2px 5px;font-weight:600}
  .mshop-scroll-products{display:grid;grid-auto-flow:column;grid-auto-columns:44%;gap:8px;overflow-x:auto;padding:0 8px 10px;scroll-snap-type:x proximity;background:#fff}
  .mshop-scroll-products .shop-product-card{scroll-snap-align:start;min-width:0;margin:0}
  .mshop-top-wrap{position:relative;scroll-snap-align:start;min-width:0}
  .mshop-top-wrap .shop-product-card{height:100%}
  .mshop-top-ribbon{position:absolute;left:0;top:0;z-index:4;background:#7c3aed;color:#fff;font-weight:600;font-size:11px;padding:7px 5px 6px;clip-path:polygon(0 0,100% 0,100% 82%,50% 100%,0 82%)}
  .mshop-category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;padding:4px 4px 14px}
  .mshop-category-item{min-height:98px;text-align:center;text-decoration:none;color:#333;padding:8px 4px;font-size:13px;line-height:1.25;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
  .mshop-category-item span{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:#f7f7f7;color:#6d28d9;font-size:29px;margin-bottom:7px;border:1px solid #f1f1f1}
  .mshop-category-item b{font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .mshop-recommend{margin-bottom:0;border-bottom:0}
  .shop-grid-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;background:#f4f4f4}
  .shop-product-card{position:relative;border:0;background:#fff;border-radius:2px;overflow:hidden;box-shadow:0 0 0 1px #eee;transition:none}
  .shop-product-card:hover{box-shadow:0 0 0 1px #eee;transform:none}
  .shop-product-img{aspect-ratio:1/1;border-bottom:0;background:#fff;position:relative;overflow:hidden}
  .shop-product-img img{width:100%;height:100%;object-fit:cover;background:#fff}
  .mshop-fav-badge{display:inline-block;background:#9ca3af;color:#fff;font-size:10px;font-weight:600;padding:3px 5px;border-radius:0 2px 2px 0;line-height:1}
  .mshop-fav-badge.is-favorited{background:#6d28d9}
  .shop-product-body{padding:7px 7px 8px;background:#fff}
  .shop-product-name{min-height:34px;font-size:13px;line-height:1.28;font-weight:400;color:#222;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .shop-product-code{display:none}
  .shop-product-price{font-size:17px;line-height:1.2;color:#6d28d9;margin-top:8px;font-weight:500}
  .shop-product-price::first-letter{font-size:14px}
  .shop-product-stock{font-size:11px;color:#999;margin-top:4px}
  .mshop-selling-bar{display:block;height:16px;background:linear-gradient(90deg,#7c3aed,#ddd6fe);border-radius:999px;margin-top:6px;overflow:hidden;text-align:center;line-height:16px;color:#fff;text-transform:uppercase;font-size:10px;font-weight:600}
  .mshop-selling-bar span{display:block;filter:drop-shadow(0 1px 0 rgba(0,0,0,.08))}
  .shop-add-form{display:grid;grid-template-columns:42px 1fr;gap:5px;margin-top:7px}
  .shop-add-form input,.shop-add-form button{height:28px;border-radius:3px;font-size:12px;padding:0 5px}
  .shop-add-form button{background:#6d28d9;color:#fff;font-weight:600}
  .mshop-card-compact .shop-product-name{min-height:32px;font-size:12px}
  .mshop-card-compact .shop-product-stock,.mshop-card-compact .shop-add-form{display:none}
  .mshop-card-compact .shop-product-price{font-size:16px;margin-top:6px;text-align:center}
  .mshop-card-compact .mshop-selling-bar{margin:7px 6px 0}
  .shop-pager{padding:12px;background:#fff;margin:0;text-align:center}
  .shop-pager a{border-color:#eee;color:#6d28d9;border-radius:3px}
  .shop-pager a.active{background:#6d28d9;color:#fff;border-color:#6d28d9}
  .shop-footer{display:none}
  .mshop-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #e5e5e5;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -1px 8px rgba(0,0,0,.06)}
  .mshop-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;color:#666;text-decoration:none;font-size:11px}
  .mshop-bottom-nav a:first-child{color:#6d28d9}
  .mshop-bottom-nav span{font-size:20px;line-height:1}
  .shop-detail{grid-template-columns:1fr;margin:0;border:0;padding:0;background:#f4f4f4;gap:0}
  .shop-detail-gallery{border:0;background:#fff;min-height:320px}
  .shop-detail-gallery img{max-height:420px;object-fit:contain;background:#fff}
  .shop-detail-info{background:#fff;margin-top:8px;padding:12px}
  .shop-breadcrumb{display:none}
  .shop-detail-info h1{font-size:18px;line-height:1.35;margin:0 0 8px;font-weight:500}
  .shop-detail-price{font-size:26px;color:#6d28d9;margin:12px 0;font-weight:500}
  .shop-detail-buy{position:fixed;left:0;right:0;bottom:0;z-index:55;background:#fff;border-top:1px solid #e5e5e5;display:grid;grid-template-columns:72px 1fr;gap:8px;align-items:center;margin:0;padding:8px 10px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .shop-detail-buy label{display:none}
  .shop-detail-buy input{width:72px;height:42px;border-radius:3px;text-align:center}
  .shop-detail-buy button{height:42px;background:#6d28d9;border-radius:3px;color:#fff;width:100%;margin:0}
  .shop-cart-table{border:0;margin:0;background:#f4f4f4;overflow:visible}
  .shop-cart-table table{min-width:0;display:block;background:#f4f4f4}
  .shop-cart-table thead{display:none}
  .shop-cart-table tbody,.shop-cart-table tr,.shop-cart-table td{display:block;width:100%}
  .shop-cart-table tr{background:#fff;margin-bottom:8px;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:8px 10px}
  .shop-cart-table td{border:0;padding:4px 0;text-align:left}
  .shop-cart-product{align-items:flex-start}
  .shop-cart-product img{width:76px;height:76px;object-fit:cover}
  .shop-cart-total{border:0;margin-top:8px;justify-content:space-between;font-size:18px;color:#6d28d9}
  .shop-cart-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #e5e5e5;padding:8px 10px;margin:0;gap:6px;z-index:45}
  .shop-cart-actions a,.shop-cart-actions button{border-radius:3px;padding:11px 8px}
  .shop-checkout-layout{display:block;margin:0}
  .shop-checkout-form,.shop-order-summary{border:0;margin-bottom:8px;padding:12px;background:#fff}
  .shop-checkout-form button{background:#6d28d9;border-radius:3px;width:100%}
}
@media(max-width:380px){
  .mshop-scroll-products{grid-auto-columns:48%}
  .mshop-category-grid{grid-template-columns:repeat(4,1fr)}
  .mshop-category-item{font-size:12px;min-height:92px}.mshop-category-item span{width:52px;height:52px;font-size:25px}
  .shop-product-price{font-size:16px}
}

/* Voucher management and shop voucher wallet */
.voucher-stats .stat b{color:#6d28d9}.voucher-program-card{border-color:#ddd6fe;background:linear-gradient(180deg,#f5f3ff,#fff)}.voucher-checks{display:flex;gap:18px;flex-wrap:wrap;align-items:center}.voucher-checks label{display:inline-flex;gap:7px;align-items:center;margin:0}.voucher-checks input{width:auto}.voucher-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:600;background:#fee2e2;color:#991b1b}.voucher-status.active{background:#dcfce7;color:#166534}.voucher-table td{vertical-align:middle}.shop-voucher-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(120deg,#f5f3ff,#fff);border:1px solid #ddd6fe;border-radius:14px;padding:16px;margin-bottom:14px}.shop-voucher-hero b{display:block;font-size:22px;color:#6d28d9}.shop-voucher-hero span{display:block;color:#6b7280;margin-top:4px}.shop-voucher-hero a{display:inline-block;background:#6d28d9;color:#fff;text-decoration:none;border-radius:10px;padding:10px 14px;font-weight:600}.shop-voucher-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}.shop-voucher-card{background:#fff;border-radius:14px;overflow:hidden;border:1px solid #fee2e2;box-shadow:0 2px 12px rgba(109,40,217,.08)}.shop-voucher-ticket{display:grid;grid-template-columns:112px 1fr 76px;min-height:132px}.shop-voucher-left{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:linear-gradient(180deg,#6d28d9,#a855f7);color:#fff;text-align:center;padding:10px;position:relative}.shop-voucher-left:after{content:"";position:absolute;right:-8px;top:0;bottom:0;width:16px;background:radial-gradient(circle at 8px 8px,transparent 7px,#fff 8px) 0 0/16px 16px repeat-y}.shop-voucher-left b{font-size:24px;line-height:1}.shop-voucher-left span{font-size:12px}.shop-voucher-main{padding:12px 12px 10px}.shop-voucher-main h2{font-size:17px;margin:0 0 6px;color:#111827}.shop-voucher-main p{margin:0 0 8px;color:#6b7280;min-height:18px}.shop-voucher-cond{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:6px}.shop-voucher-cond span{font-size:12px;border:1px solid #ddd6fe;background:#f5f3ff;color:#5b21b6;border-radius:999px;padding:3px 7px}.shop-voucher-main small{color:#6b7280}.shop-voucher-apply{display:flex;align-items:center;justify-content:center;padding:10px;background:#f5f3ff}.shop-voucher-apply button{border:0;background:#6d28d9;color:#fff;border-radius:8px;padding:9px 12px;font-weight:600;cursor:pointer}.shop-voucher-box{background:#f5f3ff;border:1px dashed #8b5cf6;border-radius:12px;padding:12px;margin:12px 0}.shop-voucher-box h2{margin:0 0 8px;color:#6d28d9}.shop-voucher-current{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.shop-voucher-current em{font-style:normal;color:#166534;font-weight:600}.shop-voucher-current button,.shop-voucher-input-row button{border:0;border-radius:8px;background:#6d28d9;color:#fff;padding:8px 10px;font-weight:600;cursor:pointer}.shop-voucher-input-row{display:grid;grid-template-columns:minmax(180px,1fr) 110px 110px;gap:8px;align-items:center}.shop-voucher-input-row a{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:#fff;color:#6d28d9;text-decoration:none;border:1px solid #8b5cf6;height:37px;font-weight:600}.shop-cart-total-stack{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.shop-cart-total-stack span:last-of-type,.shop-cart-total-stack b:last-of-type{font-size:19px;color:#6d28d9}.shop-voucher-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5;border-radius:8px;padding:8px}.shop-voucher-link{display:inline-block;margin-top:10px;color:#6d28d9;font-weight:600;text-decoration:none}
@media(max-width:760px){.mshop-bottom-nav{grid-template-columns:repeat(5,1fr)}.shop-voucher-hero{border-radius:0;margin:0;border-left:0;border-right:0}.shop-voucher-hero{display:block}.shop-voucher-hero a{margin-top:10px}.shop-voucher-grid{display:block}.shop-voucher-card{margin:8px;border-radius:8px}.shop-voucher-ticket{grid-template-columns:88px 1fr 64px;min-height:112px}.shop-voucher-left b{font-size:18px}.shop-voucher-main{padding:9px}.shop-voucher-main h2{font-size:14px}.shop-voucher-main p{display:none}.shop-voucher-cond span{font-size:11px}.shop-voucher-apply{padding:6px}.shop-voucher-apply button{padding:8px 9px}.shop-voucher-input-row{grid-template-columns:1fr 86px;gap:6px}.shop-voucher-input-row a{grid-column:1/-1}.shop-voucher-current{display:block}.shop-voucher-current button{margin-top:8px}.shop-cart-total-stack{padding:12px;background:#fff}.voucher-checks{display:block}.voucher-checks label{margin:7px 0}.voucher-table{min-width:1000px}}

/* Giỏ hàng mobile phong cách Shopee */
.mcart-page{max-width:980px;margin:0 auto}.mcart-topbar{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;margin-bottom:12px}.mcart-topbar h1{margin:0;font-size:22px}.mcart-back{color:#6d28d9;text-decoration:none;font-size:36px;line-height:1}.mcart-text-btn,.mcart-shop-head button{border:0;background:transparent;color:#555;font-size:15px;cursor:pointer}.mcart-shop-card,.mcart-platform-voucher,.mcart-row-link,.mcart-ship-row,.mcart-coin-row{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:10px}.mcart-shop-head{display:grid;grid-template-columns:28px 24px auto 22px 48px;gap:6px;align-items:center;padding:12px 14px;border-bottom:1px solid #eee}.mcart-shop-head strong{font-size:16px;color:#111827}.mcart-shop-icon{font-size:18px;color:#444}.mcart-chevron,.mcart-arrow{font-size:28px;line-height:1;color:#555}.mcart-item{display:grid;grid-template-columns:28px 96px minmax(0,1fr);gap:12px;padding:14px;border-bottom:1px solid #eee}.mcart-item:last-child{border-bottom:0}.mcart-thumb img{display:block;width:96px;height:96px;object-fit:cover;background:#f8fafc;border:1px solid #eee}.mcart-name{display:block;color:#111827;text-decoration:none;font-size:15px;line-height:1.35;min-height:40px;max-height:41px;overflow:hidden}.mcart-voucher-mini{display:inline-block;margin:6px 0 8px;background:#fff200;color:#6d28d9;font-size:9px;font-weight:600;padding:2px 5px;line-height:1}.mcart-price{color:#6d28d9;font-size:18px;margin-bottom:8px}.mcart-qty-row{display:inline-grid;grid-template-columns:36px 58px 36px;border:1px solid #e5e5e5;border-radius:3px;overflow:hidden}.mcart-qty-btn{height:34px;border:0;background:#fff;font-size:21px;color:#555;cursor:pointer}.mcart-qty-input{height:34px;border:0;border-left:1px solid #e5e5e5;border-right:1px solid #e5e5e5;text-align:center;border-radius:0;padding:0}.mcart-check-wrap{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:400;cursor:pointer}.mcart-check-wrap input{position:absolute;opacity:0;pointer-events:none}.mcart-check-wrap span{width:20px;height:20px;border:1px solid #d8d8d8;background:#fff;border-radius:2px;display:inline-flex;align-items:center;justify-content:center}.mcart-check-wrap input:checked+span{background:#6d28d9;border-color:#6d28d9}.mcart-check-wrap input:checked+span:after{content:"✓";color:#fff;font-weight:600;font-size:14px}.mcart-row-link{display:grid;grid-template-columns:28px 1fr 22px;align-items:center;padding:13px 14px;text-decoration:none;color:#111827}.mcart-ticket-icon{color:#6d28d9;font-size:21px}.mcart-row-link b,.mcart-ship-row b,.mcart-platform-title b{font-size:16px;font-weight:500}.mcart-ship-row{display:flex;align-items:center;gap:12px;padding:13px 14px}.mcart-truck{color:#00bfa5;font-size:22px}.mcart-platform-voucher{padding:0}.mcart-platform-title{display:grid;grid-template-columns:28px auto 1fr;gap:6px;align-items:center;padding:13px 14px;border-bottom:1px solid #eee}.mcart-platform-title a{text-align:right;color:#777;text-decoration:none;font-size:15px}.mcart-voucher-current{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:#f5f3ff;border-bottom:1px solid #ddd6fe}.mcart-voucher-current small{display:block;color:#166534;margin-top:2px}.mcart-voucher-current button,.mcart-voucher-input-row button{border:0;background:#6d28d9;color:#fff;border-radius:6px;padding:8px 10px;font-weight:600}.mcart-voucher-input-row{display:grid;grid-template-columns:1fr 96px;gap:8px;padding:10px 14px}.mcart-voucher-input-row input{height:38px}.mcart-coin-row{display:grid;grid-template-columns:28px auto 18px 58px;align-items:center;gap:8px;padding:12px 14px}.mcart-coin{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;border:1px solid #8b5cf6;color:#8b5cf6;font-weight:600}.mcart-coin-row small{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:1px solid #999;color:#777}.mcart-switch input{display:none}.mcart-switch span{display:block;width:52px;height:30px;background:#e6e6e6;border-radius:999px;position:relative}.mcart-switch span:before{content:"";position:absolute;width:26px;height:26px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22)}.mcart-desktop-actions{display:flex;gap:8px;align-items:center;margin:12px 0}.mcart-desktop-actions a,.mcart-desktop-actions button{border:0;border-radius:8px;padding:10px 14px;background:#2563eb;color:#fff;text-decoration:none;font-weight:600;cursor:pointer}.mcart-desktop-actions .shop-secondary{background:#6b7280}.mcart-desktop-actions .danger{background:#dc2626}.mcart-bottom-bar{position:sticky;bottom:0;z-index:35;display:grid;grid-template-columns:160px 1fr 150px;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px}.mcart-select-all em{font-style:normal}.mcart-total-box{text-align:right;font-size:16px}.mcart-total-box b{color:#6d28d9;font-size:20px}.mcart-checkout-btn{height:44px;border:0;border-radius:8px;background:#6d28d9;color:#fff;font-weight:600;font-size:16px;cursor:pointer}.mcart-checkout-btn.is-disabled{opacity:.55}.mcart-empty{border-radius:12px;background:#fff;margin:10px 0}.mcart-item.is-selected{background:#fff}
@media(max-width:760px){body.mcart-body{background:#f4f4f4;padding-bottom:66px}body.mcart-body .shop-top,body.mcart-body .mshop-bottom-nav,body.mcart-body .shop-footer{display:none}.mcart-page{max-width:none;margin:0;background:#f4f4f4;min-height:100vh}.mcart-topbar{position:sticky;top:0;z-index:46;height:58px;border:0;border-radius:0;border-bottom:1px solid #eee;margin:0;padding:0 14px;background:#fff}.mcart-topbar h1{font-size:20px;font-weight:400}.mcart-back{font-size:34px;color:#6d28d9;margin-top:-2px}.mcart-text-btn{font-size:18px;color:#222}.mcart-shop-card,.mcart-platform-voucher,.mcart-row-link,.mcart-ship-row,.mcart-coin-row{border:0;border-radius:0;margin:0 0 8px}.mcart-shop-head{grid-template-columns:26px 22px minmax(0,1fr) 18px 42px;padding:12px 16px;background:#fff}.mcart-shop-head strong{font-size:18px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mcart-shop-head button{font-size:18px;color:#666}.mcart-item{grid-template-columns:28px 76px minmax(0,1fr);gap:10px;padding:14px 16px 15px;background:#fff}.mcart-thumb img{width:76px;height:102px;border:0}.mcart-name{font-size:16px;line-height:1.35;min-height:auto;max-height:44px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mcart-voucher-mini{font-size:8px;margin:6px 0 8px}.mcart-price{font-size:17px}.mcart-qty-row{grid-template-columns:34px 58px 34px}.mcart-qty-btn,.mcart-qty-input{height:38px}.mcart-check-wrap span{width:20px;height:20px}.mcart-row-link{grid-template-columns:28px 1fr 24px;padding:14px 18px}.mcart-row-link b,.mcart-ship-row b,.mcart-platform-title b{font-size:18px}.mcart-ship-row{padding:14px 18px}.mcart-platform-title{grid-template-columns:28px auto 1fr;padding:15px 18px}.mcart-platform-title a{font-size:17px;color:#777}.mcart-voucher-input-row{display:none}.mcart-voucher-current{padding:10px 18px}.mcart-coin-row{grid-template-columns:28px auto 18px 60px;padding:13px 18px}.mcart-coin-row b{font-size:18px;font-weight:400}.mcart-desktop-actions{display:none}.mcart-bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;border:0;border-top:1px solid #e6e6e6;border-radius:0;grid-template-columns:128px 1fr 116px;gap:6px;padding:10px 14px;padding-bottom:max(10px,env(safe-area-inset-bottom));min-height:64px}.mcart-select-all em{font-size:16px;color:#222}.mcart-total-box{font-size:18px;color:#222;white-space:nowrap}.mcart-total-box b{font-size:18px}.mcart-checkout-btn{height:43px;border-radius:4px;font-size:17px}.mcart-empty{margin:8px 0;border-radius:0;background:#fff}.mcart-form{padding-bottom:72px}}
@media(max-width:380px){.mcart-bottom-bar{grid-template-columns:114px 1fr 104px;padding-left:10px;padding-right:10px}.mcart-total-box,.mcart-total-box b{font-size:16px}.mcart-select-all em{font-size:14px}.mcart-checkout-btn{font-size:15px}.mcart-name{font-size:15px}.mcart-platform-title a{font-size:14px}}

/* Product detail Shopee-like layout + admin relation chips */
.product-relations-admin textarea{min-height:96px;font-family:inherit}.relation-search-row{position:relative;margin-top:8px}.relation-search-row input{width:100%}.relation-suggest-box{left:0;right:0;top:100%;z-index:30}.product-relation-preview{border:1px dashed #d1d5db;background:#f8fafc;border-radius:10px;padding:10px;margin:10px 0}.product-relation-preview>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.product-relation-preview span{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:5px 8px;font-size:12px}.product-relation-preview img{width:24px;height:24px;object-fit:cover;border-radius:50%;background:#f1f5f9}
.spage-wrap{max-width:1180px;margin:18px auto;padding:0 12px;color:#222}.spage-breadcrumb{font-size:13px;color:#777;margin:0 0 12px}.spage-breadcrumb a{color:#555;text-decoration:none}.spage-breadcrumb span{margin:0 6px;color:#aaa}.spage-main-card{display:grid;grid-template-columns:450px minmax(0,1fr);gap:24px;background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:20px;box-shadow:0 1px 2px rgba(0,0,0,.03)}.spage-gallery{min-width:0}.spage-main-image{border:1px solid #f0f0f0;background:#fafafa;height:450px;display:flex;align-items:center;justify-content:center;overflow:hidden}.spage-main-image img{width:100%;height:100%;object-fit:contain}.spage-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.spage-thumb{height:74px;border:1px solid #e5e7eb;background:#fff;padding:2px;cursor:pointer;border-radius:2px}.spage-thumb.active,.spage-thumb:hover{border-color:#6d28d9}.spage-thumb img{width:100%;height:100%;object-fit:cover}.spage-info h1{font-size:22px;line-height:1.35;margin:0;font-weight:500;color:#111}.spage-title-row{position:relative}.spage-badge-hot{display:inline-block;background:#6d28d9;color:#fff;border-radius:2px;padding:3px 6px;font-size:12px;font-weight:600;margin:0 6px 5px 0}.spage-meta{color:#666;font-size:13px;margin:10px 0 14px}.spage-price-box{background:#fafafa;padding:16px 18px;margin:0 0 16px}.spage-price-box span{font-size:30px;color:#6d28d9;font-weight:500}.spage-line{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:12px;margin:10px 0;color:#555}.spage-line span,.spage-label{color:#757575}.spage-line b{color:#222}.spage-line a{color:#2563eb;text-decoration:none}.spage-voucher-strip{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:12px;margin:12px 0;padding:9px 0}.spage-voucher-strip span{color:#757575}.spage-voucher-strip a{display:inline-block;color:#6d28d9;text-decoration:none;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:2px;padding:5px 8px;font-size:13px;justify-self:start}.spage-variants{display:grid;grid-template-columns:96px 1fr;gap:12px;margin:14px 0}.spage-variant-list{display:flex;gap:8px;flex-wrap:wrap}.spage-variant{display:inline-flex;align-items:center;gap:6px;min-height:42px;border:1px solid #d5d5d5;background:#fff;color:#222;text-decoration:none;border-radius:2px;padding:6px 10px;max-width:235px;line-height:1.25}.spage-variant img{width:30px;height:30px;object-fit:cover;background:#f8fafc}.spage-variant.active,.spage-variant:hover{border-color:#6d28d9;color:#6d28d9}.spage-buy-form{display:grid;grid-template-columns:96px 138px 170px 130px;gap:10px;align-items:center;margin:22px 0}.spage-buy-form label{color:#757575}.spage-qty{display:grid;grid-template-columns:36px 62px 36px;height:38px}.spage-qty button,.spage-qty input{border:1px solid #ddd;background:#fff;text-align:center}.spage-qty button{cursor:pointer;font-size:18px;color:#555}.spage-qty input{border-left:0;border-right:0}.spage-cart-btn,.spage-buy-btn{height:44px;border-radius:2px;font-weight:500;cursor:pointer}.spage-cart-btn{border:1px solid #6d28d9;background:#f5f3ff;color:#6d28d9}.spage-buy-btn{border:1px solid #6d28d9;background:#6d28d9;color:#fff}.spage-toast{display:none;margin:-10px 0 12px 96px;padding:10px 12px;border-radius:6px;font-weight:600;font-size:13px}.spage-toast.show{display:block}.spage-toast.ok{background:#dcfce7;border:1px solid #86efac;color:#166534}.spage-toast.err{background:#fee2e2;border:1px solid #fca5a5;color:#991b1b}.spage-cart-btn:disabled{opacity:.72;cursor:wait}
.spage-actions-line{display:flex;align-items:center;gap:12px;border-top:1px solid #f0f0f0;margin-top:18px;padding-top:14px;color:#666;font-size:13px}.spage-actions-line form{margin:0}.spage-fav-btn{border:1px solid #d1d5db;background:#f3f4f6;color:#374151;border-radius:999px;padding:8px 12px;font-weight:600;cursor:pointer}.spage-fav-btn.is-favorited{background:#6d28d9;border-color:#6d28d9;color:#fff}.spage-desc-card,.spage-recommend-section{background:#fff;border:1px solid #e5e7eb;margin-top:14px;padding:18px;border-radius:4px}.spage-desc-card h2{font-size:18px;margin:0 0 12px;background:#f5f5f5;padding:12px;color:#333}.spage-specs{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 24px;margin:0 0 20px}.spage-specs div{display:grid;grid-template-columns:130px 1fr;gap:12px;color:#777}.spage-specs b{color:#222;font-weight:500}.spage-desc-text{line-height:1.75;white-space:normal}.spage-section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:12px}.spage-section-head h2{margin:0;font-size:20px;color:#6d28d9;text-transform:uppercase}.spage-section-head span{color:#888;font-size:13px;text-align:right}.spage-rec-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.spage-rec-card{border:1px solid #eee;background:#fff;min-width:0;padding-bottom:10px}.spage-rec-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.12);transform:translateY(-1px)}.spage-rec-img{display:block;aspect-ratio:1/1;background:#fafafa;border-bottom:1px solid #f0f0f0}.spage-rec-img img{width:100%;height:100%;object-fit:cover}.spage-rec-name{display:block;color:#222;text-decoration:none;font-size:13px;line-height:1.35;min-height:36px;padding:8px 8px 0}.spage-rec-card b{display:block;color:#6d28d9;font-size:16px;padding:6px 8px 0}.spage-rec-card small{display:block;color:#777;padding:4px 8px 0}
@media(max-width:900px){.spage-main-card{grid-template-columns:1fr}.spage-main-image{height:auto;aspect-ratio:1/1}.spage-rec-grid{grid-template-columns:repeat(3,1fr)}.spage-buy-form{grid-template-columns:86px 1fr;}.spage-cart-btn,.spage-buy-btn{grid-column:auto}.spage-specs{grid-template-columns:1fr}.spage-variants,.spage-voucher-strip,.spage-line{grid-template-columns:86px 1fr}}
@media(max-width:760px){.spage-wrap{margin:0;padding:0 0 62px;background:#f4f4f4}.spage-breadcrumb{display:none}.spage-main-card{border:0;border-radius:0;padding:0;gap:0;background:#f4f4f4}.spage-gallery,.spage-info,.spage-desc-card,.spage-recommend-section{background:#fff}.spage-main-image{border:0}.spage-thumbs{display:flex;overflow-x:auto;padding:8px;gap:6px;margin:0}.spage-thumb{min-width:58px;height:58px}.spage-info{padding:12px}.spage-info h1{font-size:18px}.spage-price-box{margin-left:-12px;margin-right:-12px}.spage-price-box span{font-size:25px}.spage-buy-form{position:fixed;left:0;right:0;bottom:0;z-index:70;display:grid;grid-template-columns:94px 1fr 1fr;gap:0;margin:0;background:#fff;border-top:1px solid #e5e7eb;padding:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.spage-buy-form label{display:none}.spage-qty{height:42px}.spage-cart-btn,.spage-buy-btn{height:42px;margin-left:6px}.spage-actions-line{display:block}.spage-actions-line span{display:block;margin-top:8px}.spage-variant{max-width:100%;font-size:13px}.spage-desc-card,.spage-recommend-section{border-left:0;border-right:0;border-radius:0;margin-top:8px;padding:12px}.spage-rec-grid{grid-template-columns:repeat(2,1fr);gap:6px}.spage-section-head h2{font-size:16px}.spage-section-head span{display:none}.spage-specs div{grid-template-columns:100px 1fr}}

/* Product detail variant chooser: stay on current page, update selected product by JS */
.spage-variant-list button.spage-variant{font:inherit;cursor:pointer;text-align:left}
.spage-variant-hint{grid-column:2;color:#888;font-size:12px;margin-top:4px;line-height:1.35}
@media(max-width:760px){.spage-variant-hint{grid-column:1 / -1;font-size:12px;margin-top:-4px}.spage-variant-list button.spage-variant{flex:1 1 calc(50% - 6px)}}

@media(max-width:760px){.spage-toast{position:fixed;left:12px;right:12px;bottom:62px;z-index:90;margin:0;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.14)}}

.spage-admin-variants{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;margin:14px 0}.spage-admin-variant-toggle{grid-column:2;justify-self:start;border:1px dashed #2563eb;background:#eff6ff;color:#1d4ed8;border-radius:4px;padding:8px 12px;font-weight:600;cursor:pointer}.spage-admin-variant-toggle.active{background:#dbeafe;border-style:solid}.spage-admin-variant-panel{grid-column:2;border:1px solid #dbeafe;background:#f8fbff;border-radius:6px;padding:12px}.spage-admin-variant-search{position:relative}.spage-admin-variant-search input{width:100%;background:#fff}.spage-variant-suggest-box{top:calc(100% + 6px);z-index:120}.spage-admin-variant-note{margin:8px 0 10px;color:#64748b;font-size:12px}.spage-admin-variant-current{display:grid;gap:8px}.spage-admin-variant-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:8px}.spage-admin-variant-item img{width:42px;height:42px;object-fit:cover;border:1px solid #e5e7eb;background:#f8fafc;border-radius:4px}.spage-admin-variant-item b{display:block;color:#111827;font-size:13px;line-height:1.3}.spage-admin-variant-item small{display:block;color:#64748b;margin-top:2px}.spage-admin-variant-item form{margin:0}.spage-admin-variant-item button{border:0;background:#fee2e2;color:#991b1b;border-radius:4px;padding:7px 9px;font-weight:600;cursor:pointer}.spage-admin-variant-empty{background:#fff;border:1px dashed #cbd5e1;color:#64748b;border-radius:6px;padding:10px;font-size:13px}@media(max-width:900px){.spage-admin-variants{grid-template-columns:86px minmax(0,1fr)}}@media(max-width:760px){.spage-admin-variants{grid-template-columns:1fr}.spage-admin-variant-toggle,.spage-admin-variant-panel{grid-column:1}.spage-admin-variant-item{grid-template-columns:38px minmax(0,1fr) auto}.spage-admin-variant-item img{width:38px;height:38px}}
.shop-oauth-row{margin:12px 0}.shop-google-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;border:1px solid #d1d5db;background:#fff;color:#111827;text-decoration:none;border-radius:4px;font-weight:600}.shop-google-btn:hover{border-color:#9ca3af;background:#f9fafb}.shop-google-btn span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#7c3aed;border:1px solid #e5e7eb;font-weight:600;font-family:Arial,sans-serif}.shop-auth-divider{display:flex;align-items:center;gap:10px;color:#6b7280;font-size:12px;margin:10px 0}.shop-auth-divider:before,.shop-auth-divider:after{content:"";height:1px;background:#e5e7eb;flex:1}.shop-auth-divider span{white-space:nowrap}@media(max-width:520px){.shop-auth-divider span{white-space:normal;text-align:center}.shop-google-btn{min-height:44px}}

/* Admin dashboard overview */
.dashboard-page{margin-bottom:24px}.dashboard-title-row{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.dashboard-breadcrumb{color:#64748b;font-size:13px;margin-bottom:5px}.dashboard-title-row h1{display:flex;align-items:center;gap:8px;margin-bottom:0}.dashboard-new-pill{display:inline-flex;align-items:center;height:22px;border-radius:999px;background:#8b5cf6;color:#fff;font-size:12px;font-weight:600;padding:0 9px}.dashboard-summary-pills{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.dashboard-summary-pills span{display:inline-flex;align-items:center;min-height:30px;border:1px solid #dbeafe;background:#eff6ff;color:#1e3a8a;border-radius:999px;padding:5px 10px;font-weight:600;font-size:12px}.dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.dashboard-main{min-width:0}.dashboard-card{background:#fff;border:1px solid #cfd6df;border-radius:6px;margin-bottom:16px;box-shadow:0 2px 7px rgba(15,23,42,.08);overflow:hidden}.dashboard-card-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;background:#f8fafc;border-bottom:1px solid #d7dde5}.dashboard-card-head h2{margin:0;font-size:19px;color:#0f172a}.dashboard-card-head a{color:#2563eb;text-decoration:none;font-weight:600;font-size:13px}.dashboard-controls{display:flex;align-items:center;gap:10px;margin:0}.dashboard-controls select{height:40px;min-width:150px;border-radius:6px;color:#0f172a}.dashboard-top-controls select{min-width:120px}.dashboard-icon-btn{width:38px;height:38px;border:0;background:transparent;color:#0f172a;font-size:20px;cursor:pointer}.dashboard-chart-wrap{display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px;padding:24px 28px 8px 20px}.dashboard-y-axis{height:260px;display:flex;flex-direction:column;justify-content:space-between;text-align:right;color:#0f172a;font-size:13px;padding-bottom:34px}.dashboard-plot{position:relative;height:260px;min-width:0}.dashboard-grid-lines{position:absolute;left:0;right:0;top:0;bottom:34px;background:linear-gradient(to bottom,#e5e7eb 0,#e5e7eb 1px,transparent 1px,transparent 33.333%,#e5e7eb 33.333%,#e5e7eb calc(33.333% + 1px),transparent calc(33.333% + 1px),transparent 66.666%,#e5e7eb 66.666%,#e5e7eb calc(66.666% + 1px),transparent calc(66.666% + 1px),transparent calc(100% - 1px),#111827 calc(100% - 1px),#111827 100%)}.dashboard-bars{position:absolute;left:0;right:0;top:0;bottom:34px;display:grid;grid-template-columns:repeat(var(--dash-cols),minmax(22px,1fr));align-items:end}.dashboard-bar-cell{height:100%;display:flex;align-items:flex-end;justify-content:center;padding:0 4px}.dashboard-bar{display:block;width:min(34px,72%);border-radius:3px 3px 0 0;background:#f7d001;box-shadow:inset 0 -1px 0 rgba(0,0,0,.08);min-height:0;transition:.15s}.dashboard-bar:hover{filter:brightness(.95);transform:translateY(-1px)}.dashboard-x-axis{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(var(--dash-cols),minmax(22px,1fr));gap:0;color:#0f172a;font-size:13px;text-align:center}.dashboard-x-axis span{white-space:nowrap}.dashboard-legend{display:flex;align-items:center;justify-content:center;gap:7px;padding:4px 0 20px;color:#0f172a}.dashboard-legend i{width:12px;height:12px;border-radius:50%;background:#f7d001}.dashboard-table-wrap{overflow:auto}.dashboard-table{min-width:720px;border-collapse:collapse;width:100%}.dashboard-table th,.dashboard-table td{padding:10px 20px;border-bottom:1px solid #d7dde5}.dashboard-table th{background:#f8fafc;color:#0f172a}.dashboard-table td small{display:block;color:#64748b;margin-top:3px}.dashboard-empty{text-align:center;color:#64748b;padding:18px!important}.text-center{text-align:center}.text-end{text-align:right}.fw-semibold{font-weight:600}.dashboard-stock-grid{display:grid;grid-template-columns:repeat(3,1fr)}.dashboard-stock-item{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;gap:3px 14px;align-items:center;text-decoration:none;color:#0f172a;padding:18px 24px;border-right:1px dotted #cbd5e1}.dashboard-stock-item:last-child{border-right:0}.dashboard-stock-item:hover{background:#f8fafc}.dashboard-stock-icon{grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;font-style:normal;font-weight:600;border:2px solid currentColor}.dashboard-stock-icon.teal{color:#14a3a6}.dashboard-stock-icon.green{color:#16a34a}.dashboard-stock-icon.blue{color:#0c83ff}.dashboard-stock-item span{color:#334155}.dashboard-stock-item b{font-size:18px}.dashboard-side{position:sticky;top:72px}.dashboard-empty-box{padding:18px;text-align:center;color:#64748b}.dashboard-order-list,.dashboard-low-list,.dashboard-notices{display:grid}.dashboard-order-item,.dashboard-low-item,.dashboard-notice{display:grid;gap:5px;text-decoration:none;color:#0f172a;padding:12px 16px;border-bottom:1px solid #eef2f7}.dashboard-order-item:hover,.dashboard-low-item:hover,.dashboard-notice:hover{background:#f8fafc}.dashboard-order-item{grid-template-columns:1fr auto;align-items:start}.dashboard-order-item span,.dashboard-low-item span{min-width:0}.dashboard-order-item b,.dashboard-low-item b,.dashboard-notice b{display:block;color:#0f172a}.dashboard-order-item small,.dashboard-low-item small,.dashboard-notice span{display:block;color:#64748b;font-size:12px;margin-top:3px}.dashboard-order-item em{border-radius:999px;background:#dbeafe;color:#1d4ed8;padding:4px 8px;font-style:normal;font-size:12px;font-weight:600}.dashboard-order-item strong{grid-column:1/-1;color:#ef4444}.dashboard-notice{border-left:4px solid #38bdf8}.dashboard-notice.info{background:#f0f9ff}.dashboard-notice.ok{border-left-color:#22c55e;background:#f0fdf4}.dashboard-notice.warn{border-left-color:#f59e0b;background:#fffbeb}.dashboard-notice.danger{border-left-color:#ef4444;background:#fef2f2}.dashboard-low-item{grid-template-columns:1fr auto;align-items:center}.dashboard-low-item em{font-style:normal;font-weight:600;color:#ef4444;white-space:nowrap}.dashboard-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px}.dashboard-action-grid .btn{text-align:center}
@media(max-width:1120px){.dashboard-layout{grid-template-columns:1fr}.dashboard-side{position:static;display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.dashboard-side .dashboard-card{margin-bottom:0}.dashboard-actions-card{grid-column:1/-1}}
@media(max-width:800px){.dashboard-title-row{display:block}.dashboard-summary-pills{justify-content:flex-start;margin-top:10px}.dashboard-card-head{display:block;padding:14px}.dashboard-controls{margin-top:10px}.dashboard-controls select{min-width:0;flex:1}.dashboard-chart-wrap{grid-template-columns:44px minmax(520px,1fr);overflow-x:auto;padding:18px 14px 6px}.dashboard-table-wrap{overflow-x:auto}.dashboard-stock-grid,.dashboard-side{grid-template-columns:1fr}.dashboard-stock-item{border-right:0;border-bottom:1px dotted #cbd5e1}.dashboard-stock-item:last-child{border-bottom:0}.dashboard-top-controls{display:grid;grid-template-columns:1fr 1fr}.dashboard-action-grid{grid-template-columns:1fr}}

/* POS-style products page */
.products-pos-page{margin-bottom:26px}.pos-page-titlebar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 14px}.pos-page-titlebar h1{font-size:24px;line-height:1.2;margin:0;color:#111827}.pos-page-titlebar p{margin:6px 0 0;color:#64748b}.pos-breadcrumb{font-size:12px;color:#64748b;margin-bottom:5px}.pos-page-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pos-extension-btn{background:#475569}.pos-form-card{border-radius:6px;border-color:#cfd6df;box-shadow:0 2px 7px rgba(15,23,42,.07);padding:0;overflow:visible}.pos-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#f8fafc;border-bottom:1px solid #d7dde5}.pos-card-head h2{margin:0;font-size:18px;color:#0f172a}.pos-card-head p{margin:4px 0 0;font-size:12px}.pos-card-badge{display:inline-flex;align-items:center;height:24px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-weight:600;font-size:12px;padding:0 9px;white-space:nowrap}.pos-product-form-grid{padding:16px}.pos-form-actions{padding:0 16px 16px}.product-form-toggle-title{cursor:pointer;display:inline-flex;align-items:center;gap:8px}.product-form-toggle-title:after{content:"▾";display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#e5e7eb;color:#334155;font-size:12px}.product-form-toggle-title[aria-expanded="false"]:after{content:"▸"}.products-pos-shell{background:#fff;border:1px solid #cfd6df;border-radius:6px;box-shadow:0 2px 7px rgba(15,23,42,.07);overflow:visible}.pos-tabs-row{display:flex;gap:0;overflow:auto;background:#fff;border-bottom:1px solid #d7dde5;padding:0 12px}.pos-tabs-row a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;text-decoration:none;color:#334155;font-weight:600;border-bottom:3px solid transparent;white-space:nowrap}.pos-tabs-row a.active{color:#0c83ff;border-bottom-color:#0c83ff;background:#f8fbff}.pos-filter-panel{background:#f3f6fa;padding:14px 16px;border-bottom:1px solid #d7dde5}.pos-searchbar{margin:0 0 12px;align-items:center;flex-wrap:wrap}.pos-search-wrap{min-width:280px;max-width:560px}.pos-search-wrap input{height:38px;border-radius:5px;border-color:#cbd5e1;padding-left:36px;box-shadow:0 1px 2px rgba(15,23,42,.05)}.pos-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:1;color:#64748b;font-size:18px;line-height:1}.pos-grid-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.pos-action-left,.pos-action-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn-sm-like{padding:7px 12px;border-radius:4px}.pos-action-menu{position:relative}.pos-action-menu summary{list-style:none;cursor:pointer;border:1px solid #d1d5db;background:#fff;color:#111827;border-radius:4px;padding:7px 12px;font-weight:600}.pos-action-menu summary::-webkit-details-marker{display:none}.pos-action-menu[open] summary{background:#f8fafc}.pos-action-menu div{position:absolute;left:0;top:calc(100% + 5px);min-width:180px;background:#fff;border:1px solid #d1d5db;border-radius:6px;box-shadow:0 12px 30px rgba(15,23,42,.18);z-index:40;overflow:hidden}.pos-action-menu a{display:block;padding:9px 12px;text-decoration:none;color:#111827;white-space:nowrap}.pos-action-menu a:hover{background:#eff6ff}.pos-status-note{color:#64748b;font-size:12px}.pos-range{font-weight:600;color:#334155;white-space:nowrap}.pos-mini-pager{display:inline-flex;align-items:center;gap:2px}.pos-mini-pager a,.pos-mini-pager span{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:4px;text-decoration:none;color:#111827;border:1px solid transparent;background:#fff}.pos-mini-pager a:hover{border-color:#bfdbfe;color:#0c83ff}.pos-mini-pager a.disabled{opacity:.35;pointer-events:none}.pos-mini-pager span{font-weight:600;color:#64748b;background:transparent}.pos-columns-btn{width:34px;height:32px;border:1px solid #d1d5db;border-radius:4px;background:#fff;color:#334155;font-size:18px;cursor:pointer}.pos-table-wrap{border:0;border-radius:0;max-height:none}.products-pos-page .product-list-table{border-collapse:separate;border-spacing:0;min-width:1180px;font-size:13px}.products-pos-page .product-list-table th,.products-pos-page .product-list-table td{border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:8px 10px;vertical-align:middle}.products-pos-page .product-list-table th:first-child,.products-pos-page .product-list-table td:first-child{border-left:0}.products-pos-page .product-list-table th{position:sticky;top:0;z-index:4;background:#f8fafc;color:#1f2937;font-weight:600;white-space:nowrap;box-shadow:0 1px 0 #d7dde5}.products-pos-page .product-list-table tbody tr:hover td{background:#f6fbff}.pos-check-col{width:38px;text-align:center}.pos-check-col input{width:auto}.products-pos-page .thumb{width:42px;height:42px;border-radius:4px}.products-pos-page .thumb:hover{transform:none}.pos-no-image{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;background:#f1f5f9;border:1px dashed #cbd5e1;border-radius:4px;color:#94a3b8;font-size:10px;text-align:center}.pos-code-cell{font-family:Consolas,monospace;color:#334155}.pos-name-cell{min-width:240px}.pos-name-cell b{display:block;color:#0f172a;line-height:1.35}.pos-name-cell small{display:block;color:#64748b;margin-top:3px;line-height:1.35}.pos-stock-cell{font-weight:600;color:#0f766e}.pos-price-cell{font-weight:600;color:#dc2626}.pos-row-actions{min-width:252px}.pos-row-actions .btn{margin:2px 1px;border-radius:4px}.pos-sort{color:#94a3b8;font-size:11px}.pos-empty-cell{text-align:center!important;padding:28px!important;color:#64748b;background:#fff!important}.pos-bottom-pager{display:flex;gap:4px;align-items:center;justify-content:flex-end;padding:12px 16px;margin:0;background:#fff}.pos-bottom-pager span{color:#64748b;padding:0 5px}.products-pos-page .shop-visible-switch.compact{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:600;white-space:nowrap}.products-pos-page .shop-visible-switch input[type="checkbox"]{width:auto}.products-pos-page .shop-visible-switch.compact span{display:inline-flex;align-items:center;min-height:22px;border-radius:999px;background:#fee2e2;color:#991b1b;padding:2px 8px}.products-pos-page .shop-visible-switch.compact input:checked+span{background:#dcfce7;color:#166534}.products-pos-page .product-suggest-box{border-radius:6px}.products-pos-page .product-suggest-item{grid-template-columns:42px 1fr}.products-pos-page .product-suggest-item img,.products-pos-page .product-suggest-noimg{width:42px;height:42px;border-radius:4px}.products-pos-page .product-extra-gallery,.products-pos-page .product-relation-preview{margin:0 16px 16px}.product-image-inline-row td{padding:0!important;background:#fff!important}.product-image-inline-row .product-image-modal{position:static;display:block;background:#f8fafc;padding:12px;border:0}.product-image-inline-row .product-image-dialog{width:100%;max-width:none;box-shadow:none;border:1px solid #d7dde5;border-radius:6px}.product-image-inline-row .product-image-close{display:none}
@media(max-width:900px){.pos-page-titlebar{display:block}.pos-page-actions{justify-content:flex-start;margin-top:10px}.pos-grid-actions{display:block}.pos-action-right{margin-top:10px;justify-content:flex-start}.pos-search-wrap{min-width:100%;max-width:none}.pos-tabs-row{padding:0 6px}.pos-filter-panel{padding:12px}.products-pos-page .product-list-table{min-width:1080px}.pos-card-head{align-items:flex-start}.pos-product-form-grid{padding:12px}.pos-form-actions{padding:0 12px 12px}}

/* Products page refinements: hidden add form, compact row action gear, restored hover preview */
.product-admin-form-card[hidden]{display:none!important}
.pos-card-tools{display:inline-flex;align-items:center;gap:8px;margin-left:auto}
.pos-form-close{width:30px;height:30px;border:0;border-radius:50%;background:#fee2e2;color:#991b1b;font-size:22px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:600}
.pos-form-close:hover{background:#fecaca;color:#7f1d1d}
.products-pos-page .pos-row-actions{min-width:54px;width:54px;text-align:center;position:relative;overflow:visible}
.pos-row-action-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}
.pos-row-gear{width:34px;height:34px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:17px;line-height:1;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.pos-row-gear:hover,.pos-row-action-wrap.is-open .pos-row-gear{background:#eff6ff;border-color:#93c5fd;color:#0c83ff}
.pos-row-action-menu[hidden]{display:none!important}
.pos-row-action-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:120;min-width:152px;padding:8px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 18px 42px rgba(15,23,42,.22);display:grid;gap:6px;text-align:left}
.pos-row-action-menu:before{content:"";position:absolute;right:12px;top:-7px;width:12px;height:12px;background:#fff;border-left:1px solid #cbd5e1;border-top:1px solid #cbd5e1;transform:rotate(45deg)}
.products-pos-page .pos-row-action-menu .btn{width:100%;margin:0;text-align:left;border-radius:7px;padding:7px 10px;line-height:1.25;white-space:nowrap;border:0;font-size:12px}
.products-pos-page .pos-row-action-menu button.btn{font-family:inherit;cursor:pointer}
.products-pos-page .product-list-table tbody tr:has(.pos-row-action-wrap.is-open) td{background:#f8fbff}
.products-pos-page .thumb.product-preview-thumb{display:block;cursor:zoom-in;background:#f8fafc;object-fit:cover}
.product-image-preview[hidden]{display:none!important}
.product-image-preview{position:fixed;z-index:99999;width:320px;height:320px;padding:8px;border-radius:12px;background:#fff;border:1px solid #d1d5db;box-shadow:0 24px 70px rgba(15,23,42,.32);pointer-events:none}
.product-image-preview img{width:100%;height:100%;object-fit:contain;border-radius:8px;background:#f8fafc}
@media(max-width:900px){.pos-card-tools{align-self:flex-end}.pos-row-action-menu{right:auto;left:0}}

/* Products table: keep image and product name visible in the management list */
.products-pos-page .product-list-table .pos-image-col{width:86px;text-align:center}
.products-pos-page .product-list-table td:nth-child(3){text-align:center;min-width:78px}
.products-pos-page .product-list-table .pos-product-name-head{min-width:260px}
.products-pos-page .product-list-table .pos-name-cell{min-width:260px;max-width:380px}
.products-pos-page .product-list-table{min-width:1320px}
.products-pos-page .products-pos-shell .pos-filter-panel{border-top:0}

/* Products v4: compact product table, no hidden-management columns, no horizontal scroll */
.products-pos-page .pos-table-wrap{overflow:visible!important;}
.products-pos-page .product-list-table{width:100%!important;min-width:0!important;table-layout:fixed!important;}
.products-pos-page .product-list-table th,.products-pos-page .product-list-table td{overflow:hidden;text-overflow:ellipsis;}
.products-pos-page .product-list-table th:nth-child(1),.products-pos-page .product-list-table td:nth-child(1){width:40px;}
.products-pos-page .product-list-table th:nth-child(2),.products-pos-page .product-list-table td:nth-child(2){width:58px;text-align:center;}
.products-pos-page .product-list-table th:nth-child(3),.products-pos-page .product-list-table td:nth-child(3){width:82px;text-align:center;}
.products-pos-page .product-list-table th:nth-child(4),.products-pos-page .product-list-table td:nth-child(4){width:110px;}
.products-pos-page .product-list-table th:nth-child(5),.products-pos-page .product-list-table td:nth-child(5){width:auto;}
.products-pos-page .product-list-table th:nth-child(6),.products-pos-page .product-list-table td:nth-child(6){width:88px;}
.products-pos-page .product-list-table th:nth-child(7),.products-pos-page .product-list-table td:nth-child(7){width:105px;}
.products-pos-page .product-list-table th:nth-child(8),.products-pos-page .product-list-table td:nth-child(8){width:105px;}
.products-pos-page .product-list-table th:nth-child(9),.products-pos-page .product-list-table td:nth-child(9){width:76px;text-align:center;overflow:visible;}
.products-pos-page .shop-visible-switch.compact{justify-content:center;width:100%;gap:0;}
.products-pos-page .shop-visible-switch.compact span{display:none!important;}
.products-pos-page .shop-visible-switch input[type="checkbox"]{margin:0;width:16px;height:16px;}
.products-pos-page .pos-name-cell{min-width:0;white-space:normal;}
.products-pos-page .pos-row-actions{min-width:0!important;width:76px;overflow:visible!important;}
.products-pos-page .pos-row-action-wrap{display:inline-flex;justify-content:center;position:relative;}
.products-pos-page .pos-row-action-menu{right:0;left:auto;}
.products-pos-page .products-pos-shell{overflow:visible;}
@media(max-width:900px){.products-pos-page .product-list-table{min-width:0!important;}.products-pos-page .product-list-table th,.products-pos-page .product-list-table td{padding-left:6px;padding-right:6px;}.products-pos-page .product-list-table th:nth-child(3),.products-pos-page .product-list-table td:nth-child(3){width:68px}.products-pos-page .product-list-table th:nth-child(4),.products-pos-page .product-list-table td:nth-child(4){width:88px}.products-pos-page .product-list-table th:nth-child(6),.products-pos-page .product-list-table td:nth-child(6),.products-pos-page .product-list-table th:nth-child(7),.products-pos-page .product-list-table td:nth-child(7),.products-pos-page .product-list-table th:nth-child(8),.products-pos-page .product-list-table td:nth-child(8){width:78px}}

/* Ô tìm kiếm nhà cung cấp trong phiếu nhập */
.purchase-supplier-combo{position:relative;display:flex;align-items:center;gap:8px}.purchase-supplier-combo .supplier-search-input{padding-right:42px}.supplier-clear-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:26px;height:26px;border:0;border-radius:999px;background:#fee2e2;color:#dc2626;font-weight:600;cursor:pointer}.supplier-suggest-results{position:absolute;z-index:80;top:calc(100% + 6px);left:0;right:0;max-height:300px;overflow:auto;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 18px 40px rgba(15,23,42,.16);padding:6px}.supplier-suggest-item{display:block;width:100%;border:0;background:#fff;text-align:left;border-radius:8px;padding:9px 10px;cursor:pointer;color:#111827}.supplier-suggest-item:hover,.supplier-suggest-item.is-active{background:#eff6ff}.supplier-suggest-item b{display:block;font-size:14px}.supplier-suggest-item small{display:block;margin-top:3px;color:#64748b}.supplier-suggest-empty{padding:10px;color:#64748b}.supplier-help{margin-top:5px;font-size:12px}

/* Category manager for shop.php visibility */
.products-pos-page .pos-category-card{margin:0 0 14px;border-radius:6px;border:1px solid #cfd6df;box-shadow:0 2px 7px rgba(15,23,42,.07);overflow:hidden;background:#fff;padding:0}
.products-pos-page .pos-category-card>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:13px 16px;background:#f8fafc;border-bottom:1px solid #d7dde5;font-weight:600;color:#0f172a}
.products-pos-page .pos-category-card>summary::-webkit-details-marker{display:none}
.products-pos-page .pos-category-card>summary:after{content:"▾";display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#e5e7eb;color:#334155;font-size:12px;flex:0 0 auto}
.products-pos-page .pos-category-card:not([open])>summary{border-bottom:0}
.products-pos-page .pos-category-card:not([open])>summary:after{content:"▸"}
.products-pos-page .pos-category-card>summary small{font-weight:500;color:#64748b;margin-left:auto}
.products-pos-page .pos-category-body{padding:14px 16px}
.products-pos-page .pos-category-body p{margin:0 0 12px}
.products-pos-page .pos-category-add-form{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:12px;border:1px solid #dbe3ed;border-radius:8px;background:#f8fafc}
.products-pos-page .pos-category-add-form input[type="text"]{min-width:260px;flex:1}
.products-pos-page .pos-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.products-pos-page .pos-category-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dbe3ed;border-radius:8px;background:#fff;padding:10px 12px;margin:0;min-width:0}
.products-pos-page .pos-category-visible-form{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;min-width:0;margin:0}
.products-pos-page .pos-category-delete-form{margin:0;flex:0 0 auto}
.products-pos-page .pos-category-delete-form .btn{min-width:34px;padding:6px 10px}
.products-pos-page .pos-category-item:hover{background:#f8fbff;border-color:#bfdbfe}
.products-pos-page .pos-category-name{min-width:0}
.products-pos-page .pos-category-name b{display:block;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.products-pos-page .pos-category-name small{display:block;color:#64748b;margin-top:2px}
.products-pos-page .category-visible-switch{flex:0 0 auto;border:1px solid #d1d5db;border-radius:999px;background:#f8fafc;padding:6px 9px;font-size:12px}
.products-pos-page .category-visible-switch input[type="checkbox"]{width:16px;height:16px;margin:0}
.products-pos-page .category-visible-switch span{color:#991b1b;font-weight:600}
.products-pos-page .category-visible-switch input:checked+span{color:#166534}
@media(max-width:900px){.products-pos-page .pos-category-add-form{align-items:stretch;flex-direction:column}.products-pos-page .pos-category-add-form input[type="text"]{min-width:0;width:100%}.products-pos-page .pos-category-grid{grid-template-columns:1fr}.products-pos-page .pos-category-card>summary{align-items:flex-start}.products-pos-page .pos-category-card>summary small{margin-left:0}}
.pos-action-menu .pos-menu-button-link{display:block;width:100%;padding:9px 12px;border:0;background:#fff;text-align:left;text-decoration:none;color:#111827;white-space:nowrap;font:inherit;cursor:pointer}
.pos-action-menu .pos-menu-button-link:hover{background:#eff6ff}


/* Shop theme switcher + Shopee-style alternate theme */
.shop-theme-switcher{position:fixed;right:18px;bottom:18px;z-index:120;font-family:Arial,"Helvetica Neue",sans-serif}.shop-theme-switcher-btn{border:0;border-radius:999px;background:#111827;color:#fff;box-shadow:0 14px 34px rgba(15,23,42,.24);padding:10px 14px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:7px}.shop-theme-switcher-btn b{font-weight:600;color:#ddd6fe}.shop-theme-menu{position:absolute;right:0;bottom:calc(100% + 10px);width:310px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 22px 60px rgba(15,23,42,.24);padding:10px;display:none;color:#0f172a}.shop-theme-switcher.open .shop-theme-menu{display:block}.shop-theme-menu-title{font-size:15px;font-weight:600;padding:6px 6px 10px}.shop-theme-menu form{margin:0 0 8px}.shop-theme-option{width:100%;border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:9px;text-align:left;display:grid;grid-template-columns:58px 1fr;gap:10px;align-items:center;cursor:pointer;color:#111827}.shop-theme-option:hover,.shop-theme-option.active{border-color:#6d28d9;background:#f5f3ff}.shop-theme-option b{display:block;font-size:14px}.shop-theme-option small{display:block;color:#64748b;margin-top:3px;line-height:1.35}.shop-theme-option.active b:after{content:" ✓";color:#16a34a}.shop-theme-menu p{font-size:12px;color:#64748b;line-height:1.45;margin:6px}.shop-theme-preview{height:40px;border-radius:10px;background:#e5e7eb;display:grid;grid-template-rows:12px 1fr;overflow:hidden;border:1px solid #d1d5db}.shop-theme-preview i{display:block;background:#111827}.shop-theme-preview em{display:block;background:linear-gradient(90deg,#f8fafc 0 38%,#fff 38% 100%)}.shop-theme-preview.shop-theme-shopee-new i{background:linear-gradient(90deg,#6d28d9,#a855f7)}.shop-theme-preview.shop-theme-shopee-new em{background:linear-gradient(90deg,#fff 0 24%,#f5f3ff 24% 100%)}

.shop-theme-shopee-new.shop-body{background:#f5f5f5;color:#222}.shop-theme-shopee-new .shop-top{background:linear-gradient(180deg,#7c3aed 0%,#8b5cf6 100%);color:#fff;box-shadow:0 1px 0 rgba(0,0,0,.08)}.shop-theme-shopee-new .shop-top-line{background:transparent;border:0;color:#fff;opacity:.96;justify-content:flex-end;max-width:1200px;margin:0 auto;padding:8px 12px}.shop-theme-shopee-new .shop-top-line b,.shop-theme-shopee-new .shop-top-line span{color:#fff}.shop-theme-shopee-new .shop-main-head{max-width:1200px;grid-template-columns:240px 1fr 150px;padding:17px 12px 18px}.shop-theme-shopee-new .shop-logo{color:#fff;font-size:30px;letter-spacing:.2px}.shop-theme-shopee-new .shop-logo small{color:#ede9fe;opacity:.98}.shop-theme-shopee-new .shop-search{height:42px;background:#fff;border-radius:3px;padding:3px;box-shadow:0 2px 8px rgba(0,0,0,.10)}.shop-theme-shopee-new .shop-search input{border:0;height:36px;border-radius:3px 0 0 3px;box-shadow:none}.shop-theme-shopee-new .shop-search button{height:36px;border-radius:3px;background:#6d28d9;color:#fff;min-width:105px}.shop-theme-shopee-new .shop-cart-btn{background:#fff;color:#6d28d9;border:1px solid rgba(255,255,255,.9);box-shadow:0 2px 8px rgba(0,0,0,.10)}.shop-theme-shopee-new .shop-cart-btn b{background:#6d28d9;color:#fff}.shop-theme-shopee-new .shop-nav{background:rgba(0,0,0,.08);border:0}.shop-theme-shopee-new .shop-nav a{color:#fff;padding:11px 18px;font-weight:500}.shop-theme-shopee-new .shop-nav a:hover{background:rgba(255,255,255,.16)}.shop-theme-shopee-new .shop-wrap{max-width:1200px;margin:18px auto 28px;padding:0 12px}.shop-theme-shopee-new .shop-hero{border:0;border-radius:4px;background:linear-gradient(135deg,#fff 0%,#f5f3ff 55%,#ddd6fe 100%);box-shadow:0 1px 3px rgba(0,0,0,.08);padding:28px 30px}.shop-theme-shopee-new .shop-hero h1{font-weight:500;color:#6d28d9}.shop-theme-shopee-new .shop-hero-btn,.shop-theme-shopee-new .shop-checkout-btn{background:#6d28d9;border-radius:3px}.shop-theme-shopee-new .shop-layout{grid-template-columns:230px minmax(0,1fr);gap:14px}.shop-theme-shopee-new .shop-sidebar{border:0;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.08);overflow:hidden}.shop-theme-shopee-new .shop-sidebar h3{background:#fff;color:#6d28d9;text-transform:uppercase;border-bottom:1px solid #f1f1f1}.shop-theme-shopee-new .shop-cat{border-bottom:1px solid #f5f5f5;color:#333}.shop-theme-shopee-new .shop-cat:hover,.shop-theme-shopee-new .shop-cat.active{background:#f5f3ff;color:#6d28d9}.shop-theme-shopee-new .shop-policy{border-color:#ddd6fe;background:#f5f3ff;color:#5b21b6}.shop-theme-shopee-new .shop-section-head{background:#fff;border:0;border-radius:4px;margin-bottom:10px;padding:13px 16px;box-shadow:0 1px 3px rgba(0,0,0,.08)}.shop-theme-shopee-new .shop-section-head h2{color:#6d28d9;font-weight:500;text-transform:uppercase}.shop-theme-shopee-new .shop-grid-products{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.shop-theme-shopee-new .shop-product-card{border:1px solid #f0f0f0;border-radius:3px;background:#fff;overflow:hidden}.shop-theme-shopee-new .shop-product-card:hover{border-color:#6d28d9;box-shadow:0 3px 12px rgba(0,0,0,.12);transform:translateY(-1px)}.shop-theme-shopee-new .shop-product-img{border-bottom:0;background:#fff}.shop-theme-shopee-new .shop-product-img img{object-fit:cover}.shop-theme-shopee-new .shop-product-body{padding:9px}.shop-theme-shopee-new .shop-product-name{font-weight:400;min-height:38px;color:#222;font-size:13px}.shop-theme-shopee-new .shop-product-name:hover{color:#6d28d9}.shop-theme-shopee-new .shop-product-code{display:none}.shop-theme-shopee-new .shop-product-price{color:#6d28d9;font-size:18px;font-weight:500}.shop-theme-shopee-new .shop-product-stock{font-size:11px;color:#777}.shop-theme-shopee-new .shop-add-form{grid-template-columns:48px 1fr;gap:6px}.shop-theme-shopee-new .shop-add-form button{background:#6d28d9;color:#fff;border-radius:3px}.shop-theme-shopee-new .shop-add-form input{border-radius:3px}.shop-theme-shopee-new .shop-pager{margin-top:14px}.shop-theme-shopee-new .shop-pager a.active{background:#6d28d9;border-color:#6d28d9}.shop-theme-shopee-new .mshop-fav-badge{background:#9ca3af}.shop-theme-shopee-new .mshop-fav-badge.is-favorited{background:#6d28d9}

@media(max-width:1120px){.shop-theme-shopee-new .shop-grid-products{grid-template-columns:repeat(4,minmax(0,1fr))}.shop-theme-shopee-new .shop-main-head{grid-template-columns:210px 1fr 135px}}@media(max-width:900px){.shop-theme-shopee-new .shop-grid-products{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-theme-switcher{right:12px;bottom:70px}.shop-theme-menu{right:-4px;width:min(310px,calc(100vw - 24px))}}
@media(max-width:760px){.shop-theme-shopee-new .shop-top{background:linear-gradient(180deg,#6d28d9 0%,#8b5cf6 100%)}.shop-theme-shopee-new .mshop-header{background:linear-gradient(180deg,#6d28d9 0%,#8b5cf6 100%);grid-template-columns:1fr 40px 40px;padding:10px 10px 11px;padding-top:max(10px,env(safe-area-inset-top))}.shop-theme-shopee-new .mshop-search{border-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.16)}.shop-theme-shopee-new .mshop-search input::placeholder{color:#6d28d9}.shop-theme-shopee-new .mshop-head-icon b{color:#6d28d9;border-color:#6d28d9}.shop-theme-shopee-new .shop-wrap{margin:0;padding:0;background:#f5f5f5}.shop-theme-shopee-new .mshop-home{background:#f5f5f5}.shop-theme-shopee-new .mshop-quick-row{grid-auto-columns:70px;border-bottom:0;margin:0 0 8px;padding-top:12px}.shop-theme-shopee-new .mshop-quick-item span{border-radius:18px;color:#6d28d9;background:#f5f3ff;border-color:#ede9fe}.shop-theme-shopee-new .mshop-section{border:0;margin:8px 0 0}.shop-theme-shopee-new .mshop-section-title h2,.shop-theme-shopee-new .shop-section-head h2{color:#6d28d9}.shop-theme-shopee-new .mshop-scroll-products{grid-auto-columns:42%;gap:8px}.shop-theme-shopee-new .mshop-category-grid{grid-template-columns:repeat(5,1fr);padding-bottom:10px}.shop-theme-shopee-new .mshop-category-item{font-size:12px;min-height:90px}.shop-theme-shopee-new .mshop-category-item span{width:50px;height:50px;font-size:25px;background:#f5f3ff;color:#6d28d9;border-color:#ede9fe}.shop-theme-shopee-new .shop-grid-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;background:#f5f5f5}.shop-theme-shopee-new .shop-product-card{border:0;border-radius:3px;box-shadow:0 0 0 1px #eee}.shop-theme-shopee-new .shop-product-card:hover{box-shadow:0 0 0 1px #eee;transform:none}.shop-theme-shopee-new .shop-product-img img{object-fit:cover}.shop-theme-shopee-new .shop-product-price{font-size:17px}.shop-theme-shopee-new .shop-add-form{display:grid;grid-template-columns:42px 1fr}.shop-theme-shopee-new .shop-section-head{border-radius:0;box-shadow:none;border-top:1px solid #eee;border-bottom:1px solid #eee}.shop-theme-shopee-new .mshop-bottom-nav a:first-child{color:#6d28d9}.shop-theme-switcher{right:10px;bottom:68px}.shop-theme-switcher-btn{padding:9px 11px;font-size:12px}.shop-theme-switcher-btn b{display:none}.shop-theme-menu{bottom:calc(100% + 8px)}}

/* Shopee homepage layout refinements: recommendation, rotating banner, hot products, sort bar */
.shopee-desktop-home{display:none}.shopee-sort-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin:0 0 12px;padding:10px 12px}.shopee-sort-label{color:#64748b;font-size:13px}.shopee-sort-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shopee-sort-option,.shopee-price-sort>button{height:34px;border:1px solid #e5e7eb;background:#fff;color:#111827;border-radius:6px;padding:0 14px;text-decoration:none;font-weight:600;display:inline-flex;align-items:center;gap:5px;cursor:pointer}.shopee-sort-option.active,.shopee-price-sort.active>button{background:#2563eb;border-color:#2563eb;color:#fff}.shopee-price-sort{position:relative}.shopee-price-menu{position:absolute;left:0;top:calc(100% + 6px);z-index:30;display:none;min-width:165px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 12px 28px rgba(15,23,42,.16);overflow:hidden}.shopee-price-sort:hover .shopee-price-menu{display:block}.shopee-price-menu a{display:block;padding:10px 12px;color:#111827;text-decoration:none;white-space:nowrap}.shopee-price-menu a:hover{background:#f8fafc;color:#6d28d9}.shopee-sort-pager{margin-left:auto;display:flex;align-items:center;gap:6px}.shopee-sort-pager span{font-weight:600;color:#475569}.shopee-sort-pager a{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:4px;background:#f8fafc;color:#111827;border:1px solid #e5e7eb;font-size:22px;line-height:1}.shopee-sort-pager a.disabled{opacity:.35;pointer-events:none}.shop-product-rating{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;font-size:12px;color:#64748b}.shop-product-rating span{display:inline-flex;align-items:center;height:18px;padding:0 4px;background:#f5f3ff;border:1px solid #a78bfa;border-radius:3px;color:#111827;font-size:11px}.shop-product-rating em{font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.shop-theme-shopee-new .shop-wrap{max-width:1200px;margin:0 auto 28px;padding:14px 12px}.shop-theme-shopee-new .shop-hero{display:none}.shop-theme-shopee-new .shopee-desktop-home{display:block}.shop-theme-shopee-new .shopee-strip{background:#fff;border-radius:2px;margin-bottom:14px;padding:0;box-shadow:0 1px 2px rgba(0,0,0,.08);overflow:hidden}.shop-theme-shopee-new .shopee-home-head{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #f1f1f1}.shop-theme-shopee-new .shopee-home-head h2{margin:0;font-size:14px;font-weight:500;color:#555;text-transform:uppercase}.shop-theme-shopee-new .shopee-home-head a{color:#6d28d9;text-decoration:none;font-size:13px}.shop-theme-shopee-new .shopee-mini-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:8px}.shop-theme-shopee-new .shopee-hot-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:8px}.shop-theme-shopee-new .shopee-category-grid-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}.shop-theme-shopee-new .shopee-top-card{position:relative;min-width:0}.shop-theme-shopee-new .shopee-top-card>span{position:absolute;top:0;left:0;z-index:9;width:24px;height:32px;background:#9333ea;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;clip-path:polygon(0 0,100% 0,100% 86%,50% 100%,0 86%)}.shop-theme-shopee-new .shopee-banner-carousel{position:relative;height:300px;margin:0 0 14px;background:#9edfed;overflow:hidden;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.08)}.shop-theme-shopee-new .shopee-banner-track,.mshop-banner-carousel .shopee-banner-track{position:relative;width:100%;height:100%}.shop-theme-shopee-new .shopee-banner-slide,.mshop-banner-carousel .shopee-banner-slide{position:absolute;inset:0;display:grid;grid-template-columns:48% 52%;align-items:center;text-decoration:none;color:#fff;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s ease;background:linear-gradient(90deg,#9edfed 0%,#9edfed 62%,#93d3e4 100%)}.shop-theme-shopee-new .shopee-banner-slide.active,.mshop-banner-carousel .shopee-banner-slide.active{opacity:1;visibility:visible}.shop-theme-shopee-new .shopee-banner-image{display:flex;align-items:center;justify-content:center;height:100%;padding:46px 28px 46px 58px}.shop-theme-shopee-new .shopee-banner-image img{width:100%;height:100%;object-fit:cover;background:#fff;border:10px solid #fff;box-shadow:0 2px 0 rgba(255,255,255,.45)}.shop-theme-shopee-new .shopee-banner-copy{display:flex;flex-direction:column;gap:16px;justify-content:center;height:100%;padding:40px 74px 40px 20px;text-shadow:0 1px 2px rgba(0,0,0,.08)}.shop-theme-shopee-new .shopee-banner-copy b{font-size:46px;letter-spacing:.03em;font-weight:600;line-height:1}.shop-theme-shopee-new .shopee-banner-copy em{font-size:28px;font-style:normal}.shop-theme-shopee-new .shopee-banner-copy:after{content:"";display:block;width:70px;height:5px;background:#fff;border-radius:999px}.shop-theme-shopee-new .shopee-banner-copy i{font-style:normal;font-size:15px;line-height:1.45;color:rgba(255,255,255,.92);max-width:340px}.shopee-banner-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:6;width:32px;height:54px;border:0;background:rgba(0,0,0,.22);color:#fff;font-size:36px;line-height:1;cursor:pointer}.shopee-banner-arrow.prev{left:0}.shopee-banner-arrow.next{right:0}.shopee-banner-dots{position:absolute;left:0;right:0;bottom:18px;z-index:7;display:flex;justify-content:center;gap:5px}.shopee-banner-dots button{width:8px;height:8px;border-radius:50%;border:0;background:rgba(0,0,0,.35);padding:0;cursor:pointer}.shopee-banner-dots button.active{background:#6d28d9}.shop-theme-shopee-new .shop-layout{grid-template-columns:230px minmax(0,1fr);align-items:start;gap:14px}.shop-theme-shopee-new .shop-section-head{display:none}.shop-theme-shopee-new .shop-sidebar{box-shadow:none;border-radius:0;background:transparent;padding:0}.shop-theme-shopee-new .shop-sidebar h3{background:transparent;color:#222;border:0;padding:9px 0 10px;font-size:14px;text-transform:none}.shop-theme-shopee-new .shop-cat{padding:7px 0;border:0;background:transparent;font-size:13px;color:#222;justify-content:flex-start}.shop-theme-shopee-new .shop-cat span{margin-left:auto;color:#999}.shop-theme-shopee-new .shop-cat:hover,.shop-theme-shopee-new .shop-cat.active{background:transparent;color:#6d28d9;font-weight:400}.shop-theme-shopee-new .shopee-sort-bar{height:auto;border:0;border-radius:2px;background:#ededed;margin:0 0 12px;padding:12px 14px;box-shadow:none}.shop-theme-shopee-new .shopee-sort-label{color:#555}.shop-theme-shopee-new .shopee-sort-option,.shop-theme-shopee-new .shopee-price-sort>button{height:34px;min-width:92px;border:0;border-radius:2px;background:#fff;color:#222;font-weight:400;justify-content:center}.shop-theme-shopee-new .shopee-sort-option.active,.shop-theme-shopee-new .shopee-price-sort.active>button{background:#6d28d9;color:#fff}.shop-theme-shopee-new .shopee-price-menu{border-radius:2px;top:100%}.shop-theme-shopee-new .shopee-sort-pager span{color:#6d28d9;font-weight:400}.shop-theme-shopee-new .shopee-sort-pager a{border:0;background:#fff;border-radius:2px;color:#555}.shop-theme-shopee-new .shop-grid-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.shop-theme-shopee-new .shop-product-card{border:1px solid rgba(0,0,0,.09);border-radius:3px;box-shadow:none}.shop-theme-shopee-new .shop-product-card:hover{border-color:#6d28d9;box-shadow:0 1px 8px rgba(0,0,0,.14);transform:translateY(-1px)}.shop-theme-shopee-new .shop-product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.35;font-weight:400;min-height:36px}.shop-theme-shopee-new .shop-product-price{font-size:17px;color:#6d28d9;font-weight:500}.shop-theme-shopee-new .shop-product-rating{font-size:12px;color:#555}.shop-theme-shopee-new .shop-product-rating span{height:18px;background:#f5f3ff;border-color:#a78bfa}.shop-theme-shopee-new .shop-product-stock,.shop-theme-shopee-new .shop-product-code,.shop-theme-shopee-new .shop-add-form{display:none}.shop-theme-shopee-new .mshop-card-compact .shop-product-body{padding:7px}.shop-theme-shopee-new .mshop-card-compact .shop-product-price{text-align:left}.shop-theme-shopee-new .mshop-card-compact .shop-product-rating{margin-top:5px}.shop-theme-shopee-new .mshop-card-compact .mshop-selling-bar{display:none}.shop-theme-shopee-new .shopee-category-card .shop-product-img{aspect-ratio:1/1}.shop-theme-shopee-new .shop-pager{margin-top:14px;text-align:center;background:transparent}.shop-theme-shopee-new .shop-pager a{border:0;border-radius:2px}.shop-theme-shopee-new .shop-pager a.active{background:#6d28d9;color:#fff}

@media(max-width:1120px){.shop-theme-shopee-new .shopee-mini-grid,.shop-theme-shopee-new .shopee-hot-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.shop-theme-shopee-new .shopee-category-grid-products{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-theme-shopee-new .shop-grid-products{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-theme-shopee-new .shopee-banner-carousel{height:270px}}
@media(max-width:760px){.shop-theme-shopee-new .shopee-desktop-home{display:none}.shopee-sort-bar{border-radius:0;border-left:0;border-right:0;margin:0;gap:8px;overflow-x:auto;flex-wrap:nowrap}.shopee-sort-label{white-space:nowrap}.shopee-sort-options{flex-wrap:nowrap}.shopee-sort-option,.shopee-price-sort>button{white-space:nowrap;min-width:auto;padding:0 12px}.shopee-sort-pager{display:none}.shop-theme-shopee-new .shopee-sort-bar{padding:9px 8px;background:#fff;border-top:1px solid #eee;border-bottom:1px solid #eee}.shop-theme-shopee-new .shopee-sort-option,.shop-theme-shopee-new .shopee-price-sort>button{height:31px}.mshop-banner-carousel{display:block;position:relative;height:178px;background:#9edfed;overflow:hidden;margin:0 0 8px}.mshop-banner-carousel .shopee-banner-slide{grid-template-columns:46% 54%;background:linear-gradient(90deg,#9edfed,#9edfed)}.mshop-banner-carousel .shopee-banner-image{display:flex;align-items:center;justify-content:center;height:100%;padding:20px 8px 20px 20px}.mshop-banner-carousel .shopee-banner-image img{width:100%;height:100%;object-fit:cover;border:5px solid #fff;background:#fff}.mshop-banner-carousel .shopee-banner-copy{display:flex;flex-direction:column;justify-content:center;gap:8px;height:100%;padding:18px 26px 18px 6px;color:#fff}.mshop-banner-carousel .shopee-banner-copy b{font-size:25px;line-height:1}.mshop-banner-carousel .shopee-banner-copy em{font-size:16px;font-style:normal}.mshop-banner-carousel .shopee-banner-copy i{font-size:11px;font-style:normal;line-height:1.35}.mshop-banner-carousel .shopee-banner-copy:after{content:"";width:38px;height:3px;background:#fff;border-radius:999px}.mshop-banner-carousel .shopee-banner-arrow{width:24px;height:38px;font-size:28px}.mshop-banner-carousel .shopee-banner-dots{bottom:8px}.mshop-banner-carousel .shopee-banner-dots button{width:6px;height:6px}.shop-theme-shopee-new .shop-grid-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.shop-theme-shopee-new .shop-product-rating span{font-size:10px}.shop-theme-shopee-new .shop-product-rating{font-size:11px}.shop-theme-shopee-new .mshop-section .shop-add-form{display:none}}
.shop-product-card{position:relative}

/* Admin sửa banner ngay trên shop.php */
.shop-banner-admin{position:fixed;right:18px;bottom:76px;z-index:125;font-family:Arial,"Helvetica Neue",sans-serif;color:#0f172a}
.shop-banner-admin-btn{border:0;border-radius:999px;background:#6d28d9;color:#fff;box-shadow:0 14px 34px rgba(109,40,217,.28);padding:10px 14px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:7px}
.shop-banner-admin-panel{position:absolute;right:0;bottom:calc(100% + 10px);width:720px;max-width:calc(100vw - 28px);max-height:78vh;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.26);padding:12px;display:none}
.shop-banner-admin.open .shop-banner-admin-panel{display:block}
.shop-banner-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:4px 4px 12px;border-bottom:1px solid #eef2f7;margin-bottom:10px}
.shop-banner-admin-head b{display:block;font-size:18px;color:#111827}.shop-banner-admin-head small{display:block;margin-top:4px;color:#64748b;line-height:1.35}.shop-banner-admin-head button{border:0;background:#fee2e2;color:#b91c1c;border-radius:10px;width:34px;height:34px;font-size:24px;line-height:1;cursor:pointer}
.shop-banner-admin-list{display:grid;gap:10px}.shop-banner-admin-row{display:grid;grid-template-columns:42px 96px minmax(0,1fr);gap:10px;align-items:start;border:1px solid #e5e7eb;background:#f8fafc;border-radius:14px;padding:10px}.shop-banner-admin-no{font-weight:600;color:#6d28d9;text-align:center;padding-top:8px}.shop-banner-admin-preview{width:96px;height:72px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;overflow:hidden}.shop-banner-admin-preview img{width:100%;height:100%;object-fit:cover;display:block}.shop-banner-admin-fields{display:grid;gap:8px}.shop-banner-admin-fields label{display:grid;gap:4px;font-size:12px;font-weight:600;color:#334155}.shop-banner-admin-fields input[type=text],.shop-banner-admin-fields select,.shop-banner-admin-fields input[type=file]{width:100%;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:8px 10px;color:#111827;font-size:13px}.shop-banner-admin-fields input[type=file]{padding:7px}.shop-banner-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shop-banner-admin-check{display:flex!important;grid-template-columns:auto!important;align-items:center;gap:7px;color:#b45309!important;font-weight:600!important}.shop-banner-admin-check input{width:auto!important}.shop-banner-admin-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 4px 2px}.shop-banner-admin-actions button{border:0;border-radius:10px;background:#6d28d9;color:#fff;font-weight:600;padding:10px 14px;cursor:pointer}.shop-banner-admin-actions .secondary{background:#64748b}.shop-theme-shopee-new .shopee-banner-slide.has-bg,.mshop-banner-carousel .shopee-banner-slide.has-bg{background-size:cover;background-position:center}.shop-theme-shopee-new .shopee-banner-slide.has-bg .shopee-banner-copy,.mshop-banner-carousel .shopee-banner-slide.has-bg .shopee-banner-copy{text-shadow:0 2px 10px rgba(0,0,0,.38)}.shop-theme-shopee-new .shopee-banner-slide.has-bg .shopee-banner-image img,.mshop-banner-carousel .shopee-banner-slide.has-bg .shopee-banner-image img{box-shadow:0 12px 30px rgba(0,0,0,.18)}
@media(max-width:760px){.shop-banner-admin{right:10px;bottom:116px}.shop-banner-admin-btn{padding:9px 11px;font-size:12px}.shop-banner-admin-panel{width:calc(100vw - 20px);right:0;max-height:74vh}.shop-banner-admin-row{grid-template-columns:32px 74px minmax(0,1fr);gap:8px;padding:8px}.shop-banner-admin-preview{width:74px;height:62px}.shop-banner-admin-grid{grid-template-columns:1fr}}


/* Public shop fallback price */
.shop-product-price.is-contact,.spage-price-box .is-contact,.shop-favorite-card b.is-contact,.spage-rec-card b.is-contact{font-size:13px!important;line-height:1.35;color:#0f766e!important;font-weight:600;text-transform:none}.shop-contact-btn{display:flex;align-items:center;justify-content:center;min-height:34px;border-radius:4px;background:#0f766e;color:#fff;text-decoration:none;font-weight:600;font-size:13px;margin-top:8px}.shop-contact-btn:hover{background:#115e59;color:#fff}.spage-buy-form button:disabled{opacity:.55;cursor:not-allowed}.shop-theme-shopee-new .shop-product-price.is-contact{font-size:12px!important;color:#0f766e!important}.shop-theme-shopee-new .shop-contact-btn{display:none}

/* Trang tìm kiếm sản phẩm riêng */
.shop-search-page .shop-wrap{max-width:1200px}
.shop-search-results-block{margin-bottom:16px}
.shop-search-titlebar{background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:16px 18px;margin-bottom:12px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.shop-search-titlebar h1{margin:4px 0 6px;font-size:26px;line-height:1.2;color:#111827}
.shop-search-titlebar p{margin:0;color:#64748b}
.shop-search-layout{align-items:start}
.shop-search-extra{margin-top:18px}
.shop-search-extra .shopee-strip{background:#fff;border:1px solid #e5e7eb;border-radius:4px;margin-bottom:14px;box-shadow:0 1px 2px rgba(0,0,0,.04);overflow:hidden}
.shop-search-extra .shopee-home-head{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #f1f1f1;background:#fff}
.shop-search-extra .shopee-home-head h2{margin:0;font-size:14px;font-weight:600;color:#555;text-transform:uppercase}
.shop-search-extra .shopee-home-head a{color:#6d28d9;text-decoration:none;font-size:13px}
.shop-search-extra .shopee-mini-grid,.shop-search-extra .shopee-hot-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:8px}
.shop-search-extra .shopee-top-card{position:relative;min-width:0}
.shop-search-extra .shopee-top-card>span{position:absolute;top:0;left:0;z-index:9;width:24px;height:32px;background:#9333ea;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;clip-path:polygon(0 0,100% 0,100% 86%,50% 100%,0 86%)}
.shop-search-extra .shop-product-card{height:100%}
.shop-search-empty{border-radius:4px;color:#64748b;text-align:center;padding:34px 18px}
.shop-theme-shopee-new .shop-search-titlebar{border:0;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.shop-theme-shopee-new .shop-search-titlebar h1{color:#6d28d9;font-weight:500}
.shop-theme-shopee-new .shop-search-extra .shopee-strip{border:0;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.shop-theme-shopee-new .shop-search-extra .shopee-home-head h2{font-weight:500;color:#555}
@media(max-width:1120px){.shop-search-extra .shopee-mini-grid,.shop-search-extra .shopee-hot-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:900px){.shop-search-extra .shopee-mini-grid,.shop-search-extra .shopee-hot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.shop-search-page .shop-wrap{margin:0;padding:0}.shop-search-titlebar{border-radius:0;border-left:0;border-right:0;margin:0;padding:12px;background:#fff}.shop-search-titlebar h1{font-size:18px;color:#6d28d9}.shop-search-titlebar p{font-size:12px}.shop-search-results-block{margin-bottom:8px}.shop-search-extra{margin-top:8px}.shop-search-extra .shopee-strip{border-radius:0;border-left:0;border-right:0;margin:8px 0 0}.shop-search-extra .shopee-mini-grid,.shop-search-extra .shopee-hot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;background:#f4f4f4}.shop-search-extra .shopee-home-head{height:42px}.shop-search-extra .shopee-home-head h2{color:#6d28d9;font-size:16px;font-weight:500}.shop-search-extra .shopee-top-card>span{width:22px;height:30px;font-size:11px}.shop-search-empty{border-left:0;border-right:0;border-radius:0}}

/* Moc xu cart polish */
.mcart-platform-voucher{position:sticky;bottom:65px;z-index:44;margin-bottom:0;border-radius:12px 12px 0 0;border-bottom:0;box-shadow:0 -3px 12px rgba(0,0,0,.04)}
.mcart-bottom-bar{border-radius:0 0 12px 12px}
.mcart-coin-row.is-disabled{opacity:.72}
.mcart-coin-detail{display:block;font-size:12px;color:#6b7280;font-weight:400;margin-top:2px;line-height:1.3}
.mcart-switch input:checked+span{background:#6d28d9}
.mcart-switch input:checked+span:before{transform:translateX(22px)}
.mcart-switch span:before{transition:.16s}
.mcart-coin-help{cursor:help}
@media(max-width:760px){
  body.mcart-body{padding-bottom:132px}
  .mcart-form{padding-bottom:142px}
  .mcart-platform-voucher{position:fixed;left:0;right:0;bottom:64px;border-radius:0;border-top:1px solid #e6e6e6;border-bottom:0;z-index:59;margin:0}
  .mcart-bottom-bar{border-radius:0}
}
.shop-coin-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.shop-coin-panel{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:14px}
.shop-coin-panel h3{margin:0 0 10px;color:#111827}
.shop-coin-task{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #f1f1f1;padding:10px 0}
.shop-coin-task:first-of-type{border-top:0}
.shop-coin-task small,.shop-coin-history-row small{display:block;color:#6b7280;margin-top:3px}
.shop-coin-task button,.shop-review-form button{border:0;background:#6d28d9;color:#fff;border-radius:6px;padding:9px 12px;font-weight:600;cursor:pointer}
.shop-coin-task button:disabled{background:#d1d5db;cursor:not-allowed}
.shop-coin-history-row{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #f1f1f1;padding:9px 0}
.shop-coin-history-row:first-of-type{border-top:0}
.shop-coin-history-row b.plus{color:#16a34a}.shop-coin-history-row b.minus{color:#dc2626}
.shop-review-form{display:grid;grid-template-columns:72px minmax(0,1fr) 112px;gap:10px;align-items:start;border-top:1px solid #f1f1f1;padding:12px 0}
.shop-review-form:first-of-type{border-top:0}
.shop-review-form img{width:72px;height:72px;object-fit:cover;background:#f8fafc;border:1px solid #eee}
.shop-review-form small{display:block;color:#6b7280;margin:3px 0 8px}
.shop-review-form select{max-width:120px;margin-bottom:6px}
.shop-review-form textarea{min-height:58px}
@media(max-width:760px){.shop-coin-account-grid{grid-template-columns:1fr}.shop-review-form{grid-template-columns:56px 1fr}.shop-review-form img{width:56px;height:56px}.shop-review-form button{grid-column:1/-1}}

/* Mobile product detail variant chooser */
.spage-mobile-variant-modal[hidden]{display:none!important}
.spage-mobile-variant-modal{display:none}
@media(max-width:760px){
  html.spage-mobile-modal-open,body.spage-mobile-modal-open{overflow:hidden}
  .spage-info>.spage-variants{display:none}
  .spage-mobile-variant-modal:not([hidden]){display:block;position:fixed;inset:0;z-index:180}
  .spage-mobile-variant-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48)}
  .spage-mobile-variant-sheet{position:absolute;left:0;right:0;bottom:0;max-height:88vh;background:#fff;border-radius:14px 14px 0 0;box-shadow:0 -18px 45px rgba(15,23,42,.26);display:flex;flex-direction:column;padding:14px 12px max(12px,env(safe-area-inset-bottom));overflow:hidden}
  .spage-mobile-variant-close{position:absolute;top:10px;right:10px;width:32px;height:32px;border:0;border-radius:50%;background:#f3f4f6;color:#111827;font-size:18px;font-weight:600;line-height:1;cursor:pointer}
  .spage-mobile-variant-head{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;align-items:center;padding-right:36px;margin-bottom:12px}
  .spage-mobile-variant-head img{width:70px;height:70px;border:1px solid #eee;background:#f8fafc;object-fit:cover;border-radius:6px}
  .spage-mobile-variant-head b{display:block;color:#111827;font-size:15px;line-height:1.25;margin-bottom:5px}
  .spage-mobile-variant-head strong{display:block;color:#6d28d9;font-size:18px;line-height:1.2}
  .spage-mobile-variant-head strong.is-contact{font-size:13px;color:#0f766e}
  .spage-mobile-variant-head span{display:block;color:#64748b;font-size:12px;margin-top:4px}
  .spage-mobile-variant-caption{font-weight:600;color:#333;margin:0 0 8px}
  .spage-mobile-variant-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:auto;max-height:34vh;padding:0 1px 10px}
  .spage-mobile-variant-option{min-width:0;min-height:54px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:7px;align-items:center;border:1px solid #d5d5d5;background:#fff;border-radius:6px;padding:7px;text-align:left;color:#222;cursor:pointer}
  .spage-mobile-variant-option img{width:38px;height:38px;object-fit:cover;background:#f8fafc;border-radius:4px}
  .spage-mobile-variant-option span{min-width:0;font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .spage-mobile-variant-option.active{border-color:#6d28d9;color:#6d28d9;box-shadow:inset 0 0 0 1px #6d28d9}
  .spage-mobile-purchase-box{border-top:1px solid #eef2f7;padding-top:10px;background:#fff}
  .spage-mobile-qty-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
  .spage-mobile-qty-row>span{font-weight:600;color:#333}
  .spage-mobile-qty{width:134px;flex:0 0 134px;height:40px}
  .spage-mobile-variant-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .spage-mobile-variant-actions .spage-cart-btn,.spage-mobile-variant-actions .spage-buy-btn{height:44px;margin:0;border-radius:4px}
}
@media(min-width:761px){
  .spage-mobile-variant-modal{display:none!important}
}

/* Product management toolbar: keep search controls and action buttons aligned. */
.products-pos-page .pos-filter-panel{padding:14px 16px}
.products-pos-page .pos-grid-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap}
.products-pos-page .pos-main-controls{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.products-pos-page .pos-main-controls .pos-searchbar{margin:0;display:flex;align-items:center;gap:8px;flex:1 1 610px;min-width:0}
.products-pos-page .pos-main-controls .pos-search-wrap{flex:1 1 360px;min-width:280px;max-width:520px}
.products-pos-page .pos-main-controls .btn,.products-pos-page .pos-action-menu summary{min-height:38px;display:inline-flex;align-items:center;justify-content:center;line-height:1;white-space:nowrap}
.products-pos-page .pos-main-controls .shop-visible-switch.compact{min-height:38px;display:inline-flex;align-items:center}
.products-pos-page .pos-action-right{flex:0 0 auto;margin-left:auto;display:flex;align-items:center;gap:8px;white-space:nowrap}
.products-pos-page .pos-status-note{align-self:center;line-height:1.3}
@media(max-width:1200px){
  .products-pos-page .pos-grid-actions{flex-wrap:wrap}
  .products-pos-page .pos-main-controls{width:100%}
  .products-pos-page .pos-main-controls .pos-searchbar{flex:1 1 100%}
  .products-pos-page .pos-main-controls .pos-search-wrap{max-width:none}
  .products-pos-page .pos-status-note{flex:1 1 260px}
  .products-pos-page .pos-action-right{width:100%;justify-content:flex-end;margin-left:0}
}
@media(max-width:760px){
  .products-pos-page .pos-main-controls .pos-searchbar{display:grid;grid-template-columns:1fr auto auto;gap:8px;width:100%}
  .products-pos-page .pos-main-controls .pos-search-wrap{grid-column:1/-1;min-width:0}
  .products-pos-page .pos-main-controls .btn.secondary{grid-column:auto}
  .products-pos-page .pos-action-right{justify-content:flex-start;overflow:auto}
}

/* Keep the top action controls on one row on notebook-width screens. */
@media(max-width:1200px) and (min-width:761px){
  .products-pos-page .pos-main-controls .pos-searchbar{flex:1 1 520px;width:auto}
  .products-pos-page .pos-main-controls .pos-search-wrap{max-width:500px}
  .products-pos-page .pos-action-right{margin-top:0}
}

/* Flatten the product toolbar so each control aligns in one horizontal track. */
@media(min-width:901px){
  .products-pos-page .pos-main-controls{display:grid;grid-template-columns:minmax(360px,520px) auto auto auto auto minmax(150px,1fr);align-items:center;gap:10px;width:100%}
  .products-pos-page .pos-main-controls .pos-searchbar{display:contents}
  .products-pos-page .pos-main-controls .pos-search-wrap{min-width:0;max-width:none;width:100%}
  .products-pos-page .pos-main-controls .shop-visible-switch.compact,.products-pos-page .pos-main-controls .btn,.products-pos-page .pos-action-menu{justify-self:start}
  .products-pos-page .pos-status-note{justify-self:start;min-width:0}
}
@media(max-width:1200px) and (min-width:901px){
  .products-pos-page .pos-grid-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
  .products-pos-page .pos-main-controls{grid-template-columns:minmax(320px,520px) auto auto auto auto minmax(120px,1fr)}
  .products-pos-page .pos-action-right{width:auto;justify-content:flex-end;margin-left:0;margin-top:0}
}

@media(min-width:901px){
  .products-pos-page .pos-main-controls{grid-template-columns:minmax(320px,520px) auto auto auto auto auto minmax(120px,1fr)}
}
@media(max-width:1200px) and (min-width:901px){
  .products-pos-page .pos-main-controls{grid-template-columns:minmax(300px,420px) auto auto auto auto auto minmax(90px,1fr)}
}

/* Product form validation feedback. */
.products-pos-page input.field-error{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.products-pos-page input.field-ok{border-color:#16a34a!important;box-shadow:0 0 0 3px rgba(22,163,74,.10)}
.products-pos-page input.field-checking{border-color:#f59e0b!important;box-shadow:0 0 0 3px rgba(245,158,11,.12)}
.products-pos-page small.field-error{color:#b91c1c!important;font-weight:600}
.products-pos-page small.field-ok{color:#15803d!important;font-weight:600}
.products-pos-page small.field-checking{color:#b45309!important;font-weight:600}
.products-pos-page #productSaveButton:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.25)}

.mcart-voucher-message{margin:0 14px 12px;padding:10px 12px;border-radius:8px;font-weight:600;font-size:13px;line-height:1.35}
.mcart-voucher-message.is-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}
.mcart-voucher-message.is-ok{background:#dcfce7;color:#166534;border:1px solid #86efac}
@media(max-width:760px){.mcart-voucher-message{margin:0 18px 12px}}

/* Cart checkout sticky group fix: voucher + Moc xu + payment stay together */
html,body{max-width:100%;overflow-x:hidden}
body.mcart-body{padding-bottom:190px}
.mcart-page,.mcart-form,.mcart-shop-card,.mcart-row-link,.mcart-ship-row,.mcart-sticky-checkout,.mcart-platform-voucher,.mcart-coin-row,.mcart-bottom-bar{max-width:100%;box-sizing:border-box}
.mcart-sticky-checkout{position:fixed;left:0;right:0;bottom:0;z-index:80;width:100%;background:#fff;box-shadow:0 -4px 16px rgba(15,23,42,.08);padding-bottom:env(safe-area-inset-bottom)}
.mcart-sticky-checkout .mcart-platform-voucher,
.mcart-sticky-checkout .mcart-coin-row,
.mcart-sticky-checkout .mcart-bottom-bar{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%;margin:0!important;border-radius:0!important;box-shadow:none!important}
.mcart-sticky-checkout .mcart-platform-voucher{border:0!important;border-top:1px solid #e6e6e6!important;border-bottom:1px solid #eee!important}
.mcart-sticky-checkout .mcart-coin-row{border:0!important;border-bottom:1px solid #eee!important;background:#fff}
.mcart-sticky-checkout .mcart-bottom-bar{border:0!important;display:grid!important}
.mcart-sticky-checkout .mcart-desktop-actions{display:none!important}
.mcart-form{padding-bottom:210px!important}
@media(min-width:761px){
  body.mcart-body{padding-bottom:190px}
  .mcart-sticky-checkout{left:50%;right:auto;transform:translateX(-50%);max-width:980px;border-left:1px solid #e5e7eb;border-right:1px solid #e5e7eb}
}
@media(max-width:760px){
  body.mcart-body{padding-bottom:190px!important}
  .mcart-form{padding-bottom:210px!important}
  .mcart-sticky-checkout{left:0;right:0;width:100vw;max-width:100vw;transform:none}
  .mcart-sticky-checkout .mcart-platform-title{padding:12px 16px}
  .mcart-sticky-checkout .mcart-coin-row{padding:12px 16px}
  .mcart-sticky-checkout .mcart-bottom-bar{grid-template-columns:118px minmax(0,1fr) 112px;gap:6px;padding:10px 12px}
  .mcart-total-box{min-width:0;overflow:hidden;text-overflow:ellipsis}
}

/* Cart PC width + voucher notice placement retune */
.mcart-sticky-checkout .mcart-voucher-message{margin:10px 14px 0!important}
.mcart-sticky-checkout .mcart-voucher-input-row{padding-top:10px}
@media(min-width:761px){
  body.mcart-body{padding-bottom:230px!important}
  .mcart-page{width:calc(100% - 24px)!important;max-width:1200px!important;margin-left:auto!important;margin-right:auto!important}
  .mcart-sticky-checkout{width:calc(100% - 24px)!important;max-width:1200px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
  .mcart-form{padding-bottom:250px!important}
}
@media(max-width:760px){
  .mcart-sticky-checkout .mcart-voucher-message{margin:10px 18px 0!important}
}

/* Cart total: original amount before voucher/coins */
.mcart-total-origin{display:none;color:#9ca3af;text-decoration:line-through;margin-right:6px;font-size:13px;font-weight:400;vertical-align:baseline}
.mcart-total-origin.is-show{display:inline}
@media(max-width:760px){
  .mcart-total-origin{font-size:12px}
}

/* Voucher eligibility state */
.shop-voucher-apply button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.15)}
.shop-voucher-blocked{display:block;color:#b91c1c;font-weight:600;font-size:12px;margin:0 0 6px}
.shop-voucher-main small.shop-voucher-blocked{color:#dc2626!important}
.shop-voucher-card.is-used{border-color:#d1d5db;box-shadow:none;background:#f3f4f6}
.shop-voucher-card.is-used .shop-voucher-left{background:linear-gradient(180deg,#9ca3af,#b6bec9)}
.shop-voucher-card.is-used .shop-voucher-main h2,
.shop-voucher-card.is-used .shop-voucher-main p,
.shop-voucher-card.is-used .shop-voucher-main small{color:#6b7280}
.shop-voucher-card.is-used .shop-voucher-cond span{border-color:#d1d5db;background:#eef1f4;color:#6b7280}
.shop-voucher-card.is-used .shop-voucher-apply{background:#e5e7eb}
.shop-voucher-card.is-used .shop-voucher-apply button[disabled]{background:#9ca3af;color:#fff;opacity:1;filter:none}
.shop-voucher-main small.shop-voucher-blocked.is-used{color:#6b7280!important}

/* Cart: hide edit buttons but keep header alignment */
.mcart-topbar-placeholder{display:inline-block;width:44px;height:1px}
.mcart-shop-head-placeholder{display:inline-block;width:48px;height:1px}
@media(max-width:760px){
  .mcart-topbar-placeholder{width:42px}
  .mcart-shop-head-placeholder{width:42px}
}

/* Customer order tracking page: Shopee-like order tabs/cards */
.shop-orders-page{display:grid;gap:12px}.shop-orders-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.shop-orders-hero h1{margin:0 0 6px;font-size:25px}.shop-orders-hero p{margin:0;color:#64748b;line-height:1.5}.shop-orders-hero a{background:#6d28d9;color:#fff;text-decoration:none;border-radius:6px;padding:10px 14px;font-weight:600;white-space:nowrap}.shop-orders-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;position:sticky;top:0;z-index:10}.shop-orders-tabs a{min-height:54px;display:flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;color:#334155;border-right:1px solid #edf0f3;font-weight:600;text-align:center;padding:6px 8px}.shop-orders-tabs a:last-child{border-right:0}.shop-orders-tabs a b{min-width:20px;height:20px;border-radius:999px;background:#f1f5f9;color:#64748b;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.shop-orders-tabs a.active{color:#6d28d9;border-bottom:3px solid #6d28d9;background:#f5f3ff}.shop-orders-tabs a.active b{background:#6d28d9;color:#fff}.shop-orders-empty{background:#fff;border:1px dashed #d1d5db;border-radius:14px;padding:30px 14px;text-align:center;color:#64748b}.shop-orders-empty div{font-size:42px}.shop-orders-empty h2{margin:8px 0;color:#111827}.shop-orders-empty a{display:inline-flex;margin-top:8px;background:#6d28d9;color:#fff;text-decoration:none;border-radius:6px;padding:10px 16px;font-weight:600}.shop-orders-list{display:grid;gap:12px}.shop-order-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(15,23,42,.04)}.shop-order-card.is-highlight{border-color:#6d28d9;box-shadow:0 0 0 3px rgba(109,40,217,.12)}.shop-order-card-head{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:13px 16px;border-bottom:1px solid #eef2f7}.shop-order-shopline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.shop-order-shopline b{color:#111827}.shop-order-shopline span{color:#64748b;font-size:13px}.shop-order-date{color:#94a3b8;font-size:12px;margin-top:4px}.shop-order-status-area{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.shop-order-track-link{color:#2563eb;text-decoration:none;font-weight:600;font-size:13px}.shop-order-badge{display:inline-flex;align-items:center;min-height:26px;border-radius:999px;padding:0 10px;font-size:12px;font-weight:600;text-transform:uppercase}.shop-order-badge.is-processing{background:#eff6ff;color:#1d4ed8}.shop-order-badge.is-shipping{background:#f5f3ff;color:#6d28d9}.shop-order-badge.is-completed{background:#dcfce7;color:#15803d}.shop-order-badge.is-cancelled{background:#fee2e2;color:#b91c1c}.shop-order-badge.is-return{background:#fef3c7;color:#92400e}.shop-order-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:14px 18px;background:#fbfdff;border-bottom:1px solid #eef2f7}.shop-order-progress.is-cancelled{grid-template-columns:1fr;background:#fff5f5}.shop-order-step{position:relative;text-align:center;color:#94a3b8;font-size:12px;font-weight:600}.shop-order-step:before{content:"";position:absolute;left:-50%;right:50%;top:10px;height:2px;background:#e5e7eb;z-index:0}.shop-order-step:first-child:before{display:none}.shop-order-step i{position:relative;z-index:1;width:20px;height:20px;border-radius:50%;display:block;margin:0 auto 6px;background:#e5e7eb;border:3px solid #fbfdff;box-shadow:0 0 0 1px #d1d5db}.shop-order-step.done{color:#16a34a}.shop-order-step.done:before{background:#86efac}.shop-order-step.done i{background:#16a34a;box-shadow:0 0 0 1px #16a34a}.shop-order-step.active i{animation:shopOrderPulse 1.4s infinite}.shop-order-progress.is-cancelled .shop-order-step{color:#b91c1c}.shop-order-progress.is-cancelled .shop-order-step i{background:#ef4444;box-shadow:0 0 0 1px #ef4444}@keyframes shopOrderPulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.3)}70%{box-shadow:0 0 0 8px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}.shop-order-products{display:grid}.shop-order-product-row{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid #f1f5f9}.shop-order-thumb img{width:72px;height:72px;object-fit:cover;background:#f8fafc;border:1px solid #e5e7eb;border-radius:6px}.shop-order-product-main a{display:block;color:#111827;text-decoration:none;font-weight:600;line-height:1.35}.shop-order-product-main small{display:block;margin-top:4px;color:#64748b}.shop-order-product-price{font-weight:600;color:#111827;text-align:right;white-space:nowrap}.shop-order-card-foot{padding:12px 16px;background:#fff}.shop-order-extra{display:flex;gap:12px;flex-wrap:wrap;color:#64748b;font-size:13px;line-height:1.5}.shop-order-extra b{color:#111827}.shop-order-total{text-align:right;margin:10px 0;font-size:15px}.shop-order-total b{font-size:20px;color:#6d28d9}.shop-order-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}.shop-order-actions form{margin:0}.shop-order-actions button{height:36px;border:0;background:#6d28d9;color:#fff;border-radius:4px;padding:0 16px;font-weight:600;cursor:pointer}.shop-order-note-ok,.shop-order-note-cancel{display:inline-flex;align-items:center;min-height:30px;border-radius:999px;padding:0 10px;font-size:12px;font-weight:600}.shop-order-note-ok{background:#ecfdf5;color:#15803d}.shop-order-note-cancel{background:#fef2f2;color:#b91c1c}.shop-theme-shopee-new .shop-orders-tabs,.shop-theme-shopee-new .shop-order-card,.shop-theme-shopee-new .shop-orders-hero{border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}.shop-theme-shopee-new .shop-orders-hero h1,.shop-theme-shopee-new .shop-order-total b{color:#6d28d9}@media(max-width:980px){.shop-orders-tabs{display:flex;overflow:auto}.shop-orders-tabs a{flex:0 0 auto;min-width:120px}.shop-order-card-head{grid-template-columns:1fr}.shop-order-status-area{justify-content:flex-start}.shop-order-product-row{grid-template-columns:64px 1fr;align-items:start}.shop-order-product-price{grid-column:2;text-align:left}.shop-order-thumb img{width:64px;height:64px}.shop-order-progress{overflow:auto;grid-auto-flow:column;grid-auto-columns:112px;grid-template-columns:none}.shop-order-step{min-width:104px}.shop-order-step:before{left:-56px;right:56px}}@media(max-width:760px){.shop-orders-page{gap:8px;margin:0;background:#f5f5f5}.shop-orders-hero{border-radius:0;border-left:0;border-right:0;display:block}.shop-orders-hero h1{font-size:20px}.shop-orders-hero a{display:inline-flex;margin-top:10px}.shop-orders-tabs{border-left:0;border-right:0;border-radius:0;top:0}.shop-order-card{border-radius:0;border-left:0;border-right:0}.shop-order-card-head,.shop-order-products .shop-order-product-row,.shop-order-card-foot{padding-left:12px;padding-right:12px}.shop-order-extra{display:grid;gap:4px}.shop-order-total{text-align:left}.shop-order-actions{justify-content:space-between}.shop-order-actions button{min-width:96px}.mshop-bottom-nav{grid-template-columns:repeat(7,1fr)}.mshop-bottom-nav a{font-size:10px}.mshop-bottom-nav span{font-size:18px}}


/* Đồng bộ trạng thái đơn hàng admin/khách */
.order-status-badge.processing{background:#eff6ff;color:#1d4ed8}.order-status-badge.return{background:#fef3c7;color:#92400e}.shop-orders-title{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:14px 16px}.shop-orders-title h1{margin:0 0 4px;font-size:24px;color:#111827}.shop-orders-title p{margin:0;color:#64748b}.shop-order-progress.is-return{grid-template-columns:repeat(4,1fr);background:#fffbeb}.shop-order-progress.is-return .shop-order-step.done{color:#d97706}.shop-order-progress.is-return .shop-order-step.done:before{background:#a78bfa}.shop-order-progress.is-return .shop-order-step.done i{background:#f59e0b;box-shadow:0 0 0 1px #f59e0b}.shop-order-actions:empty{display:none}@media(max-width:760px){.shop-orders-title{border-radius:0;border-left:0;border-right:0}.shop-orders-title h1{font-size:20px}}

/* Seller Center style order management page */
.seller-orders-page{display:grid;gap:14px;margin-bottom:28px}.seller-order-titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.seller-order-titlebar h1{margin:0;color:#111827;font-size:26px;line-height:1.2}.seller-order-titlebar p{margin:5px 0 0;color:#64748b}.seller-breadcrumb{font-size:12px;color:#64748b;margin-bottom:6px}.seller-title-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.seller-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:1px solid #6d28d9;border-radius:4px;background:#6d28d9;color:#fff;text-decoration:none;font-weight:600;padding:7px 13px;cursor:pointer;line-height:1.2}.seller-btn.secondary{background:#fff;color:#334155;border-color:#cbd5e1}.seller-btn.ghost{background:#fff;color:#6d28d9}.seller-btn:hover{filter:brightness(.98)}.seller-order-panel{background:#fff;border:1px solid #d7dde5;border-radius:6px;box-shadow:0 2px 7px rgba(15,23,42,.07);overflow:hidden}.seller-order-tabs{display:flex;align-items:stretch;gap:0;overflow:auto;background:#fff;border-bottom:1px solid #d7dde5;position:sticky;top:54px;z-index:4}.seller-order-tabs a{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:0 18px;color:#334155;text-decoration:none;font-weight:600;white-space:nowrap;border-bottom:3px solid transparent}.seller-order-tabs a.active{color:#6d28d9;border-bottom-color:#6d28d9;background:#f5f3ff}.seller-order-tabs a b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:999px;background:#fee2e2;color:#6d28d9;font-size:12px;padding:0 6px}.seller-order-tabs a.active b{background:#6d28d9;color:#fff}.seller-order-filter{display:grid;grid-template-columns:minmax(240px,1.3fr) repeat(5,minmax(120px,.7fr)) auto;gap:10px;align-items:end;background:#f6f8fb;padding:14px 16px;border-bottom:1px solid #e5e7eb}.seller-order-filter label,.seller-form-grid label,.seller-quick-form label{font-size:12px;color:#475569;margin-bottom:4px}.seller-order-filter input,.seller-order-filter select,.seller-form-grid input,.seller-form-grid select,.seller-form-grid textarea,.seller-product-line input,.seller-product-line select,.seller-quick-form input,.seller-quick-form select,.seller-quick-form textarea{border-radius:4px;border-color:#cbd5e1;min-height:36px}.seller-search-box input{padding-left:12px}.seller-filter-actions{display:flex;gap:6px}.seller-summary-strip{display:flex;gap:18px;flex-wrap:wrap;padding:10px 16px;background:#fff;color:#64748b;font-size:13px}.seller-summary-strip b{color:#111827}.seller-create-card{background:#fff;border:1px solid #d7dde5;border-radius:6px;box-shadow:0 2px 7px rgba(15,23,42,.07);overflow:hidden}.seller-create-card summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 16px;background:#f8fafc;border-bottom:1px solid transparent;font-weight:600;cursor:pointer}.seller-create-card summary::-webkit-details-marker{display:none}.seller-create-card summary:after{content:"▾";font-size:12px;color:#64748b}.seller-create-card[open] summary{border-bottom-color:#d7dde5}.seller-create-card form{padding:16px}.seller-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.seller-form-grid .full{grid-column:1/-1}.seller-create-subhead{margin:16px 0 8px;font-weight:600;color:#111827}.seller-product-line{display:grid;grid-template-columns:minmax(220px,1fr) 90px 130px;gap:8px;margin-bottom:8px}.seller-form-actions{display:flex;justify-content:flex-end;margin-top:12px}.seller-order-table-head{display:grid;grid-template-columns:minmax(390px,2fr) minmax(150px,.75fr) minmax(190px,1fr) minmax(170px,.9fr) minmax(170px,.85fr);gap:0;background:#f8fafc;border:1px solid #d7dde5;border-radius:6px 6px 0 0;color:#334155;font-weight:600;font-size:13px;box-shadow:0 1px 0 rgba(15,23,42,.04);position:sticky;top:102px;z-index:3}.seller-order-table-head div{padding:13px 14px;border-right:1px solid #e5e7eb}.seller-order-table-head div:last-child{border-right:0}.seller-order-list{display:grid;gap:10px}.seller-order-card{background:#fff;border:1px solid #d7dde5;border-radius:6px;box-shadow:0 2px 7px rgba(15,23,42,.06);overflow:visible}.seller-order-card.is-cancelled{border-left:4px solid #ef4444}.seller-order-card.is-completed{border-left:4px solid #22c55e}.seller-order-card.is-shipping{border-left:4px solid #f59e0b}.seller-order-card.is-return{border-left:4px solid #d97706}.seller-order-card.is-processing{border-left:4px solid #3b82f6}.seller-order-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:9px 14px;border-bottom:1px solid #eef2f7;background:#fff}.seller-buyer-info{display:flex;align-items:center;gap:10px;min-width:0}.seller-avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#eef2ff;color:#1e3a8a;font-weight:600}.seller-buyer-info b{display:block;color:#111827;line-height:1.2}.seller-buyer-info small{display:block;color:#64748b;margin-top:2px}.seller-order-identifiers{text-align:right;color:#64748b}.seller-order-identifiers span{display:block;color:#475569}.seller-order-identifiers b{color:#111827}.seller-order-identifiers small{display:block;margin-top:2px;color:#94a3b8}.seller-order-card-body{display:grid;grid-template-columns:minmax(390px,2fr) minmax(150px,.75fr) minmax(190px,1fr) minmax(170px,.9fr) minmax(170px,.85fr);gap:0}.seller-order-card-body>div{padding:14px;border-right:1px solid #eef2f7;min-width:0}.seller-order-card-body>div:last-child{border-right:0}.seller-order-products{display:grid;gap:10px}.seller-item-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center}.seller-item-row img,.seller-item-noimg{width:52px;height:52px;border:1px solid #e5e7eb;border-radius:4px;background:#f8fafc;object-fit:cover}.seller-item-noimg{display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;font-weight:600}.seller-item-row b{display:block;color:#111827;line-height:1.35;font-size:13px}.seller-item-row small{display:block;color:#64748b;margin-top:3px;font-size:12px}.seller-item-row span{font-weight:600;color:#334155}.seller-payment-info{display:grid;gap:5px;align-content:start;text-align:left}.seller-payment-info b{color:#6d28d9;font-size:18px;white-space:nowrap}.seller-payment-info span{color:#111827;font-weight:600}.seller-payment-info small{color:#64748b;line-height:1.35}.seller-status-info{display:grid;gap:7px;align-content:start}.seller-status-tag{display:inline-flex;align-items:center;justify-self:start;min-height:24px;border-radius:4px;padding:4px 8px;background:#e0f2fe;color:#0369a1;font-weight:600;font-size:12px}.seller-status-tag.processing{background:#eff6ff;color:#1d4ed8}.seller-status-tag.shipping{background:#f5f3ff;color:#6d28d9}.seller-status-tag.completed{background:#dcfce7;color:#15803d}.seller-status-tag.cancelled{background:#fee2e2;color:#b91c1c}.seller-status-tag.return{background:#fef3c7;color:#92400e}.seller-status-info strong{color:#111827}.seller-status-info p{margin:0;color:#64748b;font-size:12px;line-height:1.45}.seller-status-info small{color:#94a3b8}.seller-fulfillment-info{display:grid;gap:6px;align-content:start}.seller-fulfillment-info b{color:#111827}.seller-fulfillment-info span,.seller-fulfillment-info small{color:#64748b;line-height:1.4}.seller-fulfillment-info a{color:#2563eb;text-decoration:none;font-weight:600}.seller-order-actions{position:relative;overflow:visible}.seller-order-edit{position:relative}.seller-order-edit summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:34px;border:1px solid #6d28d9;background:#6d28d9;color:#fff;border-radius:4px;font-weight:600;cursor:pointer}.seller-order-edit summary::-webkit-details-marker{display:none}.seller-order-edit[open] summary{background:#6d28d9;border-color:#6d28d9}.seller-quick-form{position:absolute;right:0;top:calc(100% + 8px);z-index:40;display:grid;gap:7px;width:300px;padding:12px;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 18px 45px rgba(15,23,42,.22);text-align:left}.seller-quick-form textarea{min-height:66px}.seller-quick-form .seller-btn{width:100%}.seller-order-empty{background:#fff;border:1px dashed #cbd5e1;border-radius:6px;padding:36px;text-align:center;color:#64748b}.seller-order-empty div{font-size:38px}.seller-order-empty h2{margin:10px 0 5px;color:#111827}.seller-order-empty p{margin:0}.seller-orders-page .flash{margin-bottom:0}
@media(max-width:1180px){.seller-order-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.seller-search-box{grid-column:1/-1}.seller-filter-actions{grid-column:1/-1}.seller-order-table-head{display:none}.seller-order-card-body{grid-template-columns:1fr 1fr}.seller-order-card-body>div{border-bottom:1px solid #eef2f7}.seller-order-card-body>div:nth-child(2n){border-right:0}.seller-order-actions{grid-column:1/-1}.seller-quick-form{position:static;width:100%;box-shadow:none;margin-top:8px}.seller-order-edit summary{max-width:180px}}
@media(max-width:760px){.seller-order-titlebar{display:block}.seller-title-actions{justify-content:flex-start;margin-top:10px}.seller-order-tabs{top:0}.seller-order-tabs a{padding:0 14px}.seller-order-filter{grid-template-columns:1fr;padding:12px}.seller-summary-strip{display:grid;gap:5px}.seller-form-grid,.seller-product-line{grid-template-columns:1fr}.seller-order-card-header{align-items:flex-start;display:grid}.seller-order-identifiers{text-align:left}.seller-order-card-body{grid-template-columns:1fr}.seller-order-card-body>div{border-right:0}.seller-payment-info b{font-size:16px}.seller-order-card{border-radius:0;border-left-width:4px;border-right:0}.seller-create-card,.seller-order-panel{border-radius:0;border-left:0;border-right:0}}

/* SPX shipping workflow */
.seller-btn:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.2)}
.seller-spx-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.seller-spx-panel b{display:block;color:#111827;margin-bottom:4px}
.seller-spx-panel span{display:inline-flex;border-radius:999px;padding:4px 9px;font-weight:600;font-size:12px}
.seller-spx-panel span.ok{background:#dcfce7;color:#166534}
.seller-spx-panel span.err{background:#fee2e2;color:#b91c1c}
.seller-spx-panel small{display:block;color:#64748b;margin-top:5px}
.seller-spx-panel-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.seller-inline-action{display:inline-flex;margin:0}
.seller-fee-inline{display:flex;align-items:center;gap:6px;font-size:12px;color:#475569}.seller-fee-inline input{max-width:130px}.seller-fee-inline select{max-width:140px}
.seller-inline-check{display:flex!important;align-items:center;gap:7px;min-height:36px;border:1px solid #cbd5e1;border-radius:4px;padding:0 10px;background:#fff;color:#334155!important}
.seller-pickup-list{display:grid;gap:8px;margin-top:14px}
.seller-pickup-item{border:1px solid #e5e7eb;border-radius:6px;background:#f8fafc;padding:10px;display:grid;gap:3px}
.seller-pickup-item b{color:#111827}
.seller-pickup-item span,.seller-pickup-item small{color:#64748b;line-height:1.4}
.seller-spx-prepare-form{display:grid;gap:7px;margin-bottom:8px}
.seller-spx-prepare-form label{font-size:12px;color:#475569;margin-bottom:-3px}
.seller-spx-prepare-form select{min-height:34px;border:1px solid #cbd5e1;border-radius:4px;background:#fff}
.seller-spx-prepare-form .seller-btn{width:100%}
.seller-spx-prepare-form small{color:#b91c1c;line-height:1.35}
.seller-spx-created{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border-radius:4px;background:#ecfdf5;color:#15803d;font-weight:600;padding:0 10px;margin-bottom:8px}.seller-spx-print-label{width:100%;margin-bottom:8px}
.seller-spx-cancel-form{margin:0 0 8px}
@media(max-width:760px){.seller-spx-panel{display:grid}.seller-spx-panel-actions{justify-content:flex-start}.seller-spx-prepare-form{max-width:none}}




/* Bulk product actions + direct POS sale */
.product-bulk-menu summary{background:#0f172a;color:#fff;border-radius:12px;padding:.55rem .8rem;cursor:pointer;font-weight:600;box-shadow:0 8px 20px rgba(15,23,42,.12)}
.product-bulk-menu[open] summary{border-bottom-left-radius:0;border-bottom-right-radius:0}
.bulk-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin-left:6px;border-radius:999px;background:#f59e0b;color:#111827;font-size:.78rem;font-weight:600}
.product-bulk-form{min-width:280px;padding:12px;background:#fff;border:1px solid #e5e7eb;border-top:0;border-radius:0 0 14px 14px;box-shadow:0 18px 40px rgba(15,23,42,.14)}
.bulk-form-row{display:grid;gap:5px;margin-bottom:10px}.bulk-form-row label{font-size:.78rem;font-weight:600;color:#475569}.bulk-form-row select{width:100%;padding:.55rem .65rem;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.bulk-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pos-check-col input{width:17px;height:17px;cursor:pointer}
.direct-sale-page{display:flex;flex-direction:column;gap:16px}.direct-sale-titlebar{align-items:flex-start}.direct-sale-shell{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:16px;align-items:start}.direct-sale-products,.direct-sale-cart-card{border-radius:18px;box-shadow:0 14px 40px rgba(15,23,42,.08)}.direct-sale-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.direct-sale-toolbar h2,.direct-sale-cart-head h2{margin:0}.direct-sale-toolbar small,.direct-sale-cart-head small{color:#64748b}.direct-sale-search{display:flex;align-items:center;gap:8px;min-width:min(420px,100%);padding:8px 12px;border:1px solid #dbe3ef;border-radius:999px;background:#f8fafc}.direct-sale-search input{border:0;background:transparent;outline:0;width:100%;padding:5px}.direct-sale-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;max-height:calc(100vh - 260px);overflow:auto;padding-right:3px}.direct-sale-product-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;text-align:left;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:9px;cursor:pointer;transition:.15s ease}.direct-sale-product-card:hover{transform:translateY(-1px);border-color:#60a5fa;box-shadow:0 12px 26px rgba(59,130,246,.13)}.direct-sale-product-card img,.direct-sale-noimg{width:58px;height:58px;border-radius:14px;object-fit:cover;background:#eef2ff;display:flex;align-items:center;justify-content:center;font-weight:600;color:#4f46e5}.direct-sale-product-card b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.direct-sale-product-card small{display:block;color:#64748b;font-size:.75rem;line-height:1.25}.direct-sale-product-card strong{display:block;margin-top:5px;color:#dc2626}.direct-sale-empty,.direct-sale-cart-empty{padding:24px;text-align:center;color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px}.direct-sale-cart-card{position:sticky;top:12px}.direct-sale-cart-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.direct-sale-customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.direct-sale-customer-grid label,.direct-sale-totals label{display:grid;gap:5px;font-weight:600;color:#475569;font-size:.8rem}.direct-sale-customer-grid input,.direct-sale-totals input,.direct-sale-totals select,.direct-sale-totals textarea{width:100%;border:1px solid #d8e0ec;border-radius:12px;padding:.58rem .65rem;background:#fff}.direct-sale-cart-lines{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto;padding-right:2px}.direct-sale-line{display:grid;grid-template-columns:minmax(0,1fr) 58px 86px 80px 30px;gap:7px;align-items:center;border:1px solid #edf2f7;border-radius:14px;padding:8px;background:#fff}.direct-sale-line b{display:block;font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.direct-sale-line small{display:block;color:#64748b;font-size:.72rem}.direct-sale-line input{width:100%;border:1px solid #dbe3ef;border-radius:10px;padding:.45rem;text-align:right}.direct-sale-line strong{text-align:right;font-size:.82rem;color:#111827}.line-remove{border:0;background:#fee2e2;color:#b91c1c;border-radius:10px;width:28px;height:28px;cursor:pointer}.direct-sale-totals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.direct-sale-totals .full{grid-column:1/-1}.direct-sale-total-line{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-top:1px solid #e5e7eb}.direct-sale-total-line b{font-size:1.05rem}.direct-sale-total-line.change b{color:#0f766e}.direct-sale-checkout{width:100%;margin-top:12px;padding:.8rem 1rem;font-size:1rem;border-radius:14px}.direct-sale-receipt{border-left:5px solid #10b981}.direct-sale-receipt-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.direct-sale-receipt-head span{display:block;color:#64748b;font-size:.85rem}.direct-sale-receipt-head strong{font-size:1.2rem;color:#059669}@media (max-width:1100px){.direct-sale-shell{grid-template-columns:1fr}.direct-sale-cart-card{position:static}.direct-sale-product-grid{max-height:none}.direct-sale-toolbar{align-items:stretch;flex-direction:column}.direct-sale-search{min-width:0}.direct-sale-line{grid-template-columns:minmax(0,1fr) 52px 74px 72px 28px}}@media (max-width:640px){.direct-sale-customer-grid,.direct-sale-totals{grid-template-columns:1fr}.direct-sale-product-grid{grid-template-columns:1fr}.product-bulk-form{min-width:230px}}

/* POS bán trực tiếp - chỉnh theo mẫu bán lẻ: chỉ hiện đơn bán, sản phẩm chỉ xuất hiện khi tìm kiếm */
.direct-sale-pos-layout{grid-template-columns:minmax(760px,1fr) 360px;align-items:start}.direct-sale-order-panel{border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.07);padding:0;overflow:visible}.direct-sale-searchbar{position:relative;padding:12px;background:#252b36;border-radius:14px 14px 0 0}.direct-sale-search-main{display:flex;align-items:center;width:100%;background:#fff;border-radius:8px;min-height:42px;box-shadow:0 1px 4px rgba(0,0,0,.08);overflow:hidden}.direct-sale-search-type,.direct-sale-add-layer{width:44px;min-width:44px;align-self:stretch;border:0;background:#f3f4f6;color:#374151;font-weight:600;cursor:pointer}.direct-sale-search-type{border-right:1px solid #e5e7eb}.direct-sale-add-layer{border-left:1px solid #e5e7eb;color:#059669;font-size:1.15rem}.direct-sale-search-main input{flex:1;border:0;outline:0;padding:0 12px;font-size:.96rem;background:#fff}.direct-sale-suggestions{position:absolute;left:12px;right:12px;top:58px;z-index:40;background:#fff;border:1px solid #d7dde8;border-radius:10px;box-shadow:0 18px 42px rgba(15,23,42,.18);max-height:370px;overflow:auto;padding:6px}.direct-sale-suggestion-item{width:100%;border:0;background:#fff;display:grid;grid-template-columns:44px minmax(0,1fr) 120px;gap:10px;align-items:center;text-align:left;padding:8px;border-radius:8px;cursor:pointer}.direct-sale-suggestion-item:hover{background:#f1f5f9}.direct-sale-suggestion-img img,.direct-sale-suggestion-img .direct-sale-noimg{width:42px;height:42px;border-radius:8px;object-fit:cover}.direct-sale-suggestion-info b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#1d4ed8}.direct-sale-suggestion-info small{display:block;color:#64748b;font-size:.78rem}.direct-sale-suggestion-item strong{text-align:right;color:#dc2626}.direct-sale-suggestion-empty{padding:14px;text-align:center;color:#64748b}.direct-sale-order-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-left:1px solid #e5e7eb;border-right:1px solid #e5e7eb}.direct-sale-order-title h2{margin:0;font-size:1.05rem}.direct-sale-order-title small{color:#64748b}.direct-sale-table-wrap{border:1px solid #e5e7eb;border-top:0;border-radius:0 0 14px 14px;overflow:auto;background:#fff;min-height:430px;max-height:calc(100vh - 245px)}.direct-sale-order-table{width:100%;min-width:1080px;border-collapse:collapse;font-size:.86rem}.direct-sale-order-table thead th{position:sticky;top:0;z-index:2;background:#f3f4f6;color:#374151;font-weight:600;text-align:center;border-bottom:1px solid #e5e7eb;padding:9px 7px;white-space:nowrap}.direct-sale-order-table th.w-check{width:42px}.direct-sale-order-table th.w-img{width:56px}.direct-sale-order-table th.w-action{width:42px}.direct-sale-order-table td{border-bottom:1px solid #edf2f7;padding:7px;text-align:right;vertical-align:top;background:#fff}.direct-sale-order-table tr:hover td{background:#f8fafc}.direct-sale-order-table .text-left{text-align:left}.direct-sale-order-table input,.direct-sale-order-table select{border:0;border-bottom:1px solid #cbd5e1;border-radius:0;background:transparent;padding:5px 4px;outline:0;text-align:right;max-width:92px}.direct-sale-order-table input:focus,.direct-sale-order-table select:focus{border-bottom-color:#0c83ff;background:#eef6ff}.direct-sale-order-table .line-img img,.direct-sale-order-table .line-img .direct-sale-noimg{width:36px;height:36px;border-radius:8px;object-fit:cover}.direct-sale-order-table .line-product b{display:block;color:#1d4ed8;font-weight:600;line-height:1.3;max-width:270px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.direct-sale-order-table .line-product small,.direct-sale-order-table .line-code{display:block;color:#64748b;font-size:.75rem;line-height:1.3}.direct-sale-order-table .line-stock{color:#dc2626;white-space:nowrap}.direct-sale-order-table .line-money{white-space:nowrap}.direct-sale-order-table .line-money.fw{font-weight:600}.direct-sale-order-table .line-discount{display:flex;justify-content:flex-end;gap:4px}.direct-sale-order-table .line-discount select{width:44px}.direct-sale-order-table .line-discount input{max-width:74px}.direct-sale-order-table .line-remove{border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;width:28px;height:28px;cursor:pointer;font-size:1.05rem;line-height:1}.direct-sale-empty-row td{padding:0!important;text-align:center!important}.direct-sale-empty-row div{margin:28px;padding:30px 16px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b}.direct-sale-payment-card{border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.07);padding:14px;position:sticky;top:12px}.direct-sale-payment-card .direct-sale-cart-head{border-bottom:1px solid #e5e7eb;padding-bottom:10px}.direct-sale-payment-card .direct-sale-customer-grid{grid-template-columns:1fr;gap:8px}.direct-sale-payment-card .direct-sale-totals{grid-template-columns:1fr;gap:9px}.direct-sale-payment-card .direct-sale-total-line{border-top:0;padding:7px 0}.direct-sale-payment-card .direct-sale-final-line{border-top:1px solid #e5e7eb;margin-top:2px;padding-top:12px}.direct-sale-payment-card .direct-sale-final-line b{font-size:1.25rem;color:#dc2626}.direct-sale-payment-card .direct-sale-note textarea{border-left:0;border-right:0;border-top:0;border-radius:0;resize:vertical;min-height:38px}.direct-sale-payment-card .direct-sale-checkout{border-radius:8px;padding:.82rem 1rem;margin-top:14px}.direct-sale-noimg{background:#eef2ff;color:#4f46e5;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:.7rem}
@media (max-width:1180px){.direct-sale-pos-layout{grid-template-columns:1fr}.direct-sale-table-wrap{max-height:none}.direct-sale-payment-card{position:static}.direct-sale-order-table{min-width:980px}}@media (max-width:640px){.direct-sale-searchbar{padding:10px}.direct-sale-suggestions{left:10px;right:10px;top:54px}.direct-sale-suggestion-item{grid-template-columns:38px minmax(0,1fr);}.direct-sale-suggestion-item strong{grid-column:2;text-align:left}.direct-sale-order-title{align-items:flex-start;flex-direction:column}.direct-sale-table-wrap{min-height:320px}}

/* POS v3: giữ sản phẩm trong đơn bán đúng từng cột của bảng */
.direct-sale-order-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.direct-sale-order-table{table-layout:fixed}.direct-sale-order-table tr.direct-sale-line{display:table-row!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important}.direct-sale-order-table tr.direct-sale-line>td{display:table-cell!important;vertical-align:middle!important}.direct-sale-order-table th[data-col="check"],.direct-sale-order-table td[data-col="check"]{width:44px;text-align:center}.direct-sale-order-table th[data-col="image"],.direct-sale-order-table td[data-col="image"]{width:60px;text-align:center}.direct-sale-order-table th[data-col="product"],.direct-sale-order-table td[data-col="product"]{width:240px}.direct-sale-order-table th[data-col="price"],.direct-sale-order-table td[data-col="price"]{width:108px}.direct-sale-order-table th[data-col="qty"],.direct-sale-order-table td[data-col="qty"]{width:86px}.direct-sale-order-table th[data-col="stock"],.direct-sale-order-table td[data-col="stock"]{width:90px}.direct-sale-order-table th[data-col="goods"],.direct-sale-order-table td[data-col="goods"]{width:112px}.direct-sale-order-table th[data-col="discount"],.direct-sale-order-table td[data-col="discount"]{width:128px}.direct-sale-order-table th[data-col="afterDiscount"],.direct-sale-order-table td[data-col="afterDiscount"]{width:126px}.direct-sale-order-table th[data-col="total"],.direct-sale-order-table td[data-col="total"]{width:116px}.direct-sale-order-table th[data-col="payment"],.direct-sale-order-table td[data-col="payment"]{width:116px}.direct-sale-order-table th[data-col="action"],.direct-sale-order-table td[data-col="action"]{width:46px;text-align:center}.direct-sale-order-table td[data-col="price"] input,.direct-sale-order-table td[data-col="qty"] input{width:100%;max-width:none}.direct-sale-order-table td[data-col="product"]{text-align:left}.direct-sale-order-table .line-product b{max-width:210px}.direct-sale-order-table .line-img img,.direct-sale-order-table .line-img .direct-sale-noimg{display:inline-flex}.direct-sale-column-wrap{position:relative}.direct-sale-column-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:235px;background:#fff;border:1px solid #dbe3ef;border-radius:12px;box-shadow:0 18px 42px rgba(15,23,42,.18);padding:10px;text-align:left}.direct-sale-column-menu-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #edf2f7;padding-bottom:8px;margin-bottom:8px}.direct-sale-column-menu-head b{font-size:.9rem}.direct-sale-column-menu-head button{border:0;background:#eef6ff;color:#0c83ff;border-radius:8px;padding:5px 8px;cursor:pointer}.direct-sale-column-menu label{display:flex;align-items:center;gap:8px;padding:7px 4px;border-radius:8px;cursor:pointer;font-size:.88rem}.direct-sale-column-menu label:hover{background:#f8fafc}.direct-sale-column-menu input{width:16px;height:16px}.direct-sale-order-table [data-col][style*="display: none"]{display:none!important}@media (max-width:640px){.direct-sale-order-actions{justify-content:flex-start}.direct-sale-column-menu{left:0;right:auto}}

/* POS mobile + bill print */
.direct-sale-receipt-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.direct-sale-submit-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:14px}.direct-sale-submit-row .direct-sale-checkout{margin-top:0}.direct-sale-customer-qr-toggle{margin-top:0!important;background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;font-weight:600}.direct-sale-customer-qr-toggle.is-on{background:#0f766e!important;color:#fff!important;border-color:#0f766e!important}.direct-sale-customer-qr-toggle:disabled{opacity:.55;cursor:not-allowed}.direct-sale-print-submit{background:#f8fafc;color:#0f172a;border:1px solid #cbd5e1}.direct-sale-print-area{display:none}
@media (max-width:720px){
  .direct-sale-page{gap:12px}.direct-sale-titlebar{gap:10px}.direct-sale-titlebar h1{font-size:1.35rem}.direct-sale-titlebar p{font-size:.9rem}.direct-sale-titlebar .pos-page-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.direct-sale-titlebar .pos-page-actions .btn{width:100%;justify-content:center}.direct-sale-pos-layout{display:flex!important;flex-direction:column;gap:12px}.direct-sale-order-panel{order:1;border-radius:14px;overflow:visible}.direct-sale-payment-card{order:2;position:static!important;border-radius:14px;padding:12px}.direct-sale-searchbar{border-radius:14px;padding:10px}.direct-sale-search-main{min-height:48px;border-radius:10px}.direct-sale-search-type,.direct-sale-add-layer{width:42px;min-width:42px}.direct-sale-search-main input{font-size:16px;padding:0 10px}.direct-sale-suggestions{left:10px;right:10px;top:58px;max-height:68vh;border-radius:12px}.direct-sale-suggestion-item{grid-template-columns:42px minmax(0,1fr);gap:9px;padding:9px}.direct-sale-suggestion-item strong{grid-column:2;text-align:left;font-size:.9rem}.direct-sale-order-title{padding:12px;gap:10px}.direct-sale-order-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.direct-sale-order-actions .btn{width:100%;justify-content:center}.direct-sale-column-wrap{position:static}.direct-sale-column-menu{position:absolute;left:12px;right:12px;top:auto;width:auto;max-height:70vh;overflow:auto}.direct-sale-table-wrap{border:0;border-radius:0;min-height:210px;max-height:none;overflow:visible;background:transparent}.direct-sale-order-table{display:block;width:100%;min-width:0!important;border-collapse:separate;table-layout:auto;font-size:.9rem}.direct-sale-order-table thead{display:none}.direct-sale-order-table tbody{display:block}.direct-sale-order-table tr.direct-sale-line{display:grid!important;grid-template-columns:58px minmax(0,1fr) 36px;gap:8px;margin:10px 0;padding:10px!important;border:1px solid #e2e8f0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 22px rgba(15,23,42,.06)}.direct-sale-order-table tr.direct-sale-line>td{display:grid!important;border:0!important;background:transparent!important;padding:0!important;text-align:left!important;vertical-align:middle!important;width:auto!important}.direct-sale-order-table td[data-col="image"]{grid-column:1;grid-row:1 / span 2;align-self:start;justify-content:center}.direct-sale-order-table td[data-col="image"] img,.direct-sale-order-table td[data-col="image"] .direct-sale-noimg{width:54px!important;height:54px!important;border-radius:12px!important}.direct-sale-order-table td[data-col="product"]{grid-column:2;grid-row:1 / span 2;min-width:0;align-self:start}.direct-sale-order-table .line-product b{max-width:100%;white-space:normal;font-size:.95rem}.direct-sale-order-table .line-product small,.direct-sale-order-table .line-code{font-size:.78rem}.direct-sale-order-table td[data-col="action"]{grid-column:3;grid-row:1;justify-content:end;align-self:start}.direct-sale-order-table td[data-col="check"]{grid-column:3;grid-row:2;justify-content:end;align-self:start}.direct-sale-order-table td[data-mobile-label]{grid-column:1 / -1;grid-template-columns:124px minmax(0,1fr);align-items:center;gap:8px;padding-top:8px!important;margin-top:4px;border-top:1px solid #f1f5f9!important}.direct-sale-order-table td[data-mobile-label]::before{content:attr(data-mobile-label);font-size:.78rem;font-weight:600;color:#64748b;text-align:left}.direct-sale-order-table td[data-col="price"] input,.direct-sale-order-table td[data-col="qty"] input,.direct-sale-order-table td[data-col="discount"] input,.direct-sale-order-table td[data-col="discount"] select{width:100%;max-width:none;min-height:36px;font-size:16px}.direct-sale-order-table .line-discount{display:grid;grid-template-columns:58px 1fr;gap:6px;width:100%}.direct-sale-order-table .line-money{text-align:right!important;font-weight:600}.direct-sale-empty-row,.direct-sale-empty-row tbody{display:block}.direct-sale-empty-row td{display:block!important}.direct-sale-empty-row div{margin:10px 0;padding:24px 12px}.direct-sale-customer-grid,.direct-sale-payment-card .direct-sale-customer-grid,.direct-sale-totals,.direct-sale-payment-card .direct-sale-totals{grid-template-columns:1fr}.direct-sale-submit-row{grid-template-columns:1fr}.direct-sale-checkout{min-height:46px}.direct-sale-receipt-head{align-items:flex-start;flex-direction:column}.direct-sale-receipt-actions{width:100%;justify-content:space-between}.direct-sale-order-table [data-col][style*="display: none"]{display:none!important}
}
@media print{
  @page{size:80mm auto;margin:4mm}
  body *{visibility:hidden!important}.direct-sale-print-area,.direct-sale-print-area *{visibility:visible!important}.direct-sale-print-area{display:block!important;position:absolute;left:0;top:0;width:72mm;background:#fff;color:#111;font-family:Arial,Helvetica,sans-serif}.print-bill{width:72mm;padding:0;font-size:11px;line-height:1.35}.print-bill-shop{text-align:center;font-weight:600;font-size:15px;text-transform:uppercase}.print-bill-subtitle{text-align:center;font-weight:600;margin:2px 0 8px}.print-bill-meta,.print-bill-total{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:2px 0}.print-bill-meta span,.print-bill-total span{color:#333}.print-bill-meta b,.print-bill-total b{text-align:right}.print-bill-line{border-top:1px dashed #111;margin:7px 0}.print-bill-items{width:100%;border-collapse:collapse}.print-bill-items th,.print-bill-items td{padding:3px 0;text-align:right;vertical-align:top;border-bottom:1px dotted #bbb}.print-bill-items th:first-child,.print-bill-items td:first-child{text-align:left;width:40%}.print-bill-items td small{display:block;color:#555;font-size:9px}.print-bill-total.final{font-size:13px;font-weight:600}.print-bill-thanks{text-align:center;margin-top:10px;font-weight:600}.no-print{display:none!important}
}

/* POS v5: mobile dùng bảng ngang + các khối full đều nhau */
@media (max-width:720px){
  .direct-sale-page,
  .direct-sale-shell,
  .direct-sale-pos-layout,
  .direct-sale-order-panel,
  .direct-sale-payment-card{
    width:100%!important;
    max-width:100%!important;
  }
  .direct-sale-pos-layout{
    align-items:stretch!important;
  }
  .direct-sale-order-panel,
  .direct-sale-payment-card{
    flex:0 0 auto!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .direct-sale-payment-card{
    align-self:stretch!important;
  }
  .direct-sale-titlebar .pos-page-actions,
  .direct-sale-order-actions,
  .direct-sale-submit-row{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .direct-sale-titlebar .pos-page-actions .btn,
  .direct-sale-order-actions .btn,
  .direct-sale-submit-row .btn{
    width:100%!important;
    min-width:0!important;
    text-align:center!important;
  }
  .direct-sale-submit-row{grid-template-columns:1fr!important;}
  .direct-sale-searchbar,
  .direct-sale-order-title,
  .direct-sale-table-wrap{
    width:100%!important;
  }
  .direct-sale-table-wrap{
    border:1px solid #e5e7eb!important;
    border-top:0!important;
    border-radius:0 0 14px 14px!important;
    background:#fff!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch;
    min-height:260px!important;
    max-height:none!important;
    padding-bottom:6px!important;
  }
  .direct-sale-order-table{
    display:table!important;
    width:100%!important;
    min-width:1080px!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    font-size:.84rem!important;
  }
  .direct-sale-order-table thead{
    display:table-header-group!important;
  }
  .direct-sale-order-table tbody{
    display:table-row-group!important;
  }
  .direct-sale-order-table tr.direct-sale-line,
  .direct-sale-order-table tr.direct-sale-empty-row{
    display:table-row!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }
  .direct-sale-order-table tr.direct-sale-line>td,
  .direct-sale-order-table tr.direct-sale-empty-row>td{
    display:table-cell!important;
    width:auto!important;
    border-bottom:1px solid #edf2f7!important;
    padding:7px!important;
    background:#fff!important;
    text-align:right!important;
    vertical-align:middle!important;
    white-space:nowrap!important;
  }
  .direct-sale-order-table thead th{
    display:table-cell!important;
    position:sticky!important;
    top:0!important;
    z-index:3!important;
    white-space:nowrap!important;
  }
  .direct-sale-order-table td[data-mobile-label]::before{
    content:none!important;
  }
  .direct-sale-order-table td[data-col="check"],
  .direct-sale-order-table td[data-col="image"],
  .direct-sale-order-table td[data-col="action"]{
    text-align:center!important;
  }
  .direct-sale-order-table td[data-col="product"]{
    text-align:left!important;
    white-space:normal!important;
  }
  .direct-sale-order-table td[data-col="product"] b{
    display:block!important;
    max-width:210px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .direct-sale-order-table td[data-col="product"] small,
  .direct-sale-order-table td[data-col="product"] .line-code{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .direct-sale-order-table td[data-col="image"] img,
  .direct-sale-order-table td[data-col="image"] .direct-sale-noimg{
    width:42px!important;
    height:42px!important;
    border-radius:8px!important;
  }
  .direct-sale-order-table input,
  .direct-sale-order-table select{
    min-height:32px!important;
    font-size:15px!important;
  }
  .direct-sale-order-table td[data-col="price"] input,
  .direct-sale-order-table td[data-col="qty"] input{
    width:100%!important;
    max-width:none!important;
  }
  .direct-sale-order-table .line-discount{
    display:flex!important;
    justify-content:flex-end!important;
    gap:4px!important;
    width:auto!important;
  }
  .direct-sale-order-table .line-discount select{
    width:44px!important;
  }
  .direct-sale-order-table .line-discount input{
    max-width:74px!important;
  }
  .direct-sale-empty-row div{
    margin:18px!important;
    padding:24px 12px!important;
  }
  .direct-sale-payment-card .direct-sale-customer-grid,
  .direct-sale-payment-card .direct-sale-totals{
    width:100%!important;
  }
}
@media (max-width:420px){
  .direct-sale-titlebar .pos-page-actions,
  .direct-sale-order-actions{
    grid-template-columns:1fr 1fr!important;
  }
  .direct-sale-submit-row{
    grid-template-columns:1fr!important;
  }
}


/* POS v6: bill in 80mm receipt, numbers stay inside and align with SKU row */
@media print{
  @page{size:80mm auto;margin:3mm!important}
  html,body{width:80mm!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
  body *{visibility:hidden!important}
  .direct-sale-print-area,.direct-sale-print-area *{visibility:visible!important}
  .direct-sale-print-area{display:block!important;position:absolute!important;left:0!important;top:0!important;width:74mm!important;max-width:74mm!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important;font-family:Arial,Helvetica,sans-serif!important;overflow:hidden!important}
  .print-bill{display:block!important;width:74mm!important;max-width:74mm!important;min-width:0!important;margin:0!important;padding:0!important;font-size:11px!important;line-height:1.32!important;color:#111!important;box-sizing:border-box!important}
  .print-bill-shop{text-align:center!important;font-weight:600!important;font-size:15px!important;text-transform:uppercase!important;margin:0!important}
  .print-bill-subtitle{text-align:center!important;font-weight:600!important;margin:1mm 0 2mm!important}
  .print-bill-meta,.print-bill-total{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:3mm!important;margin:1mm 0!important;width:100%!important}
  .print-bill-meta span,.print-bill-total span{color:#333!important;flex:0 0 auto!important}
  .print-bill-meta b,.print-bill-total b{text-align:right!important;min-width:0!important;word-break:break-word!important}
  .print-bill-line{border-top:1px dashed #111!important;margin:2mm 0!important;width:100%!important}
  .print-bill-items{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;margin:0!important;background:#fff!important}
  .print-bill-items col.bill-col-product{width:46%!important}
  .print-bill-items col.bill-col-qty{width:10%!important}
  .print-bill-items col.bill-col-price{width:21%!important}
  .print-bill-items col.bill-col-total{width:23%!important}
  .print-bill-items th,.print-bill-items td{display:table-cell!important;min-width:0!important;max-width:none!important;padding:1mm 0!important;border:0!important;border-bottom:1px dotted #bbb!important;background:#fff!important;color:#111!important;box-shadow:none!important;vertical-align:bottom!important;font-size:10.5px!important;line-height:1.25!important;white-space:normal!important;overflow:hidden!important}
  .print-bill-items th{font-weight:600!important;text-align:right!important;white-space:nowrap!important}
  .print-bill-items th:first-child,.print-bill-items td:first-child{text-align:left!important;padding-right:1.5mm!important;word-break:break-word!important}
  .print-bill-items th:nth-child(2),.print-bill-items td:nth-child(2){text-align:center!important;padding-left:.5mm!important;padding-right:.5mm!important}
  .print-bill-items th:nth-child(3),.print-bill-items td:nth-child(3),.print-bill-items th:nth-child(4),.print-bill-items td:nth-child(4){text-align:right!important;white-space:nowrap!important}
  .print-bill-items td small{display:block!important;color:#555!important;font-size:9px!important;line-height:1.2!important;margin-top:.5mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .print-bill-total.final{font-size:13px!important;font-weight:600!important}
  .print-bill-thanks{text-align:center!important;margin-top:3mm!important;font-weight:600!important}
  .no-print{display:none!important}
}


/* POS v7: bill mềm theo khổ giấy, tên sản phẩm trải ngang, không sinh trang trắng khi dùng fallback print */
@media print{
  @page{size:auto;margin:4mm!important}
  html,body{width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
  .direct-sale-print-area{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important;font-family:Arial,Helvetica,sans-serif!important;overflow:visible!important}
  .print-bill{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;font-size:11px!important;line-height:1.32!important;color:#111!important;box-sizing:border-box!important;background:#fff!important;break-after:auto!important;page-break-after:auto!important}
  .print-bill-items{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}
  .print-bill-items-head,.print-bill-product-row{display:grid!important;grid-template-columns:minmax(0,1fr) 28px minmax(54px,.35fr) minmax(54px,.35fr)!important;column-gap:6px!important;align-items:end!important;width:100%!important;min-width:0!important}
  .print-bill-items-head{font-weight:600!important;padding:0 0 1mm!important;margin:0 0 .5mm!important;border-bottom:1px dotted #bbb!important}
  .print-bill-items-head span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .print-bill-items-head span:first-child{text-align:left!important}.print-bill-items-head span:nth-child(2){text-align:center!important}.print-bill-items-head span:nth-child(n+3){text-align:right!important}
  .print-bill-item{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:1mm 0!important;border-bottom:1px dotted #bbb!important;break-inside:avoid!important;page-break-inside:avoid!important;background:#fff!important;color:#111!important}
  .print-bill-product-name{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 .5mm!important;font-weight:400!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.25!important;color:#111!important}
  .print-bill-product-row span{display:block!important;min-width:0!important;line-height:1.2!important;color:#111!important}
  .print-bill-sku{color:#555!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important}
  .print-bill-qty{text-align:center!important;white-space:nowrap!important}
  .print-bill-price,.print-bill-money{text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important}
  .print-bill-total.final{font-size:13px!important;font-weight:600!important}
  .print-bill-thanks{text-align:center!important;margin-top:3mm!important;font-weight:600!important}
}

/* POS v8: giao diện PC rộng, không bị ép thành layout mobile/tablet */
@media screen and (min-width:721px){
  .wrap:has(.direct-sale-page){
    max-width:none!important;
    width:100%!important;
    margin:14px auto!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .direct-sale-page{
    width:100%!important;
    max-width:none!important;
  }
  .direct-sale-titlebar{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:16px!important;
    width:100%!important;
  }
  .direct-sale-titlebar .pos-page-actions{
    display:flex!important;
    width:auto!important;
    min-width:max-content!important;
    grid-template-columns:none!important;
    justify-content:flex-end!important;
  }
  .direct-sale-titlebar .pos-page-actions .btn{
    width:auto!important;
  }
  .direct-sale-shell.direct-sale-pos-layout{
    display:grid!important;
    width:100%!important;
    max-width:none!important;
    grid-template-columns:minmax(0,1fr) minmax(340px,390px)!important;
    gap:16px!important;
    align-items:start!important;
  }
  .direct-sale-order-panel{
    min-width:0!important;
    width:100%!important;
    order:initial!important;
  }
  .direct-sale-payment-card{
    width:100%!important;
    max-width:390px!important;
    min-width:340px!important;
    order:initial!important;
    align-self:start!important;
    position:sticky!important;
    top:12px!important;
  }
  .direct-sale-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:auto!important;
    min-height:520px!important;
    max-height:calc(100vh - 245px)!important;
    background:#fff!important;
  }
  .direct-sale-order-table{
    display:table!important;
    width:100%!important;
    min-width:1120px!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  .direct-sale-order-table thead{display:table-header-group!important}
  .direct-sale-order-table tbody{display:table-row-group!important}
  .direct-sale-order-table tr.direct-sale-line,
  .direct-sale-order-table tr.direct-sale-empty-row{display:table-row!important}
  .direct-sale-order-table tr.direct-sale-line>td,
  .direct-sale-order-table tr.direct-sale-empty-row>td{display:table-cell!important}
  .direct-sale-order-actions{
    display:flex!important;
    width:auto!important;
    grid-template-columns:none!important;
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
  }
  .direct-sale-order-actions .btn{width:auto!important}
  .direct-sale-searchbar{border-radius:14px 14px 0 0!important}
}
@media screen and (min-width:721px) and (max-width:1024px){
  .wrap:has(.direct-sale-page){padding-left:10px!important;padding-right:10px!important}
  .direct-sale-shell.direct-sale-pos-layout{
    grid-template-columns:minmax(0,1fr) minmax(300px,330px)!important;
    gap:10px!important;
  }
  .direct-sale-payment-card{
    max-width:330px!important;
    min-width:300px!important;
    padding:12px!important;
  }
  .direct-sale-table-wrap{min-height:480px!important}
  .direct-sale-order-table{min-width:1040px!important;font-size:.82rem!important}
}

/* Direct sale desktop POS: force PC layout after resize without touching mobile rules. */
@media screen and (min-width:1024px){
  html.direct-sale-desktop body{background:#dfe5ed!important;overflow-x:hidden}
  html.direct-sale-desktop body .topbar,
  html.direct-sale-desktop body .nav{display:none!important}
  html.direct-sale-desktop body .wrap:has(.direct-sale-page){max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
  html.direct-sale-desktop .direct-sale-page{width:100%!important;min-height:100vh!important;gap:0!important;padding:0!important}
  html.direct-sale-desktop .direct-sale-titlebar{display:none!important}
  html.direct-sale-desktop .direct-sale-shell.direct-sale-pos-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 452px!important;grid-template-areas:"order pay" "customer pay"!important;gap:10px!important;align-items:start!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  html.direct-sale-desktop .direct-sale-order-panel{grid-area:order!important;min-width:0!important;width:100%!important;margin:0!important;border:1px solid #cbd5e1!important;border-radius:0 0 5px 5px!important;box-shadow:none!important;background:#fff!important;overflow:visible!important}
  html.direct-sale-desktop .direct-sale-payment-card{grid-area:pay!important;position:sticky!important;top:58px!important;width:100%!important;max-width:none!important;min-width:0!important;margin:58px 10px 0 0!important;padding:10px!important;border:1px solid #cbd5e1!important;border-radius:5px!important;box-shadow:none!important;background:#fff!important;align-self:start!important}
  html.direct-sale-desktop .direct-sale-desktop-customer-panel{grid-area:customer!important;display:block!important;margin:0!important;padding:0!important;border:1px solid #cbd5e1!important;border-radius:5px!important;box-shadow:none!important;background:#fff!important;min-height:260px!important}
  html.direct-sale-desktop .direct-sale-searchbar{position:sticky!important;top:0!important;z-index:35!important;height:50px!important;padding:0!important;background:#e7edf5!important;border-bottom:1px solid #cbd5e1!important;border-radius:0!important;display:flex!important;align-items:center!important}
  html.direct-sale-desktop .direct-sale-search-main{width:496px!important;max-width:48vw!important;height:50px!important;min-height:50px!important;border-radius:0!important;border-right:1px solid #cbd5e1!important;box-shadow:none!important;background:#fff!important}
  html.direct-sale-desktop .direct-sale-search-type,
  html.direct-sale-desktop .direct-sale-add-layer{height:50px!important;background:#f8fafc!important;color:#0f172a!important}
  html.direct-sale-desktop .direct-sale-search-main input{height:50px!important;font-size:14px!important;color:#334155!important}
  html.direct-sale-desktop .direct-sale-suggestions{left:52px!important;right:auto!important;top:50px!important;width:min(620px,calc(100vw - 520px))!important;max-height:430px!important;border-radius:0 0 8px 8px!important}
  html.direct-sale-desktop .direct-sale-order-title{display:none!important}
  html.direct-sale-desktop .direct-sale-table-wrap{width:100%!important;max-width:100%!important;min-height:504px!important;max-height:calc(100vh - 318px)!important;overflow:auto!important;border:0!important;border-radius:0!important;background:#fff!important;padding:0!important}
  html.direct-sale-desktop .direct-sale-order-table{display:table!important;width:100%!important;min-width:1120px!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:14px!important;background:#fff!important}
  html.direct-sale-desktop .direct-sale-order-table thead{display:table-header-group!important}
  html.direct-sale-desktop .direct-sale-order-table tbody{display:table-row-group!important}
  html.direct-sale-desktop .direct-sale-order-table thead th{display:table-cell!important;position:sticky!important;top:0!important;z-index:4!important;background:#f4f6f9!important;color:#0f172a!important;border-bottom:1px solid #d6dde8!important;padding:9px 7px!important;font-weight:600!important;text-align:center!important}
  html.direct-sale-desktop .direct-sale-order-table tr.direct-sale-line,
  html.direct-sale-desktop .direct-sale-order-table tr.direct-sale-empty-row{display:table-row!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
  html.direct-sale-desktop .direct-sale-order-table tr.direct-sale-line>td,
  html.direct-sale-desktop .direct-sale-order-table tr.direct-sale-empty-row>td{display:table-cell!important;width:auto!important;border-bottom:1px solid #d6dde8!important;padding:7px!important;background:#fff!important;text-align:right!important;vertical-align:middle!important;white-space:nowrap!important}
  html.direct-sale-desktop .direct-sale-order-table tr:hover td{background:#fbfdff!important}
  html.direct-sale-desktop .direct-sale-order-table td[data-mobile-label]::before{content:none!important}
  html.direct-sale-desktop .direct-sale-order-table td[data-col="check"],
  html.direct-sale-desktop .direct-sale-order-table td[data-col="image"],
  html.direct-sale-desktop .direct-sale-order-table td[data-col="action"]{text-align:center!important}
  html.direct-sale-desktop .direct-sale-order-table td[data-col="product"]{text-align:left!important;white-space:normal!important}
  html.direct-sale-desktop .direct-sale-order-table .line-product b{max-width:250px!important;color:#0068ff!important;white-space:normal!important;line-height:1.35!important;font-weight:500!important}
  html.direct-sale-desktop .direct-sale-order-table .line-product small{display:none!important}
  html.direct-sale-desktop .direct-sale-order-table .line-code{color:#0f172a!important;font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html.direct-sale-desktop .direct-sale-order-table td[data-col="image"] img,
  html.direct-sale-desktop .direct-sale-order-table td[data-col="image"] .direct-sale-noimg{width:42px!important;height:42px!important;border-radius:0!important;object-fit:contain!important;background:#fff!important}
  html.direct-sale-desktop .direct-sale-order-table input,
  html.direct-sale-desktop .direct-sale-order-table select{min-height:30px!important;border:0!important;border-bottom:1px solid #d1d5db!important;border-radius:0!important;background:transparent!important;font-size:14px!important;box-shadow:none!important}
  html.direct-sale-desktop .direct-sale-order-table .line-discount{display:flex!important;justify-content:flex-end!important;gap:4px!important;width:auto!important}
  html.direct-sale-desktop .direct-sale-order-table .line-discount select{width:46px!important;background:#fff!important;border-radius:4px!important;border:1px solid #eef2f7!important}
  html.direct-sale-desktop .direct-sale-order-table .line-discount input{max-width:86px!important}
  html.direct-sale-desktop .direct-sale-order-table .line-stock{color:#16a34a!important}
  html.direct-sale-desktop .direct-sale-order-table .line-money.fw{font-weight:600!important;color:#0f172a!important}
  html.direct-sale-desktop .direct-sale-empty-row div{margin:28px!important;padding:30px 16px!important;border:1px dashed #cbd5e1!important;border-radius:10px!important;background:#f8fafc!important;color:#64748b!important}
  html.direct-sale-desktop .direct-sale-payment-card .direct-sale-cart-head{border-bottom:1px solid #d1d5db!important;padding:8px 0 14px!important;margin-bottom:14px!important}
  html.direct-sale-desktop .direct-sale-payment-card .direct-sale-cart-head h2{font-size:18px!important;margin:0!important}
  html.direct-sale-desktop .direct-sale-payment-card .direct-sale-customer-grid{display:none!important}
  html.direct-sale-desktop .direct-sale-payment-card .direct-sale-totals{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:0!important}
  html.direct-sale-desktop .direct-sale-payment-card .direct-sale-total-line{padding:8px 0!important;border-top:0!important}
  html.direct-sale-desktop .direct-sale-payment-card .direct-sale-final-line{border-top:1px solid #d1d5db!important;padding-top:14px!important;margin-top:2px!important}
  html.direct-sale-desktop .direct-sale-payment-card .direct-sale-final-line b{color:#16a34a!important;font-size:18px!important}
  html.direct-sale-desktop .direct-sale-payment-card label{font-size:14px!important;color:#0f172a!important;font-weight:500!important}
  html.direct-sale-desktop .direct-sale-payment-card input,
  html.direct-sale-desktop .direct-sale-payment-card select,
  html.direct-sale-desktop .direct-sale-payment-card textarea{border:0!important;border-bottom:1px solid #d1d5db!important;border-radius:0!important;padding:8px!important;background:#fff!important}
  html.direct-sale-desktop .direct-sale-submit-row{display:grid!important;grid-template-columns:1fr 165px 120px!important;gap:0!important;margin-top:14px!important}
  html.direct-sale-desktop .direct-sale-submit-row .btn{width:100%!important;border-radius:0!important;margin:0!important;min-height:36px!important}
  html.direct-sale-desktop .direct-sale-submit-row .direct-sale-checkout:first-child{border-radius:4px 0 0 4px!important}
  html.direct-sale-desktop .direct-sale-submit-row .direct-sale-customer-qr-toggle{font-size:13px!important;border-left:1px solid rgba(255,255,255,.35)!important;border-right:1px solid rgba(15,23,42,.12)!important}
  html.direct-sale-desktop .direct-sale-submit-row .direct-sale-print-submit{border-radius:0 4px 4px 0!important;background:#16a34a!important;color:#fff!important;border:0!important}
  html.direct-sale-desktop .direct-sale-desktop-tabs{height:39px!important;display:flex!important;align-items:end!important;border-bottom:1px solid #d1d5db!important;background:#fff!important}
  html.direct-sale-desktop .direct-sale-desktop-tabs button{height:39px!important;border:0!important;border-right:1px solid #d1d5db!important;background:#fff!important;color:#334155!important;padding:0 16px!important;font-weight:500!important;cursor:default!important}
  html.direct-sale-desktop .direct-sale-desktop-tabs button.active{border-top:2px solid #1687ff!important;color:#0f172a!important}
  html.direct-sale-desktop .direct-sale-desktop-customer-body{padding:18px!important}
  html.direct-sale-desktop .direct-sale-desktop-customer-body .direct-sale-customer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(220px,1fr))!important;gap:16px!important;margin:0!important;max-width:760px!important}
  html.direct-sale-desktop .direct-sale-desktop-customer-body .direct-sale-customer-grid label{font-weight:500!important;color:#334155!important;font-size:14px!important}
  html.direct-sale-desktop .direct-sale-desktop-customer-body .direct-sale-customer-grid input{height:38px!important;border:1px solid #cbd5e1!important;border-radius:5px!important;background:#fff!important;padding:8px 12px!important}
}

html:not(.direct-sale-desktop) .direct-sale-desktop-customer-panel{display:none!important}
@media screen and (min-width:1024px){html.direct-sale-desktop body .wrap{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}}

/* Direct sale desktop nav: keep the same admin navigation as other pages. */
@media screen and (min-width:1024px){
  html.direct-sale-desktop body .topbar{display:flex!important}
  html.direct-sale-desktop body .nav{display:block!important}
  html.direct-sale-desktop body .wrap:has(.direct-sale-page){margin:12px auto 0!important;padding:0 12px 12px!important}
  html.direct-sale-desktop .direct-sale-shell.direct-sale-pos-layout{gap:10px!important}
  html.direct-sale-desktop .direct-sale-payment-card{top:12px!important;margin:0!important}
  html.direct-sale-desktop .direct-sale-searchbar{top:0!important}
}

/* Direct sale customer autocomplete. */
.direct-sale-customer-name-wrap{position:relative}
.direct-sale-customer-suggestions{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:80;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 18px 42px rgba(15,23,42,.18);padding:6px;max-height:260px;overflow:auto}
.direct-sale-customer-suggestion-item{width:100%;border:0;background:#fff;text-align:left;display:block;padding:9px 10px;border-radius:8px;cursor:pointer}
.direct-sale-customer-suggestion-item:hover{background:#eff6ff}
.direct-sale-customer-suggestion-item b{display:block;color:#0f172a;font-size:14px}
.direct-sale-customer-suggestion-item small{display:block;color:#64748b;font-size:12px;margin-top:2px;line-height:1.35}
.direct-sale-customer-suggestion-empty{padding:10px;color:#64748b;font-size:12px;line-height:1.4}
@media screen and (min-width:1024px){html.direct-sale-desktop .direct-sale-customer-suggestions{top:64px}}

/* Direct sale invoice tabs and desktop column tools. */
.direct-sale-invoice-tabs{display:flex;align-items:center;gap:6px;min-width:0;overflow:auto;padding:0 8px}
.direct-sale-invoice-tab{display:inline-flex;align-items:center;gap:6px;height:36px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:8px;padding:0 10px;font-weight:600;white-space:nowrap;cursor:pointer}
.direct-sale-invoice-tab.active{background:#1687ff;border-color:#1687ff;color:#fff}
.direct-sale-invoice-tab span{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:999px;background:rgba(15,23,42,.09);font-size:11px;padding:0 5px}
.direct-sale-invoice-tab.active span{background:rgba(255,255,255,.25)}
.direct-sale-invoice-tab em{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;font-style:normal;font-weight:600;line-height:1}
.direct-sale-invoice-tab em:hover{background:rgba(15,23,42,.12)}
.direct-sale-desktop-tools{margin-left:auto;display:flex;align-items:center;gap:8px;padding:0 10px;white-space:nowrap}
.direct-sale-desktop-tools .direct-sale-order-actions{display:flex!important;width:auto!important;gap:8px!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important}
.direct-sale-desktop-tools .direct-sale-order-actions .btn{width:auto!important;margin:0!important;min-height:34px!important}
@media screen and (min-width:1024px){
  html.direct-sale-desktop .direct-sale-searchbar{gap:0!important}
  html.direct-sale-desktop .direct-sale-invoice-tabs{height:50px!important;flex:1 1 auto!important;background:#e7edf5!important;border-right:1px solid #cbd5e1!important}
  html.direct-sale-desktop .direct-sale-invoice-tab{height:38px!important;border-radius:4px!important;background:#f8fafc!important;color:#0f172a!important}
  html.direct-sale-desktop .direct-sale-invoice-tab.active{background:#1687ff!important;color:#fff!important;border-color:#1687ff!important}
  html.direct-sale-desktop .direct-sale-desktop-tools{height:50px!important;background:#e7edf5!important}
  html.direct-sale-desktop .direct-sale-column-wrap{position:relative!important}
  html.direct-sale-desktop .direct-sale-column-menu{right:0!important;left:auto!important;top:calc(100% + 8px)!important}
}
@media screen and (max-width:720px){
  .direct-sale-invoice-tabs{order:3;width:100%;padding:8px 0 0;overflow-x:auto}
  .direct-sale-invoice-tab{height:34px;font-size:13px}
}

/* Direct sale QR bank transfer and customer display button. */
.direct-sale-bank-box{display:grid;grid-template-columns:1fr 112px;gap:12px;align-items:center;margin-top:12px;padding:12px;border:1px dashed #93c5fd;border-radius:12px;background:#eff6ff;color:#0f172a}
.direct-sale-bank-box b{display:block;font-size:15px;margin-bottom:4px}.direct-sale-bank-box span,.direct-sale-bank-box small{display:block;color:#475569;font-size:12px;line-height:1.35}.direct-sale-bank-box img{width:112px;height:112px;object-fit:contain;background:#fff;border-radius:10px;border:1px solid #dbeafe}
.direct-sale-customer-display-btn{background:#64748b!important;color:#fff!important;border:0!important}
.direct-sale-customer-display-btn.is-on{background:#0f766e!important}
.direct-sale-customer-display-btn.is-off{background:#64748b!important}
.direct-orders-filter{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.direct-orders-filter-actions{display:flex;gap:8px;align-items:center}.direct-orders-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}.direct-orders-summary span{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;box-shadow:0 2px 8px rgba(0,0,0,.04)}.direct-orders-summary b{color:#111827}.direct-orders-list{display:grid;gap:12px}.direct-order-card{overflow:hidden}.direct-order-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.direct-order-head b{display:block;font-size:18px;color:#0f172a}.direct-order-head span{display:block;color:#64748b;margin-top:4px}.direct-order-head strong{display:inline-block;color:#ef4444;font-size:18px;margin-right:8px}.direct-order-items{margin-bottom:10px}.direct-order-edit summary{cursor:pointer;font-weight:600;color:#2563eb}.direct-order-edit-form{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px}.direct-order-edit-form .full{grid-column:1/-1}.direct-order-edit-form button{width:max-content}.direct-sale-print-area{display:none}
@media(max-width:900px){.direct-orders-filter,.direct-order-edit-form{grid-template-columns:1fr}.direct-order-head{display:block}.direct-order-head>div:last-child{margin-top:10px}.direct-orders-filter-actions{flex-wrap:wrap}}
.sync-code-note code{display:inline-block;background:#eef2ff;color:#1e3a8a;border-radius:6px;padding:2px 6px;margin:2px}.sync-code-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}.sync-code-summary span{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;box-shadow:0 2px 8px rgba(0,0,0,.04)}.sync-code-summary b{color:#111827}.sync-code-actions{display:flex;gap:10px;align-items:center}.sync-code-table table{min-width:760px}.sync-code-new td:first-child{color:#15803d;font-weight:600}.sync-code-update td:first-child{color:#b45309;font-weight:600}.sync-code-same td:first-child{color:#64748b}
.seller-delete-form{margin-top:8px}.seller-btn.danger{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important}.direct-order-head>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.direct-order-delete-form{display:inline-flex;margin:0}
.print-bill-qr{text-align:center;margin:3mm 0;padding:2mm 0;border-top:1px dashed #111;border-bottom:1px dashed #111}.print-bill-qr img{width:34mm;max-width:100%;height:auto;display:block;margin:0 auto 1mm}.print-bill-qr div{font-size:10px;line-height:1.3;font-weight:600}
@media(max-width:720px){.direct-sale-bank-box{grid-template-columns:1fr 96px}.direct-sale-bank-box img{width:96px;height:96px}}


.pos-product-name-link{appearance:none;border:0;background:transparent;padding:0;margin:0;text-align:left;cursor:pointer;color:inherit;font:inherit;display:block;width:100%}.pos-product-name-link b{color:#0c83ff}.pos-product-name-link:hover b{text-decoration:underline}.product-orderlink-open{overflow:hidden}.product-orderlink-modal{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:22px}.product-orderlink-modal[hidden]{display:none}.product-orderlink-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}.product-orderlink-dialog{position:relative;width:min(980px,calc(100vw - 26px));max-height:calc(100vh - 34px);display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(15,23,42,.35);overflow:hidden}.product-orderlink-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 18px;border-bottom:1px solid #e5e7eb;background:#f8fafc}.product-orderlink-head h2{margin:3px 0 0;font-size:20px;color:#0f172a}.product-orderlink-eyebrow{font-size:12px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.product-orderlink-x{border:0;background:#fff;color:#0f172a;border-radius:10px;width:38px;height:38px;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(15,23,42,.14)}.product-orderlink-tabs{display:flex;gap:7px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid #e5e7eb;background:#fff}.product-orderlink-tab{display:inline-flex;align-items:center;height:30px;border-radius:999px;padding:0 12px;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;font-weight:600;font-size:13px}.product-orderlink-tab.active{background:#0c83ff;border-color:#0c83ff;color:#fff}.product-orderlink-tab.muted-tab{opacity:.55}.product-orderlink-body{padding:16px 18px;overflow:auto;background:#f8fafc}.product-orderlink-rows{display:flex;flex-direction:column;gap:10px;margin-top:10px}.product-orderlink-row{display:grid;grid-template-columns:48px 1fr 44px;gap:10px;align-items:stretch}.product-orderlink-num{display:flex;align-items:center;justify-content:center;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:12px;font-weight:600;font-size:18px}.product-orderlink-main{min-width:0}.product-orderlink-main textarea{min-height:82px;resize:vertical;background:#fff}.product-orderlink-delete{border:0;border-radius:12px;background:#fee2e2;color:#ef4444;font-size:24px;font-weight:600;cursor:pointer}.product-orderlink-foot{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:13px 18px;border-top:1px solid #e5e7eb;background:#fff}.product-orderlink-foot .grow{flex:1}.product-orderlink-modal .note-web-actions{margin:8px 0 0}@media(max-width:720px){.product-orderlink-modal{padding:10px}.product-orderlink-dialog{max-height:calc(100vh - 20px)}.product-orderlink-row{grid-template-columns:38px 1fr 38px}.product-orderlink-foot .grow{display:none}.product-orderlink-foot .btn{flex:1;justify-content:center}.product-orderlink-tabs{overflow:auto;flex-wrap:nowrap}.product-orderlink-tab{white-space:nowrap}}

/* Products v5: make compact columns equal to cost-price column; give remaining space to product name */
.products-pos-page .product-list-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.products-pos-page .product-list-table th,
.products-pos-page .product-list-table td{
  overflow:hidden;
  text-overflow:ellipsis;
}
.products-pos-page .product-list-table th:nth-child(1),
.products-pos-page .product-list-table td:nth-child(1){width:40px;text-align:center;}
.products-pos-page .product-list-table th:nth-child(2),
.products-pos-page .product-list-table td:nth-child(2){width:58px;text-align:center;}
.products-pos-page .product-list-table th:nth-child(3),
.products-pos-page .product-list-table td:nth-child(3){width:82px;text-align:center;}
.products-pos-page .product-list-table th:nth-child(4),
.products-pos-page .product-list-table td:nth-child(4),
.products-pos-page .product-list-table th:nth-child(5),
.products-pos-page .product-list-table td:nth-child(5),
.products-pos-page .product-list-table th:nth-child(7),
.products-pos-page .product-list-table td:nth-child(7),
.products-pos-page .product-list-table th:nth-child(8),
.products-pos-page .product-list-table td:nth-child(8),
.products-pos-page .product-list-table th:nth-child(9),
.products-pos-page .product-list-table td:nth-child(9),
.products-pos-page .product-list-table th:nth-child(10),
.products-pos-page .product-list-table td:nth-child(10),
.products-pos-page .product-list-table th:nth-child(11),
.products-pos-page .product-list-table td:nth-child(11){width:78px;}
.products-pos-page .product-list-table th:nth-child(6),
.products-pos-page .product-list-table td:nth-child(6),
.products-pos-page .product-list-table .pos-product-name-head,
.products-pos-page .product-list-table .pos-name-cell{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}
.products-pos-page .product-list-table td:nth-child(6){white-space:normal;overflow:visible;}
.products-pos-page .pos-name-cell b,
.products-pos-page .pos-name-cell small{
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
}
.products-pos-page .pos-name-cell b{-webkit-line-clamp:3;}
.products-pos-page .pos-name-cell small{-webkit-line-clamp:2;}
.products-pos-page .pos-row-actions{min-width:0!important;width:78px!important;text-align:center;overflow:visible!important;}
.products-pos-page .pos-row-action-wrap{display:inline-flex;justify-content:center;position:relative;}
.products-pos-page .pos-row-action-menu{right:0;left:auto;}
@media(max-width:900px){
  .products-pos-page .product-list-table th:nth-child(4),
  .products-pos-page .product-list-table td:nth-child(4),
  .products-pos-page .product-list-table th:nth-child(5),
  .products-pos-page .product-list-table td:nth-child(5),
  .products-pos-page .product-list-table th:nth-child(7),
  .products-pos-page .product-list-table td:nth-child(7),
  .products-pos-page .product-list-table th:nth-child(8),
  .products-pos-page .product-list-table td:nth-child(8),
  .products-pos-page .product-list-table th:nth-child(9),
  .products-pos-page .product-list-table td:nth-child(9),
  .products-pos-page .product-list-table th:nth-child(10),
  .products-pos-page .product-list-table td:nth-child(10),
  .products-pos-page .product-list-table th:nth-child(11),
  .products-pos-page .product-list-table td:nth-child(11){width:72px;}
  .products-pos-page .pos-row-actions{width:72px!important;}
}

/* Products v6: quick edit, wider SKU, popup image manager */
.admin-remember-row label{display:inline-flex!important;align-items:center;gap:8px;font-weight:600;color:#334155}.admin-remember-row input{width:auto!important;margin:0!important}
.products-pos-page .product-list-table th:nth-child(4),
.products-pos-page .product-list-table td:nth-child(4){width:117px!important;}
.products-pos-page .product-list-table th:nth-child(5),
.products-pos-page .product-list-table td:nth-child(5){width:auto!important;}
.pos-quick-cell{position:relative;overflow:visible!important}.pos-quick-wrap{position:relative;display:flex;align-items:flex-start;gap:6px;min-width:0}.pos-name-cell .pos-quick-wrap{align-items:flex-start}.pos-quick-display{min-width:0;flex:1}.pos-quick-pencil{opacity:0;visibility:hidden;flex:0 0 auto;width:24px;height:24px;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;color:#0c83ff;cursor:pointer;font-weight:600;line-height:1;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(12,131,255,.13)}.pos-quick-cell:hover .pos-quick-pencil,.pos-quick-pencil:focus{opacity:1;visibility:visible}.pos-quick-cell.is-editing .pos-quick-pencil{display:none}.pos-quick-input{width:100%;min-width:68px;height:32px;border:1px solid #0c83ff!important;border-radius:7px;padding:4px 8px;background:#fff;box-shadow:0 0 0 3px rgba(12,131,255,.13);font:inherit;color:#0f172a}.pos-name-cell .pos-quick-input{min-height:36px}.pos-quick-cell.is-saving .pos-quick-input{opacity:.65}.product-quick-confirm-modal{position:fixed;inset:0;z-index:6100;display:flex;align-items:center;justify-content:center;padding:18px}.product-quick-confirm-modal[hidden]{display:none}.product-quick-confirm-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.52)}.product-quick-confirm-dialog{position:relative;width:min(430px,calc(100vw - 28px));background:#fff;border-radius:16px;box-shadow:0 24px 72px rgba(15,23,42,.35);padding:20px}.product-quick-confirm-dialog h2{margin:0 0 8px;color:#0f172a;font-size:20px}.product-quick-confirm-dialog p{margin:0 0 14px;color:#334155;font-size:15px}.product-quick-confirm-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.product-image-open-trigger{cursor:pointer}.product-image-open-trigger:hover{outline:2px solid #93c5fd;outline-offset:2px}.product-image-modal{position:fixed!important;inset:0!important;z-index:5900!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:22px!important;background:rgba(15,23,42,.55)!important}.product-image-modal[hidden]{display:none!important}.product-image-dialog{width:min(1080px,calc(100vw - 30px))!important;max-height:calc(100vh - 34px)!important;overflow:auto!important;background:#fff!important;border:0!important;border-radius:16px!important;margin:0!important;box-shadow:0 24px 72px rgba(15,23,42,.35)!important}.product-image-dialog-head{position:sticky;top:0;z-index:2}.product-image-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important}.product-image-tile{min-height:170px}.product-image-tile img{height:170px}@media(max-width:900px){.products-pos-page .product-list-table th:nth-child(4),.products-pos-page .product-list-table td:nth-child(4){width:108px!important}.product-quick-confirm-actions .btn{flex:1;justify-content:center}.product-image-modal{padding:10px!important}.product-image-dialog{max-height:calc(100vh - 20px)!important}.product-image-grid{grid-template-columns:repeat(auto-fill,minmax(138px,1fr))!important;padding:10px}.product-image-tile,.product-image-tile img{min-height:138px;height:138px}}


/* Products v7: product location column beside product name */
.products-pos-page .product-list-table th:nth-child(4),
.products-pos-page .product-list-table td:nth-child(4),
.products-pos-page .product-list-table th:nth-child(8),
.products-pos-page .product-list-table td:nth-child(8),
.products-pos-page .product-list-table th:nth-child(9),
.products-pos-page .product-list-table td:nth-child(9),
.products-pos-page .product-list-table th:nth-child(10),
.products-pos-page .product-list-table td:nth-child(10),
.products-pos-page .product-list-table th:nth-child(11),
.products-pos-page .product-list-table td:nth-child(11),
.products-pos-page .product-list-table th:nth-child(12),
.products-pos-page .product-list-table td:nth-child(12){width:78px!important;}
.products-pos-page .product-list-table th:nth-child(5),
.products-pos-page .product-list-table td:nth-child(5){width:117px!important;}
.products-pos-page .product-list-table th:nth-child(6),
.products-pos-page .product-list-table td:nth-child(6){width:auto!important;min-width:0!important;max-width:none!important;}
.products-pos-page .product-list-table th:nth-child(7),
.products-pos-page .product-list-table td:nth-child(7){width:98px!important;}
.products-pos-page .product-list-table td:nth-child(6){white-space:normal!important;overflow:visible!important;}
.products-pos-page .product-list-table td:nth-child(7){white-space:normal;}
.products-pos-page .pos-location-cell .pos-quick-display{font-weight:600;color:#475569;line-height:1.35;}
.products-pos-page .pos-location-cell .pos-quick-input{min-width:82px;}
.products-pos-page .pos-row-actions{width:78px!important;}
@media(max-width:900px){
  .products-pos-page .product-list-table th:nth-child(5),
  .products-pos-page .product-list-table td:nth-child(5){width:108px!important;}
  .products-pos-page .product-list-table th:nth-child(7),
  .products-pos-page .product-list-table td:nth-child(7){width:84px!important;}
  .products-pos-page .product-list-table th:nth-child(4),
  .products-pos-page .product-list-table td:nth-child(4),
  .products-pos-page .product-list-table th:nth-child(8),
  .products-pos-page .product-list-table td:nth-child(8),
  .products-pos-page .product-list-table th:nth-child(9),
  .products-pos-page .product-list-table td:nth-child(9),
  .products-pos-page .product-list-table th:nth-child(10),
  .products-pos-page .product-list-table td:nth-child(10),
  .products-pos-page .product-list-table th:nth-child(11),
  .products-pos-page .product-list-table td:nth-child(11),
  .products-pos-page .product-list-table th:nth-child(12),
  .products-pos-page .product-list-table td:nth-child(12){width:72px!important;}
  .products-pos-page .pos-row-actions{width:72px!important;}
}


/* Lite Products v7: 10-column layout with product location */
.products-pos-page .product-list-table th:nth-child(1),
.products-pos-page .product-list-table td:nth-child(1){width:40px!important;text-align:center;}
.products-pos-page .product-list-table th:nth-child(2),
.products-pos-page .product-list-table td:nth-child(2){width:58px!important;text-align:center;}
.products-pos-page .product-list-table th:nth-child(3),
.products-pos-page .product-list-table td:nth-child(3){width:82px!important;text-align:center;}
.products-pos-page .product-list-table th:nth-child(4),
.products-pos-page .product-list-table td:nth-child(4){width:117px!important;}
.products-pos-page .product-list-table th:nth-child(5),
.products-pos-page .product-list-table td:nth-child(5){width:auto!important;min-width:0!important;max-width:none!important;white-space:normal!important;overflow:visible!important;}
.products-pos-page .product-list-table th:nth-child(6),
.products-pos-page .product-list-table td:nth-child(6){width:98px!important;white-space:normal;}
.products-pos-page .product-list-table th:nth-child(7),
.products-pos-page .product-list-table td:nth-child(7),
.products-pos-page .product-list-table th:nth-child(8),
.products-pos-page .product-list-table td:nth-child(8),
.products-pos-page .product-list-table th:nth-child(9),
.products-pos-page .product-list-table td:nth-child(9),
.products-pos-page .product-list-table th:nth-child(10),
.products-pos-page .product-list-table td:nth-child(10){width:78px!important;}
.products-pos-page .pos-row-actions{width:78px!important;}
@media(max-width:900px){
  .products-pos-page .product-list-table th:nth-child(4),
  .products-pos-page .product-list-table td:nth-child(4){width:108px!important;}
  .products-pos-page .product-list-table th:nth-child(6),
  .products-pos-page .product-list-table td:nth-child(6){width:84px!important;}
  .products-pos-page .product-list-table th:nth-child(7),
  .products-pos-page .product-list-table td:nth-child(7),
  .products-pos-page .product-list-table th:nth-child(8),
  .products-pos-page .product-list-table td:nth-child(8),
  .products-pos-page .product-list-table th:nth-child(9),
  .products-pos-page .product-list-table td:nth-child(9),
  .products-pos-page .product-list-table th:nth-child(10),
  .products-pos-page .product-list-table td:nth-child(10){width:72px!important;}
  .products-pos-page .pos-row-actions{width:72px!important;}
}

/* Direct sale v8: make hidden columns really disappear even under desktop table !important rules */
html.direct-sale-desktop .direct-sale-order-table th.direct-sale-col-hidden,
html.direct-sale-desktop .direct-sale-order-table td.direct-sale-col-hidden,
.direct-sale-order-table th.direct-sale-col-hidden,
.direct-sale-order-table td.direct-sale-col-hidden,
.direct-sale-order-table [data-col].direct-sale-col-hidden{
  display:none!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Product detail: Zalo chat button + quantity chooser popup */
.spage-buy-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:center}
.spage-buy-form>input[type="hidden"]{display:none!important}
.spage-chat-btn,.spage-cart-btn,.spage-buy-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;text-decoration:none;line-height:1.2;white-space:normal}
.spage-chat-btn{border:1px solid #e5e7eb;background:#fff;color:#111827;border-radius:2px;font-weight:600;cursor:pointer}
.spage-chat-btn:hover{border-color:#6d28d9;color:#6d28d9;background:#faf5ff}
.spage-btn-ico{display:inline-flex;align-items:center;justify-content:center;font-size:17px;line-height:1}
.spage-mobile-variant-modal[hidden]{display:none!important}
.spage-mobile-variant-modal:not([hidden]){display:block!important;position:fixed;inset:0;z-index:180}
.spage-mobile-variant-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48)}
.spage-mobile-variant-sheet{position:absolute;left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:calc(100% - 32px);max-width:520px;max-height:88vh;background:#fff;border-radius:14px;box-shadow:0 20px 70px rgba(15,23,42,.30);display:flex;flex-direction:column;padding:16px 14px;overflow:hidden}
.spage-mobile-variant-close{position:absolute;top:10px;right:10px;width:34px;height:34px;border:0;border-radius:50%;background:#f3f4f6;color:#111827;font-size:18px;font-weight:600;line-height:1;cursor:pointer}
.spage-mobile-variant-head{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center;padding-right:38px;margin-bottom:12px}
.spage-mobile-variant-head img{width:76px;height:76px;border:1px solid #eee;background:#f8fafc;object-fit:cover;border-radius:6px}
.spage-mobile-variant-head b{display:block;color:#111827;font-size:16px;line-height:1.25;margin-bottom:5px}
.spage-mobile-variant-head strong{display:block;color:#6d28d9;font-size:20px;line-height:1.2}
.spage-mobile-variant-head strong.is-contact{font-size:13px;color:#0f766e}
.spage-mobile-variant-head span{display:block;color:#64748b;font-size:12px;margin-top:4px}
.spage-mobile-variant-caption{font-weight:600;color:#333;margin:0 0 8px}
.spage-mobile-variant-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:auto;max-height:34vh;padding:0 1px 10px}
.spage-mobile-variant-option{min-width:0;min-height:54px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:7px;align-items:center;border:1px solid #d5d5d5;background:#fff;border-radius:6px;padding:7px;text-align:left;color:#222;cursor:pointer}
.spage-mobile-variant-option img{width:38px;height:38px;object-fit:cover;background:#f8fafc;border-radius:4px}
.spage-mobile-variant-option span{min-width:0;font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.spage-mobile-variant-option.active{border-color:#6d28d9;color:#6d28d9;box-shadow:inset 0 0 0 1px #6d28d9}
.spage-mobile-purchase-box{border-top:1px solid #eef2f7;padding-top:10px;background:#fff}
.spage-mobile-qty-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.spage-mobile-qty-row>span{font-weight:600;color:#333}
.spage-mobile-qty{width:134px;flex:0 0 134px;height:40px}
.spage-mobile-variant-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.spage-mobile-variant-actions .spage-cart-btn,.spage-mobile-variant-actions .spage-buy-btn{height:44px;margin:0;border-radius:4px}
@media(max-width:900px){.spage-buy-form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .spage-wrap{padding-bottom:64px}
  .spage-buy-form{grid-template-columns:94px minmax(0,1fr) minmax(0,1fr);gap:0}
  .spage-chat-btn,.spage-cart-btn,.spage-buy-btn{height:46px;min-height:46px;margin:0 0 0 6px;border-radius:2px;font-size:13px;font-weight:600;flex-direction:column;gap:2px;line-height:1.08}
  .spage-chat-btn{margin-left:0;border-color:#e5e7eb;background:#fff;color:#111827}
  .spage-cart-btn span:last-child{font-size:12px}
  .spage-btn-ico{font-size:19px}
  .spage-mobile-variant-sheet{left:0;right:0;top:auto;bottom:0;transform:none;width:auto;max-width:none;max-height:88vh;border-radius:14px 14px 0 0;padding:14px 12px max(12px,env(safe-area-inset-bottom))}
}
@media(min-width:761px){.spage-mobile-variant-modal:not([hidden]){display:block!important}}

/* Mộc Shop live chat */
.shop-live-chat-page{display:grid;gap:12px;max-width:960px;margin:0 auto}.shop-chat-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#6d28d9,#0ea5e9);color:#fff;border-radius:18px;padding:18px;box-shadow:0 14px 35px rgba(109,40,217,.18)}.shop-chat-hero h1{margin:0 0 6px;font-size:26px}.shop-chat-hero p{margin:0;line-height:1.5;color:rgba(255,255,255,.92)}.shop-chat-hero a{background:#fff;color:#6d28d9;border-radius:999px;padding:9px 14px;font-weight:600;text-decoration:none;white-space:nowrap}.shop-chat-product-card{display:grid;grid-template-columns:70px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:10px;box-shadow:0 6px 20px rgba(15,23,42,.05)}.shop-chat-product-card img{width:70px;height:70px;object-fit:cover;border-radius:12px;border:1px solid #e5e7eb;background:#f8fafc}.shop-chat-product-card span,.shop-chat-product-card small{display:block;color:#64748b}.shop-chat-product-card b{display:block;margin:4px 0;color:#111827}.shop-chat-product-card a{color:#6d28d9;font-weight:600;text-decoration:none}.shop-chat-box{background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;box-shadow:0 12px 32px rgba(15,23,42,.06)}.shop-chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #eef2f7;background:#fbfdff}.shop-chat-head b{font-size:18px;color:#111827}.shop-chat-head span{display:block;color:#64748b;font-size:13px;margin-top:2px}.shop-chat-head small{color:#64748b}.shop-chat-messages{height:520px;overflow:auto;padding:16px;background:linear-gradient(180deg,#f8fafc,#fff);display:flex;flex-direction:column;gap:10px}.shop-chat-empty{margin:auto;text-align:center;color:#64748b;background:#fff;border:1px dashed #d1d5db;border-radius:16px;padding:18px;max-width:420px}.shop-chat-msg{display:flex}.shop-chat-msg.is-me{justify-content:flex-end}.shop-chat-msg.is-shop{justify-content:flex-start}.shop-chat-bubble{max-width:min(72%,620px);border-radius:18px;padding:10px 12px;line-height:1.45;box-shadow:0 4px 16px rgba(15,23,42,.07);word-break:break-word}.shop-chat-msg.is-me .shop-chat-bubble{background:#6d28d9;color:#fff;border-bottom-right-radius:4px}.shop-chat-msg.is-shop .shop-chat-bubble{background:#fff;color:#111827;border:1px solid #e5e7eb;border-bottom-left-radius:4px}.shop-chat-sender{font-size:11px;font-weight:600;opacity:.76;margin-bottom:5px}.shop-chat-product-link{display:block;margin:2px 0 8px;padding:7px 9px;border-radius:10px;background:rgba(255,255,255,.18);color:inherit;text-decoration:none;font-weight:600}.shop-chat-msg.is-shop .shop-chat-product-link{background:#f5f3ff;color:#6d28d9}.shop-chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;border-top:1px solid #eef2f7;background:#fff}.shop-chat-compose textarea{resize:vertical;min-height:54px;border:1px solid #cbd5e1;border-radius:14px;padding:11px 12px;font-size:15px;line-height:1.4}.shop-chat-compose button{border:0;border-radius:14px;background:#6d28d9;color:#fff;font-weight:600;padding:0 18px;cursor:pointer}.shop-chat-compose button:disabled{opacity:.55;cursor:wait}
.admin-chat-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:14px}.admin-chat-sidebar,.admin-chat-main{min-width:0}.admin-chat-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.admin-chat-title h2{margin:0}.admin-chat-title span{background:#f5f3ff;color:#6d28d9;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:600}.admin-chat-filter{display:grid;grid-template-columns:1fr 110px auto;gap:6px;margin:10px 0}.admin-chat-filter select{border:1px solid #cbd5e1;border-radius:8px;padding:8px;background:#fff}.admin-chat-thread-list{display:grid;gap:7px;max-height:650px;overflow:auto}.admin-chat-thread{position:relative;display:block;text-decoration:none;color:#111827;border:1px solid #e5e7eb;border-radius:12px;padding:10px;background:#fff}.admin-chat-thread.active{border-color:#6d28d9;box-shadow:0 0 0 3px rgba(109,40,217,.1)}.admin-chat-thread b,.admin-chat-thread small,.admin-chat-thread span,.admin-chat-thread em{display:block}.admin-chat-thread small,.admin-chat-thread em{color:#64748b;font-size:12px}.admin-chat-thread span{margin:5px 0;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-chat-thread i{position:absolute;right:8px;top:8px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;line-height:20px;text-align:center;font-style:normal;font-weight:600}.admin-chat-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid #eef2f7;padding-bottom:10px;margin-bottom:10px}.admin-chat-head h2{margin:0 0 4px}.admin-chat-head p{margin:0;color:#64748b}.admin-chat-messages{height:560px;overflow:auto;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:9px}.admin-chat-msg{display:flex}.admin-chat-msg.is-admin{justify-content:flex-end}.admin-chat-msg.is-customer{justify-content:flex-start}.admin-chat-bubble{max-width:76%;border-radius:16px;padding:10px 12px;line-height:1.45;word-break:break-word}.admin-chat-msg.is-admin .admin-chat-bubble{background:#6d28d9;color:#fff;border-bottom-right-radius:4px}.admin-chat-msg.is-customer .admin-chat-bubble{background:#fff;border:1px solid #e5e7eb;color:#111827;border-bottom-left-radius:4px}.admin-chat-sender{font-size:11px;font-weight:600;opacity:.75;margin-bottom:5px}.admin-chat-product{display:block;margin:2px 0 7px;padding:7px 9px;border-radius:9px;text-decoration:none;background:#f5f3ff;color:#6d28d9;font-weight:600}.admin-chat-msg.is-admin .admin-chat-product{background:rgba(255,255,255,.18);color:#fff}.admin-chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:10px}.admin-chat-compose textarea{border:1px solid #cbd5e1;border-radius:12px;padding:10px;resize:vertical}.admin-chat-empty{color:#64748b;text-align:center;border:1px dashed #d1d5db;border-radius:12px;padding:16px;background:#fff}.admin-chat-empty.big{padding:60px 16px}
@media(max-width:900px){.admin-chat-layout{grid-template-columns:1fr}.admin-chat-thread-list{max-height:360px}.admin-chat-messages{height:440px}.admin-chat-filter{grid-template-columns:1fr}.shop-chat-hero{display:block}.shop-chat-hero a{display:inline-flex;margin-top:12px}.shop-chat-product-card{grid-template-columns:58px 1fr}.shop-chat-product-card a{grid-column:2}.shop-chat-product-card img{width:58px;height:58px}.shop-chat-compose{grid-template-columns:1fr}.shop-chat-compose button{min-height:46px}.shop-chat-messages{height:460px}.shop-chat-bubble{max-width:88%}}
@media(max-width:760px){.mshop-bottom-nav{grid-template-columns:repeat(7,1fr)}.shop-live-chat-page{margin:0 -12px}.shop-chat-hero,.shop-chat-box,.shop-chat-product-card{border-radius:0;border-left:0;border-right:0}.shop-chat-hero h1{font-size:22px}.shop-chat-messages{height:calc(100vh - 320px);min-height:360px}.shop-chat-bubble{max-width:92%}}

/* Chat settings and lighter customer chat */
.chat-settings-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:16px;align-items:start;margin-top:14px}.chat-settings-card h2{margin:14px 0 10px}.chat-settings-card h2:first-child{margin-top:0}.chat-settings-card label{display:block;font-weight:600;margin:10px 0 6px}.chat-settings-card input[type="text"],.chat-settings-card input[type="number"],.chat-settings-card input:not([type]),.chat-settings-card textarea{width:100%;box-sizing:border-box;border:1px solid #d7deea;border-radius:10px;padding:10px 12px;font:inherit;background:#fff}.chat-settings-card textarea{min-height:110px;resize:vertical}.chat-settings-card .checkline{display:flex;gap:8px;align-items:flex-start;font-weight:600;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:9px 10px}.chat-settings-card .checkline input{margin-top:3px}.chat-settings-stat{display:flex;align-items:center;gap:12px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:14px;padding:14px;margin:12px 0}.chat-settings-stat b{font-size:32px;color:#15803d}.chat-settings-stat span{font-weight:600;color:#166534}.chat-speed-note{margin-top:16px}.small{font-size:12px}.shop-chat-info-card{background:#fff7ed;border:1px solid #fed7aa;border-radius:18px;padding:14px 16px;margin:14px 0;color:#7c2d12;box-shadow:0 8px 22px rgba(124,45,18,.08)}.shop-chat-info-card b{display:block;font-size:17px;margin-bottom:6px;color:#9a3412}.shop-chat-info-card div{line-height:1.55;white-space:normal}@media(max-width:850px){.chat-settings-grid{grid-template-columns:1fr}.chat-settings-card textarea{min-height:92px}}

/* Moc chat enable/disable settings */
.chat-settings-status{margin:14px 0;padding:14px 16px;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #dbe4ef;background:#f8fafc}
.chat-settings-status b{font-size:18px}.chat-settings-status span{color:#475569;font-weight:600}.chat-settings-status.is-on{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.chat-settings-status.is-off{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.chat-main-toggle{font-size:16px;border-color:#c7d2fe!important;background:#eef2ff!important}.alert.warning{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:10px 12px;margin:10px 0;font-weight:600}.chat-settings-card button[disabled],.admin-chat-compose button[disabled]{opacity:.55;cursor:not-allowed;filter:grayscale(.2)}

/* Chat shop info merged into chat header */
.shop-chat-head-copy{min-width:0}
.shop-chat-head-info{display:block;color:#64748b;font-size:13px;line-height:1.45;margin-top:3px;white-space:normal}
.shop-chat-head-info br{content:"";display:block;margin-top:2px}
@media(max-width:760px){.shop-chat-head{align-items:flex-start}.shop-chat-head small{white-space:nowrap}.shop-chat-head-info{font-size:12px}}


/* Chat compose refresh: icon send button + emoji picker */
.shop-chat-compose{display:block;padding:12px;border-top:1px solid #eef2f7;background:#fff}
.shop-chat-compose-shell{position:relative}
.shop-chat-compose textarea{display:block;width:100%;box-sizing:border-box;resize:none;min-height:58px;max-height:160px;border:1px solid #d7deea;border-radius:18px;padding:16px 64px 16px 52px;font-size:15px;line-height:1.45;background:#fff;outline:none;box-shadow:inset 0 1px 2px rgba(15,23,42,.03)}
.shop-chat-compose textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.12)}
.shop-chat-emoji-btn,.shop-chat-send-btn{position:absolute;bottom:10px;width:38px;height:38px;border:0;border-radius:999px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, background .15s ease}
.shop-chat-emoji-btn{left:8px;background:#f8fafc;color:#64748b;border:1px solid #e2e8f0;font-size:24px;line-height:1}
.shop-chat-emoji-btn span{display:block;transform:translateY(-1px)}
.shop-chat-emoji-btn:hover,.shop-chat-emoji-btn.is-open{background:#f5f3ff;border-color:#c4b5fd;color:#6d28d9;box-shadow:0 6px 16px rgba(109,40,217,.12)}
.shop-chat-send-btn{right:8px;background:linear-gradient(135deg,#38bdf8,#2563eb);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.26)}
.shop-chat-send-btn svg{width:20px;height:20px;display:block}
.shop-chat-send-btn:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(37,99,235,.28)}
.shop-chat-send-btn:disabled{opacity:.55;cursor:wait;transform:none;box-shadow:none}
.shop-chat-emoji-panel{position:absolute;left:0;bottom:58px;z-index:12;width:min(100%,340px);background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px;box-shadow:0 20px 50px rgba(15,23,42,.18)}
.shop-chat-emoji-group + .shop-chat-emoji-group{margin-top:10px;padding-top:10px;border-top:1px dashed #e2e8f0}
.shop-chat-emoji-group strong{display:block;font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:#64748b;margin-bottom:8px}
.shop-chat-emoji-list{display:flex;flex-wrap:wrap;gap:8px}
.shop-chat-emoji-item{width:38px;height:38px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease}
.shop-chat-emoji-item:hover{transform:translateY(-1px) scale(1.04);background:#faf5ff;border-color:#c4b5fd;box-shadow:0 10px 18px rgba(109,40,217,.10)}
@media(max-width:900px){.shop-chat-compose{padding:10px}.shop-chat-emoji-panel{width:min(100%,320px)}}
@media(max-width:760px){.shop-chat-compose textarea{padding-left:50px;padding-right:58px;min-height:56px}.shop-chat-emoji-btn,.shop-chat-send-btn{bottom:9px;width:36px;height:36px}.shop-chat-emoji-panel{left:0;right:0;width:auto;bottom:56px;border-radius:14px;padding:10px}.shop-chat-emoji-item{width:36px;height:36px}}


/* Mộc Shop sticker emoji */
.shop-chat-moc-emoji{display:inline-block;width:86px;max-width:42vw;height:auto;vertical-align:middle;border-radius:14px;background:#fffaf3;box-shadow:0 4px 12px rgba(120,63,4,.10);margin:2px 3px}
.shop-chat-msg.is-me .shop-chat-moc-emoji{background:rgba(255,255,255,.92)}
.shop-chat-emoji-panel{width:min(100%,420px)}
.shop-chat-emoji-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.shop-chat-emoji-item.is-moc-sticker{width:100%;height:auto;aspect-ratio:1/1;border-radius:14px;padding:3px;overflow:hidden;background:#fffaf3;border:1px solid #eadbc4}
.shop-chat-emoji-item.is-moc-sticker img{display:block;width:100%;height:100%;object-fit:contain;border-radius:11px}
.shop-chat-emoji-item.is-moc-sticker:hover{background:#fff7ed;border-color:#f59e0b;box-shadow:0 10px 20px rgba(217,119,6,.13)}
@media(max-width:760px){.shop-chat-moc-emoji{width:76px}.shop-chat-emoji-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.shop-chat-emoji-panel{max-height:46vh;overflow:auto}}


/* Hotfix: keep chat buttons above textarea and clickable on mobile browsers */
.shop-chat-compose-shell{position:relative;isolation:isolate}
.shop-chat-emoji-btn,.shop-chat-send-btn{z-index:5!important;padding:0!important;min-height:0!important;pointer-events:auto!important;line-height:1!important;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}
.shop-chat-compose textarea{position:relative;z-index:1}
.shop-chat-send-btn span{display:block;font-size:20px;font-weight:600;line-height:1;transform:translateX(1px)}
.shop-chat-emoji-panel{z-index:20!important;display:none}
.shop-chat-emoji-panel[aria-hidden="false"]{display:block!important}
.shop-chat-emoji-item{padding:0!important;min-height:0!important;pointer-events:auto!important}
.shop-chat-emoji-item img{pointer-events:none}

/* Shop chat bubble refresh */
.shop-chat-messages{
  background:#ececec!important;
  gap:12px!important;
  padding:18px!important;
}
.shop-chat-date-sep{
  align-self:center;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:999px;
  color:#6b7280;
  font-size:12px;
  line-height:1;
  padding:6px 11px;
  box-shadow:0 1px 2px rgba(15,23,42,.05);
}
.shop-chat-msg{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  max-width:78%;
  margin-right:auto;
}
.shop-chat-msg.is-me{
  align-items:flex-end!important;
  margin-left:auto!important;
  margin-right:0!important;
}
.shop-chat-bubble{
  max-width:100%!important;
  border-radius:12px!important;
  padding:9px 12px!important;
  line-height:1.45!important;
  word-break:break-word;
  box-shadow:0 1px 2px rgba(15,23,42,.08)!important;
}
.shop-chat-msg.is-me .shop-chat-bubble{
  background:#5f24c8!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.58)!important;
  border-bottom-right-radius:4px!important;
}
.shop-chat-msg.is-shop .shop-chat-bubble{
  background:#fff!important;
  color:#111827!important;
  border:1px solid #e5e7eb!important;
  border-bottom-left-radius:4px!important;
}
.shop-chat-text{
  font-size:14px;
}
.shop-chat-meta{
  margin-top:5px;
  color:#6b7280;
  font-size:11px;
  line-height:1;
}
.shop-chat-msg.is-me .shop-chat-meta{
  margin-right:4px;
  text-align:right;
}
.shop-chat-msg.is-shop .shop-chat-meta{
  margin-left:4px;
  text-align:left;
}
.shop-chat-product-link{
  display:inline-flex!important;
  align-items:center!important;
  max-width:100%!important;
  margin:0 0 7px!important;
  padding:5px 8px!important;
  border-radius:8px!important;
  font-size:13px!important;
  line-height:1.25!important;
}
.shop-chat-msg.is-me .shop-chat-product-link{
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
}
.shop-chat-msg.is-shop .shop-chat-product-link{
  background:#f8fafc!important;
  color:#6d28d9!important;
  border:1px solid #eef2ff!important;
}
.shop-chat-msg.is-emoji-only .shop-chat-bubble{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  border-radius:0!important;
}
.shop-chat-msg.is-emoji-only .shop-chat-product-link{
  display:none!important;
}
.shop-chat-msg.is-emoji-only .shop-chat-text{
  display:flex!important;
  justify-content:flex-end!important;
}
.shop-chat-msg.is-shop.is-emoji-only .shop-chat-text{
  justify-content:flex-start!important;
}
.shop-chat-msg.is-emoji-only .shop-chat-moc-emoji{
  display:block!important;
  width:118px!important;
  max-width:34vw!important;
  margin:0!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
}
@media(max-width:760px){
  .shop-chat-messages{
    padding:14px!important;
  }
  .shop-chat-msg{
    max-width:86%;
  }
  .shop-chat-msg.is-emoji-only .shop-chat-moc-emoji{
    width:104px!important;
    max-width:38vw!important;
  }
}

/* Product detail rich description */
.spage-desc-text img{max-width:100%;height:auto;border-radius:8px}.spage-desc-text table{width:100%;border-collapse:collapse;margin:10px 0}.spage-desc-text td,.spage-desc-text th{border:1px solid #e5e7eb;padding:8px;text-align:left}.spage-desc-text blockquote{margin:10px 0;padding:10px 12px;border-left:4px solid #cbd5e1;background:#f8fafc;color:#475569}.spage-desc-text ul,.spage-desc-text ol{padding-left:22px}.spage-desc-text h2,.spage-desc-text h3{background:transparent;padding:0;color:#111827;margin:14px 0 8px}


/* Backup code sạch */
.backup-clean-card h1{display:flex;align-items:center;gap:8px}.backup-clean-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.backup-clean-box{border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff}.backup-clean-box b{display:block;font-size:16px;margin-bottom:8px}.backup-clean-box ul{margin:0;padding-left:20px;line-height:1.65}.backup-clean-box.good{background:#f0fdf4;border-color:#bbf7d0}.backup-clean-box.danger{background:#fff7ed;border-color:#fed7aa}.backup-clean-actions{margin:16px 0}.backup-clean-note{margin-top:12px}.backup-table-list{display:flex;flex-wrap:wrap;gap:8px}.backup-table-list span{display:inline-flex;align-items:center;border:1px solid #dbeafe;background:#eff6ff;color:#1e40af;border-radius:999px;padding:6px 10px;font-weight:600;font-size:12px}@media(max-width:800px){.backup-clean-grid{grid-template-columns:1fr}.backup-clean-actions .btn{width:100%;text-align:center}}

/* Category icon editor on shop.php */
.mshop-category-editable{position:relative;padding:0!important;overflow:visible}.mshop-category-editable .mshop-category-main{width:100%;min-height:98px;text-align:center;text-decoration:none;color:#333;padding:8px 4px;font-size:13px;line-height:1.25;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.mshop-category-icon.has-image{overflow:hidden;background:#fff}.mshop-category-icon.has-image img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}.mshop-category-icon-form{position:absolute;right:5px;top:5px;margin:0;z-index:5}.mshop-category-edit-btn{width:28px;height:28px;border-radius:999px;background:#6d28d9;color:#fff;box-shadow:0 8px 18px rgba(15,23,42,.24);border:2px solid #fff;display:none!important;align-items:center!important;justify-content:center!important;cursor:pointer;font-size:15px;line-height:1}.mshop-category-editable:hover .mshop-category-edit-btn{display:flex!important}.mshop-category-edit-btn input{display:none}.mshop-category-edit-btn span{width:auto!important;height:auto!important;margin:0!important;border:0!important;background:transparent!important;color:inherit!important;font-size:15px!important}.shop-cat{display:flex;align-items:center;gap:8px}.shop-cat-mini-icon{width:26px;height:26px;border-radius:999px;background:#f5f3ff;border:1px solid #ede9fe;display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;overflow:hidden;color:#6d28d9;font-style:normal}.shop-cat-mini-icon .mshop-category-icon{width:26px!important;height:26px!important;margin:0!important;border:0!important;background:transparent!important;font-size:15px!important}.shop-cat-mini-icon .mshop-category-icon.has-image img{width:100%;height:100%;object-fit:cover}.shop-cat > span{margin-left:auto}@media(max-width:760px){.mshop-category-editable .mshop-category-main{min-height:90px;font-size:12px}.mshop-category-edit-btn{display:flex!important;width:24px;height:24px;font-size:13px}.mshop-category-icon-form{right:3px;top:3px}}

/* Icon điều hướng chỉnh sửa được */
.shop-nav-custom-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;overflow:hidden}
.shop-nav-custom-icon.has-image img{width:100%;height:100%;object-fit:cover;display:block}
.mshop-quick-editable,.mshop-bottom-editable,.mshop-head-icon-wrap{position:relative;min-width:0}
.mshop-quick-editable .mshop-quick-item{display:block}
.shop-nav-icon-form{position:absolute;right:2px;top:2px;margin:0;z-index:8}
.shop-nav-edit-btn{width:24px;height:24px;border-radius:999px;background:#6d28d9;color:#fff;border:2px solid #fff;box-shadow:0 6px 16px rgba(15,23,42,.26);display:none!important;align-items:center!important;justify-content:center!important;cursor:pointer;font-size:13px;line-height:1;margin:0!important;padding:0!important}
.mshop-quick-editable:hover .shop-nav-edit-btn,.mshop-bottom-editable:hover .shop-nav-edit-btn,.mshop-head-icon-wrap:hover .shop-nav-edit-btn{display:flex!important}
.shop-nav-edit-btn input{display:none}
.shop-nav-edit-btn span{width:auto!important;height:auto!important;margin:0!important;border:0!important;background:transparent!important;color:inherit!important;font-size:13px!important;box-shadow:none!important}
.mshop-quick-item .shop-nav-custom-icon.has-image{background:#fff;border-color:#eee}
.mshop-quick-item .shop-nav-custom-icon.has-image img{border-radius:14px}
.mshop-head-icon .shop-nav-custom-icon{width:28px;height:28px;font-size:24px;color:#fff}
.mshop-head-icon .shop-nav-custom-icon.has-image img{border-radius:8px}
.mshop-head-icon-wrap .shop-nav-icon-form{right:-4px;top:-6px}
.mshop-bottom-editable>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;color:#666;text-decoration:none;font-size:11px}
.mshop-bottom-editable:first-child>a{color:#6d28d9}
.mshop-bottom-editable .shop-nav-icon-form{right:3px;top:2px}
.mshop-bottom-nav .shop-nav-custom-icon{font-size:20px;line-height:1;width:24px;height:24px;color:inherit}
.mshop-bottom-nav .shop-nav-custom-icon.has-image img{border-radius:6px}
.mshop-bottom-editable .shop-nav-edit-btn{width:21px;height:21px;font-size:11px}
@media(max-width:760px){
  body.shop-body{padding-top:60px}
  .shop-top{position:fixed!important;top:0;left:0;right:0;z-index:60}
  .mshop-header{min-height:60px}
  .mshop-quick-editable .shop-nav-edit-btn,.mshop-bottom-editable .shop-nav-edit-btn,.mshop-head-icon-wrap .shop-nav-edit-btn{display:flex!important}
}

/* Fix nav tìm kiếm + popup Chat ngay */
.mshop-home-wrap{flex:0 0 auto}.mshop-home-icon{text-decoration:none}.mshop-home-icon .shop-nav-custom-icon{width:28px;height:28px;font-size:24px}.mshop-home-icon .shop-nav-custom-icon.has-image img{border-radius:8px}.mshop-header{display:flex;align-items:center;gap:8px}.mshop-search{flex:1 1 auto;min-width:0}.mshop-bottom-nav{grid-template-columns:repeat(auto-fit,minmax(56px,1fr))!important}.mshop-chat-popup[hidden]{display:none!important}.mshop-chat-popup{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center}.mshop-chat-popup-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(2px)}.mshop-chat-popup-panel{position:relative;width:min(460px,100%);height:min(720px,86vh);background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -18px 42px rgba(15,23,42,.25);overflow:hidden;display:flex;flex-direction:column}.mshop-chat-popup-head{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;background:#6d28d9;color:#fff}.mshop-chat-popup-head b{font-size:15px}.mshop-chat-popup-head button{width:34px;height:34px;border:0;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-size:25px;line-height:1;cursor:pointer}.mshop-chat-popup iframe{width:100%;height:100%;border:0;flex:1 1 auto;background:#fff}.mshop-chat-popup-open{overflow:hidden!important}.shop-chat-popup-body{background:#f5f5f5;padding:0;margin:0}.shop-chat-popup-body .shop-live-chat-page{margin:0;max-width:none;padding:0}.shop-chat-popup-body .shop-chat-hero{display:none}.shop-chat-popup-body .shop-chat-product-card{border-left:0;border-right:0;border-radius:0;margin:0}.shop-chat-popup-body .shop-chat-box{border-left:0;border-right:0;border-radius:0;box-shadow:none}.shop-chat-popup-body .shop-chat-messages{height:calc(100vh - 210px);min-height:320px}.shop-chat-popup-body .shop-chat-compose{position:sticky;bottom:0;background:#fff}@media(min-width:761px){.mshop-chat-popup{align-items:center}.mshop-chat-popup-panel{border-radius:18px;height:min(720px,88vh)}}@media(max-width:760px){body.shop-body{padding-top:60px}.mshop-header{padding-left:8px;padding-right:8px}.mshop-head-icon-wrap.mshop-home-wrap .shop-nav-icon-form{right:-5px;top:-7px}.mshop-bottom-nav{grid-template-columns:repeat(auto-fit,minmax(56px,1fr))!important}.mshop-chat-popup-panel{width:100%;height:88vh}.shop-chat-popup-body .shop-chat-messages{height:calc(100vh - 190px);min-height:300px}}


/* Chat popup tweaks: simple product question + hideable Mộc Shop info */
.shop-chat-head-tools{display:flex;align-items:center;gap:8px;margin-left:auto;flex:0 0 auto}
.shop-chat-hide-info-btn{width:26px;height:26px;border:0;border-radius:999px;background:#f1f5f9;color:#64748b;font-weight:600;cursor:pointer;line-height:1;font-size:18px;display:inline-flex;align-items:center;justify-content:center}
.shop-chat-hide-info-btn:hover{background:#ede9fe;color:#6d28d9}
.shop-chat-messages.is-shop-head-hidden{height:calc(100vh - 150px)!important}
.shop-chat-popup-body .shop-chat-messages.is-shop-head-hidden{height:calc(100vh - 150px)!important}
@media(max-width:760px){.shop-chat-head-tools{gap:5px}.shop-chat-hide-info-btn{width:24px;height:24px;font-size:17px}.shop-chat-messages.is-shop-head-hidden,.shop-chat-popup-body .shop-chat-messages.is-shop-head-hidden{height:calc(100vh - 130px)!important}}


/* Compact pagination with page jump */
.moc-compact-pager{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:14px 8px;background:transparent!important}
.moc-page-links{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.moc-compact-pager a,.moc-compact-pager .moc-page-ellipsis{display:inline-flex!important;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 11px;margin:0!important;border:0!important;border-radius:2px!important;background:#fff;color:#6d28d9;text-decoration:none;font-weight:500;box-shadow:0 1px 0 rgba(0,0,0,.03)}
.moc-compact-pager a.active{background:#6d28d9!important;color:#fff!important}
.moc-compact-pager .moc-page-btn{min-width:82px;background:#3149a7!important;color:#fff!important;font-weight:600}
.moc-compact-pager .moc-page-ellipsis{background:transparent;color:#777;box-shadow:none;padding:0 4px;min-width:20px}
.moc-page-jump{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;background:#fff;border:1px solid #eee;border-radius:4px;padding:5px 6px}
.moc-page-jump label{margin:0;color:#555;font-size:12px;font-weight:600;white-space:nowrap}
.moc-page-jump input{width:68px;height:30px;min-height:30px;padding:0 7px;text-align:center;border:1px solid #ddd;border-radius:3px;background:#fff}
.moc-page-jump button{height:30px;border:0;border-radius:3px;background:#6d28d9;color:#fff;font-weight:600;padding:0 10px;cursor:pointer}
@media(max-width:760px){.moc-compact-pager{gap:8px;padding:12px 6px 70px}.moc-compact-pager a,.moc-compact-pager .moc-page-ellipsis{min-width:29px;height:29px;padding:0 9px}.moc-compact-pager .moc-page-btn{min-width:76px}.moc-page-jump{width:100%;max-width:250px}.moc-page-jump input{flex:1;min-width:0}}


/* Chat unread badge */
.mshop-chat-unread-badge{position:absolute;left:50%;top:5px;transform:translateX(8px);min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;border:2px solid #fff;font-size:1px;font-weight:600;line-height:14px;text-align:center;box-shadow:0 2px 8px rgba(239,68,68,.32);z-index:6;pointer-events:none}
.mshop-chat-unread-badge[hidden]{display:none!important}
.shop-nav-chat-link{position:relative}
.shop-nav-chat-link .mshop-chat-unread-badge.is-inline{position:static;display:inline-flex;align-items:center;justify-content:center;transform:none;vertical-align:top;margin-left:5px;min-width:18px;height:18px;line-height:14px;font-size:1px}
.mshop-bottom-nav a,.mshop-bottom-editable>a{position:relative}
@media(max-width:760px){.mshop-chat-unread-badge{top:4px;transform:translateX(7px)}.shop-nav-chat-link .mshop-chat-unread-badge.is-inline{display:none!important}}

/* Chat unread badge */
.mshop-chat-unread-badge{position:absolute;left:50%;top:5px;transform:translateX(8px);width:15px;min-width:15px;height:15px;padding:0;border-radius:999px;background:#ef4444;color:#fff;border:2px solid #fff;font-size:0!important;line-height:1!important;text-align:center;box-shadow:0 2px 8px rgba(239,68,68,.32);z-index:6;pointer-events:none;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.mshop-chat-unread-badge[hidden]{display:none!important}
.mshop-chat-unread-num{display:block;width:12px;height:12px;font-size:10px!important;line-height:12px!important;font-weight:600;text-align:center;color:#fff;transform:scale(.1);transform-origin:center center;white-space:nowrap}
.shop-nav-chat-link{position:relative}
.shop-nav-chat-link .mshop-chat-unread-badge.is-inline{position:static;display:inline-flex;align-items:center;justify-content:center;transform:none;vertical-align:top;margin-left:5px;width:15px;min-width:15px;height:15px;line-height:1!important;font-size:0!important;padding:0}

@media(max-width:760px){.mshop-chat-unread-badge{top:4px;transform:translateX(7px)}.shop-nav-chat-link .mshop-chat-unread-badge.is-inline{display:none!important}}


/* Fix giỏ hàng: checkbox riêng, tổng cộng thoáng hơn trên mobile */
.mcart-select-strip{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-bottom:0;
  padding:8px 12px;
  box-sizing:border-box;
}
.mcart-select-strip .mcart-select-all em{
  font-style:normal;
}
.mcart-sticky-checkout .mcart-bottom-bar{
  grid-template-columns:minmax(0,1fr) 150px!important;
}
.mcart-sticky-checkout .mcart-total-box{
  text-align:left!important;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mcart-sticky-checkout .mcart-total-box b{
  display:inline;
  white-space:nowrap;
}
.mcart-sticky-checkout .mcart-select-strip,
.mcart-sticky-checkout .mcart-platform-voucher,
.mcart-sticky-checkout .mcart-coin-row,
.mcart-sticky-checkout .mcart-bottom-bar{
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:100%;
  margin:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.mcart-sticky-checkout .mcart-select-strip{
  border-left:0!important;
  border-right:0!important;
  border-top:1px solid #e6e6e6!important;
}
@media(max-width:760px){
  body.mcart-body{padding-bottom:205px!important;}
  .mcart-form{padding-bottom:205px!important;}
  .mcart-sticky-checkout .mcart-select-strip{
    padding:6px 12px!important;
    min-height:32px;
  }
  .mcart-sticky-checkout .mcart-select-all{
    gap:5px;
    font-size:8px!important;
    line-height:1.05;
  }
  .mcart-sticky-checkout .mcart-select-all em{
    font-size:8px!important;
    line-height:1.05;
  }
  .mcart-sticky-checkout .mcart-check-wrap span{
    width:15px!important;
    height:15px!important;
  }
  .mcart-sticky-checkout .mcart-check-wrap input:checked+span:after{
    font-size:10px!important;
  }
  .mcart-sticky-checkout .mcart-platform-title{
    grid-template-columns:20px auto minmax(0,1fr)!important;
    gap:5px!important;
    padding:8px 12px!important;
  }
  .mcart-sticky-checkout .mcart-platform-title b,
  .mcart-sticky-checkout .mcart-platform-title a,
  .mcart-sticky-checkout .mcart-coin-row,
  .mcart-sticky-checkout .mcart-coin-row b,
  .mcart-sticky-checkout .mcart-coin-detail{
    font-size:8px!important;
    line-height:1.15!important;
  }
  .mcart-sticky-checkout .mcart-ticket-icon{
    font-size:14px!important;
  }
  .mcart-sticky-checkout .mcart-coin-row{
    grid-template-columns:20px minmax(0,1fr) 14px 42px!important;
    gap:5px!important;
    padding:7px 12px!important;
  }
  .mcart-sticky-checkout .mcart-coin{
    width:16px!important;
    height:16px!important;
    font-size:8px!important;
  }
  .mcart-sticky-checkout .mcart-coin-help{
    width:14px!important;
    height:14px!important;
    font-size:8px!important;
  }
  .mcart-sticky-checkout .mcart-switch span{
    width:38px!important;
    height:20px!important;
  }
  .mcart-sticky-checkout .mcart-switch span:before{
    width:16px!important;
    height:16px!important;
  }
  .mcart-sticky-checkout .mcart-switch input:checked+span:before{
    transform:translateX(18px)!important;
  }
  .mcart-sticky-checkout .mcart-bottom-bar{
    grid-template-columns:minmax(0,1fr) 92px!important;
    gap:6px!important;
    min-height:42px!important;
    padding:6px 12px max(6px,env(safe-area-inset-bottom)) 12px!important;
  }
  .mcart-sticky-checkout .mcart-total-box{
    text-align:left!important;
    font-size:16px!important; /* Sửa kích thước chữ Tổng cộng tại đây */
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  .mcart-sticky-checkout .mcart-total-box b,
  .mcart-sticky-checkout .mcart-total-origin{
    font-size:16px!important; /* Sửa kích thước số tiền Tổng cộng tại đây */
    line-height:1.15!important;
  }
  .mcart-sticky-checkout .mcart-checkout-btn{
    height:32px!important;
    border-radius:4px!important;
    font-size:9px!important;
    line-height:1.05!important;
    padding:0 8px!important;
  }
}
@media(max-width:380px){
  .mcart-sticky-checkout .mcart-bottom-bar{
    grid-template-columns:minmax(0,1fr) 82px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
}

/* Trang danh mục riêng */
.mshop-category-page-body .shop-wrap{max-width:1180px;margin:0 auto;padding-bottom:86px;}
.mcategory-page{padding:12px 10px 28px;}
.mcategory-breadcrumb{display:flex;align-items:center;gap:7px;font-size:13px;color:#667085;margin:4px 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mcategory-breadcrumb a{color:#6d2bd9;text-decoration:none;font-weight:600;}
.mcategory-breadcrumb b{color:#1d2939;overflow:hidden;text-overflow:ellipsis;}
.mcategory-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;border-radius:22px;padding:18px;background:linear-gradient(135deg,#7434dc,#9b5cff);color:#fff;box-shadow:0 18px 44px rgba(109,43,217,.18);}
.mcategory-hero span{display:inline-flex;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px;font-weight:600;}
.mcategory-hero h1{font-size:26px;margin:10px 0 6px;line-height:1.12;}
.mcategory-hero p{margin:0;color:rgba(255,255,255,.88);font-size:14px;}
.mcategory-hero-search{display:flex;gap:8px;background:#fff;border-radius:16px;padding:8px;min-width:330px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);}
.mcategory-hero-search input{border:0;outline:0;min-width:0;flex:1;font-size:14px;padding:0 6px;color:#1d2939;}
.mcategory-hero-search button{border:0;border-radius:12px;background:#6d2bd9;color:#fff;font-weight:600;padding:0 16px;min-height:38px;cursor:pointer;}
.mcategory-tabs{display:flex;gap:10px;overflow-x:auto;padding:12px 2px;margin:8px 0 4px;scroll-snap-type:x proximity;}
.mcategory-tabs::-webkit-scrollbar{height:0;}
.mcategory-tab{min-width:112px;max-width:132px;flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;text-decoration:none;color:#243044;background:#fff;border:1px solid #edf0f5;border-radius:18px;padding:12px 10px;box-shadow:0 8px 24px rgba(17,24,39,.055);scroll-snap-align:start;transition:.18s ease;}
.mcategory-tab:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(17,24,39,.09);}
.mcategory-tab.active{border-color:#6d2bd9;background:#f6f0ff;box-shadow:0 10px 28px rgba(109,43,217,.16);}
.mcategory-tab .mshop-category-icon{width:42px;height:42px;border-radius:14px;background:#f7f2ff;color:#6d2bd9;display:flex;align-items:center;justify-content:center;font-size:20px;overflow:hidden;}
.mcategory-tab.active .mshop-category-icon{background:#6d2bd9;color:#fff;}
.mcategory-tab .mshop-category-icon.has-image{background:#fff;border:1px solid #eee;}
.mcategory-tab .mshop-category-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit;}
.mcategory-tab b{font-size:12px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:29px;}
.mcategory-tab em{font-style:normal;font-size:11px;color:#667085;background:#f2f4f7;border-radius:999px;padding:2px 8px;}
.mcategory-toolbar{position:sticky;top:0;z-index:12;background:rgba(246,247,251,.92);backdrop-filter:blur(10px);border:1px solid #eef0f4;border-radius:18px;padding:10px;margin:10px 0 12px;box-shadow:0 12px 28px rgba(17,24,39,.055);}
.mcategory-sort-row,.mcategory-filter-row{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:3px 0;}
.mcategory-sort-row::-webkit-scrollbar,.mcategory-filter-row::-webkit-scrollbar{height:0;}
.mcategory-sort-row>span,.mcategory-filter-row>span{flex:0 0 auto;color:#667085;font-size:12px;font-weight:600;}
.mcategory-sort-chip,.mcategory-filter-chip{flex:0 0 auto;text-decoration:none;border:1px solid #e5e7eb;background:#fff;color:#344054;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600;}
.mcategory-sort-chip.active,.mcategory-filter-chip.active{border-color:#6d2bd9;background:#6d2bd9;color:#fff;}
.mcategory-result-head{display:flex;justify-content:space-between;align-items:center;margin:14px 2px 10px;}
.mcategory-result-head h2{margin:0;font-size:18px;color:#1d2939;}
.mcategory-result-head span{font-size:13px;color:#667085;font-weight:600;}
.mcategory-product-grid.shop-grid-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.mcategory-empty{background:#fff;border:1px dashed #d8dce5;border-radius:18px;padding:28px 16px;text-align:center;color:#667085;}
.mcategory-empty b{display:block;color:#1d2939;font-size:18px;margin-bottom:6px;}
.mcategory-empty a{display:inline-flex;margin-top:10px;background:#6d2bd9;color:#fff;text-decoration:none;border-radius:999px;padding:10px 16px;font-weight:600;}
.mcategory-pager{margin-top:18px;}
@media(max-width:900px){.mcategory-product-grid.shop-grid-products{grid-template-columns:repeat(3,minmax(0,1fr));}.mcategory-hero{align-items:stretch;flex-direction:column}.mcategory-hero-search{min-width:0;width:100%;box-sizing:border-box}}
@media(max-width:760px){.mshop-category-page-body .shop-wrap{padding-left:0;padding-right:0}.mcategory-page{padding:8px 8px 82px}.mcategory-breadcrumb{font-size:12px;margin-left:4px}.mcategory-hero{border-radius:18px;padding:15px}.mcategory-hero h1{font-size:22px}.mcategory-hero p{font-size:13px}.mcategory-tabs{gap:8px;margin-left:-2px;margin-right:-2px}.mcategory-tab{min-width:92px;max-width:104px;border-radius:15px;padding:10px 8px}.mcategory-tab .mshop-category-icon{width:38px;height:38px;border-radius:13px}.mcategory-toolbar{top:54px;margin-left:-4px;margin-right:-4px;border-radius:0;border-left:0;border-right:0}.mcategory-sort-chip,.mcategory-filter-chip{font-size:12px;padding:7px 10px}.mcategory-product-grid.shop-grid-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mcategory-result-head h2{font-size:16px}.mcategory-hero-search button{min-height:36px;padding:0 13px}}

/* Drawer danh mục mở từ thanh nav dưới */
.mshop-category-drawer[hidden]{display:none!important;}
.mshop-category-drawer{position:fixed;inset:0;z-index:10040;pointer-events:none;}
.mshop-category-drawer-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.36);opacity:0;transition:opacity .28s ease;pointer-events:auto;}
.mshop-category-drawer-panel{position:absolute;left:0;top:0;bottom:0;width:min(84vw,360px);background:#fff;border-radius:0 24px 24px 0;box-shadow:22px 0 60px rgba(15,23,42,.22);transform:translateX(-106%);transition:transform .28s cubic-bezier(.2,.8,.2,1);pointer-events:auto;overflow-y:auto;overscroll-behavior:contain;padding:0 0 calc(80px + env(safe-area-inset-bottom));}
.mshop-category-drawer.is-open .mshop-category-drawer-backdrop{opacity:1;}
.mshop-category-drawer.is-open .mshop-category-drawer-panel{transform:translateX(0);}
.mshop-category-drawer-open{overflow:hidden!important;}
.mshop-category-drawer-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 14px 12px;background:linear-gradient(135deg,#6d2bd9,#9a5cff);color:#fff;box-shadow:0 12px 32px rgba(109,43,217,.18);}
.mshop-category-drawer-head b{display:block;font-size:18px;line-height:1.15;}
.mshop-category-drawer-head span{display:block;margin-top:3px;font-size:12px;color:rgba(255,255,255,.82);font-weight:600;}
.mshop-category-drawer-head button{border:0;border-radius:999px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.18);color:#fff;font-size:24px;line-height:1;cursor:pointer;font-weight:600;}
.mshop-category-drawer-list{padding:12px 10px;display:grid;gap:8px;}
.mshop-category-drawer-item{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px;min-height:58px;padding:9px 10px;border:1px solid #edf0f5;border-radius:16px;background:#fff;color:#1d2939;text-decoration:none;box-shadow:0 7px 22px rgba(15,23,42,.045);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;}
.mshop-category-drawer-item:hover{transform:translateX(2px);border-color:#d8c5ff;box-shadow:0 10px 28px rgba(109,43,217,.11);}
.mshop-category-drawer-item b{display:block;font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mshop-category-drawer-item em{display:block;margin-top:3px;font-size:11px;color:#667085;font-style:normal;font-weight:600;}
.mshop-category-drawer-icon,.mshop-category-drawer-item .mshop-category-icon{width:42px;height:42px;border-radius:14px;background:#f6f0ff;color:#6d2bd9;display:flex;align-items:center;justify-content:center;font-size:20px;overflow:hidden;}
.mshop-category-drawer-item .mshop-category-icon.has-image{background:#fff;border:1px solid #edf0f5;}
.mshop-category-drawer-item .mshop-category-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;}
.mshop-category-drawer-item.is-all{border-color:#eadfff;background:linear-gradient(135deg,#fff,#fbf8ff);}
@media(min-width:761px){.mshop-category-drawer-panel{width:360px;}}


/* Chat popup bottom sheet animation: trượt từ dưới lên */
.mshop-chat-popup[hidden]{display:none!important;}
.mshop-chat-popup{align-items:flex-end!important;justify-content:center;pointer-events:none;}
.mshop-chat-popup-backdrop{opacity:0;transition:opacity .28s ease;pointer-events:auto;}
.mshop-chat-popup-panel{transform:translateY(108%);transition:transform .30s cubic-bezier(.2,.8,.2,1);will-change:transform;pointer-events:auto;border-radius:18px 18px 0 0!important;}
.mshop-chat-popup.is-open .mshop-chat-popup-backdrop{opacity:1;}
.mshop-chat-popup.is-open .mshop-chat-popup-panel{transform:translateY(0);}
@media(min-width:761px){.mshop-chat-popup{align-items:flex-end!important}.mshop-chat-popup-panel{height:min(720px,86vh);border-radius:18px 18px 0 0!important;}}

/* Fix shop_cart.php mobile layout: căn giữa và chặn thanh kéo ngang */
body.mcart-body,
body.mcart-body *{
  box-sizing:border-box;
}
body.mcart-body{
  overflow-x:hidden!important;
}
@media(max-width:760px){
  html,
  body.mcart-body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  body.mcart-body{
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .mcart-page{
    width:min(100%,480px)!important;
    max-width:480px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    overflow-x:hidden!important;
  }
  .mcart-form,
  .mcart-topbar,
  .mcart-shop-card,
  .mcart-row-link,
  .mcart-ship-row,
  .mcart-sticky-checkout,
  .mcart-platform-voucher,
  .mcart-coin-row,
  .mcart-bottom-bar,
  .mcart-select-strip{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .mcart-sticky-checkout{
    left:50%!important;
    right:auto!important;
    width:min(100%,480px)!important;
    max-width:480px!important;
    transform:translateX(-50%)!important;
    overflow:hidden!important;
  }
  .mcart-item{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:22px 76px minmax(0,1fr)!important;
    gap:10px!important;
    padding-left:12px!important;
    padding-right:12px!important;
    overflow:hidden!important;
  }
  .mcart-info,
  .mcart-name,
  .mcart-price,
  .mcart-voucher-mini,
  .mcart-platform-title,
  .mcart-voucher-current,
  .mcart-coin-row b,
  .mcart-coin-detail,
  .mcart-total-box{
    min-width:0!important;
    max-width:100%!important;
  }
  .mcart-thumb,
  .mcart-thumb img{
    width:76px!important;
    max-width:76px!important;
    min-width:0!important;
  }
  .mcart-name,
  .mcart-ship-row b,
  .mcart-platform-title b,
  .mcart-platform-title a,
  .mcart-voucher-current,
  .mcart-coin-row b,
  .mcart-coin-detail{
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
  .mcart-ship-row{
    align-items:flex-start!important;
    padding-left:12px!important;
    padding-right:12px!important;
    overflow:hidden!important;
  }
  .mcart-platform-title{
    grid-template-columns:20px minmax(0,auto) minmax(0,1fr)!important;
  }
  .mcart-voucher-current{
    flex-wrap:wrap!important;
    overflow:hidden!important;
  }
  .mcart-sticky-checkout .mcart-bottom-bar{
    grid-template-columns:minmax(0,1fr) 92px!important;
    overflow:hidden!important;
  }
  .mcart-sticky-checkout .mcart-checkout-btn{
    max-width:92px!important;
    min-width:0!important;
  }
}

/* =========================================================
   FIX PC: Ẩn thanh header mobile trên giao diện máy tính
   Lý do: .mshop-header là thanh tìm kiếm mobile, nhưng bị hiện ở PC
   Ghi chú: Mobile vẫn giữ nguyên, không thay đổi code mobile
   ========================================================= */
@media (min-width: 761px){
  body.shop-body .mshop-header{
    display: none !important;
  }
}

/* Moc Shop font weight fix 2026-06-06 */
html,body,.shop-body{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-weight:400}
body,input,select,textarea,button{font-weight:400}
label,th,.nav a,.shop-nav a,.btn,.shop-checkout-form button,.shop-search button,.shop-cart-btn,.shop-hero-btn,.shop-checkout-btn,.shop-google-btn{font-weight:500!important}
b,strong,h1,h2,h3,h4,h5,h6,.brand,.shop-logo,.shop-section-head h2,.shop-product-price,.shop-detail-price{font-weight:600!important}
small,.muted,.shop-muted,.shop-product-code,.shop-product-stock,.shop-detail-code,.shop-detail-stock{font-weight:400!important}

/* Trang chi tiết sản phẩm: đồng bộ tông tím với trang chủ shop.php */
.shop-product-detail-body.shop-body{
  background:#f5f5f5;
  color:#222;
}
.shop-product-detail-body .shop-wrap{
  max-width:1200px;
  margin:18px auto 28px;
  padding:0 12px 88px;
}
.shop-product-detail-body .spage-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0;
  color:#222;
}
.shop-product-detail-body .spage-breadcrumb{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 12px;
  padding:10px 13px;
  background:#fff;
  border:0;
  border-radius:4px;
  box-shadow:0 1px 3px rgba(15,23,42,.08);
  color:#64748b;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.shop-product-detail-body .spage-breadcrumb a{
  color:#6d28d9;
  font-weight:600;
  text-decoration:none;
}
.shop-product-detail-body .spage-breadcrumb b{
  color:#1f2937;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.shop-product-detail-body .spage-main-card{
  position:relative;
  grid-template-columns:minmax(330px,470px) minmax(0,1fr);
  gap:24px;
  background:#fff;
  border:0;
  border-radius:6px;
  padding:20px;
  box-shadow:0 1px 3px rgba(15,23,42,.08);
  overflow:hidden;
}
.shop-product-detail-body .spage-main-card:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:5px;
  background:linear-gradient(90deg,#6d28d9,#8b5cf6,#c084fc);
}
.shop-product-detail-body .spage-gallery,
.shop-product-detail-body .spage-info{
  position:relative;
  z-index:1;
}
.shop-product-detail-body .spage-main-image{
  height:470px;
  border:1px solid #f0eaff;
  border-radius:5px;
  background:linear-gradient(180deg,#fff,#fbf8ff);
}
.shop-product-detail-body .spage-main-image img{
  object-fit:contain;
}
.shop-product-detail-body .spage-thumbs{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  margin-top:10px;
}
.shop-product-detail-body .spage-thumb{
  height:76px;
  border:1px solid #eee7ff;
  border-radius:5px;
  background:#fff;
  overflow:hidden;
  transition:.16s ease;
}
.shop-product-detail-body .spage-thumb:hover,
.shop-product-detail-body .spage-thumb.active{
  border-color:#6d28d9;
  box-shadow:0 0 0 2px rgba(109,40,217,.12);
  transform:translateY(-1px);
}
.shop-product-detail-body .spage-title-row{
  padding-bottom:10px;
  border-bottom:1px solid #f1f1f5;
}
.shop-product-detail-body .spage-info h1{
  color:#1f2937;
  font-size:24px;
  font-weight:600;
  line-height:1.35;
}
.shop-product-detail-body .spage-badge-hot{
  border-radius:999px;
  background:linear-gradient(90deg,#6d28d9,#a855f7);
  box-shadow:0 8px 18px rgba(109,40,217,.18);
  padding:5px 10px;
}
.shop-product-detail-body .spage-meta{
  color:#64748b;
  margin:12px 0;
}
.shop-product-detail-body .spage-meta b{
  color:#6d28d9;
}
.shop-product-detail-body .spage-price-box{
  margin:0 0 16px;
  padding:16px 18px;
  border:1px solid #eadfff;
  border-radius:5px;
  background:linear-gradient(135deg,#f8f4ff 0%,#fff 58%,#f1e8ff 100%);
}
.shop-product-detail-body .spage-price-box span{
  color:#6d28d9;
  font-size:32px;
  font-weight:700;
}
.shop-product-detail-body .spage-line{
  grid-template-columns:96px 1fr;
  margin:11px 0;
  color:#475569;
}
.shop-product-detail-body .spage-line span,
.shop-product-detail-body .spage-label{
  color:#667085;
  font-weight:600;
}
.shop-product-detail-body .spage-line b,
.shop-product-detail-body .spage-line a{
  color:#1f2937;
  font-weight:600;
}
.shop-product-detail-body .spage-line a:hover{
  color:#6d28d9;
}
.shop-product-detail-body .spage-voucher-strip{
  margin:14px 0;
  padding:11px 12px;
  border:1px dashed #d8c5ff;
  border-radius:6px;
  background:#fbf8ff;
}
.shop-product-detail-body .spage-voucher-strip a{
  color:#6d28d9;
  background:#fff;
  border:1px solid #ddd6fe;
  border-radius:999px;
  font-weight:600;
  padding:7px 11px;
}
.shop-product-detail-body .spage-variants{
  margin:16px 0 10px;
}
.shop-product-detail-body .spage-variant{
  border-color:#e7defd;
  border-radius:6px;
  background:#fff;
  color:#344054;
  cursor:pointer;
  transition:.16s ease;
}
.shop-product-detail-body .spage-variant:hover,
.shop-product-detail-body .spage-variant.active{
  border-color:#6d28d9;
  color:#6d28d9;
  background:#f8f4ff;
  box-shadow:0 0 0 2px rgba(109,40,217,.10);
}
.shop-product-detail-body .spage-variant img{
  border-radius:4px;
}
.shop-product-detail-body .spage-variant-hint{
  color:#667085;
}
.shop-product-detail-body .spage-buy-form{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:20px 0 14px;
}
.shop-product-detail-body .spage-chat-btn,
.shop-product-detail-body .spage-cart-btn,
.shop-product-detail-body .spage-buy-btn{
  min-height:46px;
  border-radius:4px;
  font-weight:700;
  transition:.16s ease;
}
.shop-product-detail-body .spage-chat-btn{
  border:1px solid #e7defd;
  color:#6d28d9;
  background:#fff;
}
.shop-product-detail-body .spage-chat-btn:hover{
  background:#f8f4ff;
  border-color:#6d28d9;
  transform:translateY(-1px);
}
.shop-product-detail-body .spage-cart-btn{
  border:1px solid #6d28d9;
  color:#6d28d9;
  background:#f5f3ff;
}
.shop-product-detail-body .spage-cart-btn:hover{
  background:#ede9fe;
  transform:translateY(-1px);
}
.shop-product-detail-body .spage-buy-btn{
  border:1px solid #6d28d9;
  background:#6d28d9;
  color:#fff;
  box-shadow:0 10px 22px rgba(109,40,217,.18);
}
.shop-product-detail-body .spage-buy-btn:hover{
  background:#5b21b6;
  transform:translateY(-1px);
}
.shop-product-detail-body .spage-actions-line{
  border-top:1px solid #f0eaff;
  color:#667085;
}
.shop-product-detail-body .spage-fav-btn{
  border-color:#e7defd;
  background:#fff;
  color:#6d28d9;
}
.shop-product-detail-body .spage-fav-btn:hover,
.shop-product-detail-body .spage-fav-btn.is-favorited{
  background:#6d28d9;
  border-color:#6d28d9;
  color:#fff;
}
.shop-product-detail-body .spage-desc-card,
.shop-product-detail-body .spage-recommend-section{
  border:0;
  border-radius:6px;
  background:#fff;
  box-shadow:0 1px 3px rgba(15,23,42,.08);
  padding:18px;
}
.shop-product-detail-body .spage-desc-card h2{
  margin:0 0 12px;
  border-radius:4px;
  background:linear-gradient(90deg,#f5f3ff,#fff);
  color:#6d28d9;
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:.01em;
}
.shop-product-detail-body .spage-specs{
  gap:10px 18px;
}
.shop-product-detail-body .spage-specs div{
  border:1px solid #f0eaff;
  border-radius:6px;
  background:#fbf8ff;
  padding:10px 12px;
  color:#667085;
}
.shop-product-detail-body .spage-specs b{
  color:#1f2937;
  font-weight:700;
}
.shop-product-detail-body .spage-desc-text{
  color:#374151;
  line-height:1.78;
}
.shop-product-detail-body .spage-section-head h2{
  color:#6d28d9;
  font-weight:700;
}
.shop-product-detail-body .spage-rec-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.shop-product-detail-body .spage-rec-card{
  border:1px solid #f0f0f0;
  border-radius:4px;
  overflow:hidden;
  transition:.16s ease;
}
.shop-product-detail-body .spage-rec-card:hover{
  border-color:#6d28d9;
  box-shadow:0 4px 16px rgba(109,40,217,.14);
}
.shop-product-detail-body .spage-rec-img{
  background:#fff;
}
.shop-product-detail-body .spage-rec-img img{
  object-fit:cover;
}
.shop-product-detail-body .spage-rec-name:hover,
.shop-product-detail-body .spage-rec-card b{
  color:#6d28d9;
}
.shop-product-detail-body .spage-admin-variant-toggle{
  border-color:#c4b5fd;
  background:#f5f3ff;
  color:#6d28d9;
}
.shop-product-detail-body .spage-admin-variant-panel{
  border-color:#ddd6fe;
  background:#fbf8ff;
}
.shop-product-detail-body .spage-toast.ok{
  background:#f0fdf4;
}
.shop-product-detail-body .spage-mobile-variant-head strong,
.shop-product-detail-body .spage-mobile-variant-option.active{
  color:#6d28d9;
}
.shop-product-detail-body .spage-mobile-variant-option.active{
  border-color:#6d28d9;
  box-shadow:inset 0 0 0 1px #6d28d9;
}
@media(max-width:1020px){
  .shop-product-detail-body .spage-main-card{
    grid-template-columns:minmax(290px,420px) minmax(0,1fr);
    gap:18px;
  }
  .shop-product-detail-body .spage-main-image{
    height:420px;
  }
  .shop-product-detail-body .spage-rec-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:900px){
  .shop-product-detail-body .spage-main-card{
    grid-template-columns:1fr;
  }
  .shop-product-detail-body .spage-main-image{
    height:auto;
    aspect-ratio:1/1;
  }
  .shop-product-detail-body .spage-rec-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .shop-product-detail-body .shop-wrap{
    margin:0;
    padding:0 0 72px;
    max-width:none;
  }
  .shop-product-detail-body .spage-wrap{
    background:#f5f5f5;
  }
  .shop-product-detail-body .spage-breadcrumb{
    display:none;
  }
  .shop-product-detail-body .spage-main-card{
    border-radius:0;
    padding:0;
    gap:8px;
    background:#f5f5f5;
    box-shadow:none;
  }
  .shop-product-detail-body .spage-main-card:before{
    display:none;
  }
  .shop-product-detail-body .spage-gallery,
  .shop-product-detail-body .spage-info,
  .shop-product-detail-body .spage-desc-card,
  .shop-product-detail-body .spage-recommend-section{
    background:#fff;
  }
  .shop-product-detail-body .spage-gallery{
    border-bottom:1px solid #f1f1f1;
  }
  .shop-product-detail-body .spage-main-image{
    border:0;
    border-radius:0;
    background:#fff;
  }
  .shop-product-detail-body .spage-thumbs{
    display:flex;
    padding:8px;
    margin:0;
    overflow-x:auto;
  }
  .shop-product-detail-body .spage-thumb{
    min-width:58px;
    height:58px;
  }
  .shop-product-detail-body .spage-info{
    padding:12px;
  }
  .shop-product-detail-body .spage-title-row{
    border-bottom:0;
    padding-bottom:4px;
  }
  .shop-product-detail-body .spage-info h1{
    font-size:18px;
    font-weight:600;
  }
  .shop-product-detail-body .spage-price-box{
    margin:8px -12px 12px;
    border-left:0;
    border-right:0;
    border-radius:0;
  }
  .shop-product-detail-body .spage-price-box span{
    font-size:25px;
  }
  .shop-product-detail-body .spage-line,
  .shop-product-detail-body .spage-voucher-strip,
  .shop-product-detail-body .spage-variants{
    grid-template-columns:82px minmax(0,1fr);
  }
  .shop-product-detail-body .spage-voucher-strip{
    margin-left:-2px;
    margin-right:-2px;
    padding:10px;
  }
  .shop-product-detail-body .spage-buy-form{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:70;
    display:grid;
    grid-template-columns:94px minmax(0,1fr) minmax(0,1fr);
    gap:0;
    margin:0;
    padding:8px max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    background:#fff;
    border-top:1px solid #e8e0ff;
    box-shadow:0 -12px 28px rgba(15,23,42,.08);
  }
  .shop-product-detail-body .spage-chat-btn,
  .shop-product-detail-body .spage-cart-btn,
  .shop-product-detail-body .spage-buy-btn{
    height:46px;
    min-height:46px;
    margin:0 0 0 6px;
    border-radius:4px;
    font-size:12px;
    flex-direction:column;
    gap:2px;
    line-height:1.08;
  }
  .shop-product-detail-body .spage-chat-btn{
    margin-left:0;
  }
  .shop-product-detail-body .spage-actions-line{
    display:block;
  }
  .shop-product-detail-body .spage-actions-line span{
    display:block;
    margin-top:8px;
  }
  .shop-product-detail-body .spage-desc-card,
  .shop-product-detail-body .spage-recommend-section{
    border-radius:0;
    margin-top:8px;
    padding:12px;
    box-shadow:none;
  }
  .shop-product-detail-body .spage-desc-card h2{
    font-size:15px;
    padding:10px;
  }
  .shop-product-detail-body .spage-specs div{
    grid-template-columns:96px 1fr;
  }
  .shop-product-detail-body .spage-rec-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
}

/* Admin quick edit category on shop_category.php */
.mcategory-tab-shell{position:relative;min-width:112px;max-width:132px;flex:0 0 auto;scroll-snap-align:start;}
.mcategory-tab-shell>.mcategory-tab{min-width:0;max-width:none;width:100%;height:100%;box-sizing:border-box;}
.mcategory-tab-edit-btn{position:absolute;top:7px;right:7px;border:0;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;font-size:11px;font-weight:800;padding:5px 8px;box-shadow:0 8px 18px rgba(109,43,217,.25);cursor:pointer;z-index:3;opacity:.96;}
.mcategory-tab-edit-btn:hover{filter:brightness(1.05);transform:translateY(-1px);}
.mcategory-edit-modal{position:fixed;inset:0;background:rgba(17,24,39,.55);display:none;align-items:center;justify-content:center;z-index:99999;padding:14px;}
.mcategory-edit-modal.is-open{display:flex;}
.mcategory-edit-panel{position:relative;width:min(980px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;border:1px solid rgba(124,58,237,.18);box-shadow:0 28px 90px rgba(17,24,39,.32);padding:18px;}
.mcategory-edit-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:999px;border:1px solid #eadcff;background:#fff;color:#6d28d9;font-size:22px;line-height:1;cursor:pointer;}
.mcategory-edit-head{padding:4px 44px 12px 0;border-bottom:1px solid #f0e7ff;margin-bottom:14px;}
.mcategory-edit-head span{display:inline-flex;border-radius:999px;background:#f3e8ff;color:#6d28d9;padding:5px 10px;font-size:12px;font-weight:800;}
.mcategory-edit-head h3{margin:10px 0 6px;font-size:22px;color:#20113b;}
.mcategory-edit-head p{margin:0;color:#667085;font-size:13px;}
.mcategory-edit-name-field{display:block;margin-bottom:10px;}
.mcategory-edit-name-field span{display:block;font-size:13px;font-weight:800;color:#4c1d95;margin-bottom:6px;}
.mcategory-edit-name-field input{width:100%;box-sizing:border-box;border:1px solid #d8b4fe;border-radius:14px;padding:12px 13px;font-size:15px;font-weight:700;color:#2e1065;background:#fbf8ff;outline:0;}
.mcategory-edit-name-field input:focus{border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.12);background:#fff;}
.mcategory-edit-actions-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 12px;}
.mcategory-edit-actions-top a{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#f3e8ff;color:#6d28d9;text-decoration:none;font-size:12px;font-weight:800;padding:8px 12px;}
.mcategory-edit-actions-top small{color:#667085;font-weight:700;}
.mcategory-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.mcategory-edit-list-card{border:1px solid #eadcff;border-radius:18px;overflow:hidden;background:#fcfaff;min-width:0;}
.mcategory-edit-list-head{padding:12px;background:linear-gradient(135deg,#faf5ff,#fff);border-bottom:1px solid #eadcff;}
.mcategory-edit-list-head b{display:block;color:#351161;margin-bottom:8px;}
.mcategory-edit-list-head input{width:100%;box-sizing:border-box;border:1px solid #e5d4ff;border-radius:12px;padding:10px 11px;outline:0;background:#fff;}
.mcategory-edit-list{max-height:340px;overflow:auto;padding:10px;display:grid;gap:8px;background:#fff;}
.mcategory-product-pick{display:grid;grid-template-columns:18px 56px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #eef0f4;border-radius:14px;background:#fff;padding:8px;cursor:pointer;transition:.15s;}
.mcategory-product-pick:hover{border-color:#c084fc;background:#fbf7ff;}
.mcategory-product-pick input{margin:0;width:17px;height:17px;accent-color:#7c3aed;}
.mcategory-product-thumb{display:block;width:56px;height:56px;border-radius:13px;overflow:hidden;background:#f4efff;border:1px solid #efe2ff;box-shadow:0 5px 14px rgba(124,58,237,.08);}
.mcategory-product-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.mcategory-product-info{min-width:0;display:block;}
.mcategory-product-pick b{display:block;color:#1d2939;font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mcategory-product-pick em{display:block;font-style:normal;color:#667085;font-size:12px;margin-top:4px;line-height:1.25;word-break:break-word;}
.mcategory-edit-empty,.mcategory-edit-more{border:1px dashed #ddd6fe;border-radius:14px;background:#f8f5ff;color:#6b21a8;padding:12px;text-align:center;font-size:13px;font-weight:700;}
.mcategory-edit-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid #f0e7ff;}
.mcategory-edit-cancel,.mcategory-edit-save{border:0;border-radius:999px;padding:11px 16px;font-weight:800;cursor:pointer;}
.mcategory-edit-cancel{background:#f2f4f7;color:#344054;}
.mcategory-edit-save{background:linear-gradient(135deg,#6d28d9,#9333ea);color:#fff;box-shadow:0 12px 28px rgba(109,43,217,.22);}
@media(max-width:760px){.mcategory-tab-shell{min-width:92px;max-width:104px}.mcategory-tab-edit-btn{top:5px;right:5px;font-size:10px;padding:4px 6px}.mcategory-edit-panel{border-radius:18px;padding:14px}.mcategory-edit-grid{grid-template-columns:1fr}.mcategory-edit-list{max-height:260px}.mcategory-edit-actions-top{display:block}.mcategory-edit-actions-top small{display:block;margin-top:8px}.mcategory-edit-foot{position:sticky;bottom:0;background:#fff}.mcategory-edit-save,.mcategory-edit-cancel{flex:1}}

/* Product detail mobile purchase bar: keep Chat / Add cart / Buy now visible for customers. */
@media(max-width:760px){
  body.shop-product-detail-body{
    padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;
  }
  .shop-product-detail-body .shop-wrap,
  .shop-product-detail-body .spage-wrap{
    padding-bottom:calc(88px + env(safe-area-inset-bottom))!important;
  }
  .shop-product-detail-body .spage-main-card,
  .shop-product-detail-body .spage-info{
    overflow:visible!important;
  }
  .shop-product-detail-body .mshop-bottom-nav{
    display:none!important;
  }
  .shop-product-detail-body .spage-buy-form{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:5000!important;
    width:100vw!important;
    max-width:100vw!important;
    box-sizing:border-box!important;
    display:grid!important;
    align-items:center!important;
    gap:6px!important;
    margin:0!important;
    padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
    background:#fff!important;
    border-top:1px solid #e8e0ff!important;
    box-shadow:0 -12px 30px rgba(15,23,42,.14)!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
  }
  .shop-product-detail-body .spage-buy-form.has-chat{
    grid-template-columns:78px minmax(0,1fr) minmax(0,1fr)!important;
  }
  .shop-product-detail-body .spage-buy-form.no-chat{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  .shop-product-detail-body .spage-chat-btn,
  .shop-product-detail-body .spage-cart-btn,
  .shop-product-detail-body .spage-buy-btn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    border-radius:5px!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.08!important;
    text-decoration:none!important;
    pointer-events:auto!important;
    white-space:normal!important;
  }
  .shop-product-detail-body .spage-chat-btn{
    flex-direction:column!important;
    gap:2px!important;
  }
  .shop-product-detail-body .spage-cart-btn,
  .shop-product-detail-body .spage-buy-btn{
    flex-direction:row!important;
    gap:5px!important;
  }
  .shop-product-detail-body .spage-cart-btn span:last-child,
  .shop-product-detail-body .spage-buy-btn span:last-child{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .shop-product-detail-body .spage-mobile-variant-modal:not([hidden]){
    z-index:6000!important;
  }
}

/* Lucky wheel mini game */
.moc-wheel-admin h1{margin:0 0 6px;font-size:30px;color:#111827}.moc-wheel-admin-head{align-items:flex-start}.moc-wheel-dashboard{grid-template-columns:330px minmax(0,1fr);align-items:start}.moc-wheel-side-card{position:sticky;top:12px}.moc-wheel-quick-create{display:flex;gap:8px;margin:10px 0 14px}.moc-wheel-quick-create input{min-width:0}.moc-wheel-program-list{display:flex;flex-direction:column;gap:8px;max-height:560px;overflow:auto;padding-right:4px}.moc-wheel-program-item{display:block;text-decoration:none;color:#111827;border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fff;transition:.16s ease}.moc-wheel-program-item:hover,.moc-wheel-program-item.active{border-color:#8b5cf6;box-shadow:0 12px 30px rgba(139,92,246,.16);transform:translateY(-1px)}.moc-wheel-program-item b{display:block}.moc-wheel-program-item small{display:block;color:#6b7280;margin-top:4px}.moc-wheel-link-box{background:linear-gradient(135deg,#f5f3ff,#fff7ed);border:1px solid #e9d5ff;border-radius:14px;padding:12px;margin:8px 0 14px;display:grid;gap:6px}.moc-wheel-link-box code{font-size:12px;background:rgba(255,255,255,.8);padding:4px 7px;border-radius:8px}.moc-wheel-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin:14px 0}.moc-wheel-prize-card{border:1px solid #ddd6fe}.moc-wheel-color-dot{display:inline-block;width:18px;height:18px;border-radius:50%;vertical-align:middle;margin-right:8px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.8),0 2px 8px rgba(0,0,0,.14)}.moc-wheel-admin-thumb{max-width:52px;max-height:52px;margin-top:6px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;object-fit:cover}.moc-wheel-prize-table td{vertical-align:top}.inline-check{display:inline-flex!important;align-items:center;gap:5px;margin-top:6px!important;font-weight:600!important;color:#4b5563!important}.inline-check input{width:auto!important}.moc-wheel-public-body{background:#0f172a}.moc-wheel-page{min-height:calc(100vh - 170px);background:var(--wheel-bg);color:var(--wheel-text);background-size:cover;background-position:center;padding:34px 16px 52px}.moc-wheel-hero{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(260px,.9fr) minmax(320px,1.08fr) minmax(280px,.82fr);gap:22px;align-items:center}.moc-wheel-copy,.moc-wheel-game-card,.moc-wheel-form-card,.moc-wheel-message-card{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.13);backdrop-filter:blur(14px);box-shadow:0 24px 70px rgba(15,23,42,.24);border-radius:28px}.moc-wheel-copy{padding:28px}.moc-wheel-kicker{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:7px 13px;font-weight:800}.moc-wheel-copy h1{font-size:clamp(30px,5vw,58px);line-height:1.02;margin:18px 0 12px;color:inherit}.moc-wheel-intro{font-size:18px;line-height:1.55;margin:0 0 12px}.moc-wheel-content{line-height:1.65;color:rgba(255,255,255,.9)}.moc-wheel-mini-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.moc-wheel-mini-list span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.15);font-size:13px}.moc-wheel-mini-list i{width:12px;height:12px;border-radius:50%;display:inline-block}.moc-wheel-game-card{position:relative;padding:22px;display:grid;place-items:center;overflow:visible}.moc-wheel-canvas-wrap{position:relative;width:min(100%,620px);aspect-ratio:1/1;display:grid;place-items:center}.moc-wheel-canvas-wrap canvas{width:100%;height:100%;filter:drop-shadow(0 22px 40px rgba(0,0,0,.26))}.moc-wheel-center-button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:132px;height:132px;border-radius:50%;border:6px solid rgba(255,255,255,.9);background:var(--wheel-button);color:#fff;font-size:17px;font-weight:900;box-shadow:0 14px 35px rgba(0,0,0,.28),inset 0 -8px 0 rgba(0,0,0,.11);cursor:pointer;text-align:center;padding:10px}.moc-wheel-center-button:disabled{filter:grayscale(.5);opacity:.72;cursor:not-allowed}.moc-wheel-pointer{position:absolute;z-index:3;top:6px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:24px solid transparent;border-right:24px solid transparent;border-top:54px solid #fef3c7;filter:drop-shadow(0 7px 8px rgba(0,0,0,.28))}.moc-wheel-pointer:after{content:"";position:absolute;left:-10px;top:-47px;border-left:10px solid transparent;border-right:10px solid transparent;border-top:28px solid #f59e0b}.moc-wheel-form-card{padding:24px}.moc-wheel-form-card h2{margin:0 0 14px;color:inherit}.moc-wheel-form-card label{display:block;font-weight:800;margin:12px 0 5px}.moc-wheel-form-card input{width:100%;border:1px solid rgba(255,255,255,.32);background:rgba(255,255,255,.92);border-radius:14px;padding:13px 14px;font-size:15px;color:#111827;box-sizing:border-box}.moc-wheel-submit{margin-top:14px;width:100%;border:0;border-radius:16px;background:var(--wheel-button);color:#fff;padding:14px 16px;font-weight:900;font-size:16px;box-shadow:0 12px 26px rgba(0,0,0,.18);cursor:pointer}.moc-wheel-submit:disabled{opacity:.65;cursor:not-allowed}.moc-wheel-alert{background:rgba(254,242,242,.96);color:#991b1b;border-radius:14px;padding:12px;margin:8px 0;font-weight:800}.moc-wheel-result{margin-top:14px;border-radius:18px;padding:16px;line-height:1.55;background:rgba(255,255,255,.92);color:#111827}.moc-wheel-result.is-win{border:2px solid #facc15}.moc-wheel-result.is-lose{border:2px solid #cbd5e1}.moc-wheel-voucher-code{margin-top:10px;display:inline-block;background:#111827;color:#fff;border-radius:12px;padding:9px 14px;font-size:22px;font-weight:950;letter-spacing:1px}.moc-wheel-message-card{padding:30px;max-width:620px;margin:30px auto;text-align:center}.moc-wheel-effect-shake{animation:mocWheelShake .72s ease}.moc-wheel-effect-glow{animation:mocWheelGlow 1.4s ease}.moc-wheel-confetti{position:fixed;top:-18px;width:10px;height:18px;border-radius:3px;z-index:9999;animation:mocWheelConfetti 2.1s linear forwards}.shop-body .moc-wheel-page a{color:inherit}@keyframes mocWheelShake{0%,100%{transform:translateX(0)}15%{transform:translateX(-8px) rotate(-1deg)}30%{transform:translateX(8px) rotate(1deg)}45%{transform:translateX(-7px) rotate(-1deg)}60%{transform:translateX(7px) rotate(1deg)}75%{transform:translateX(-3px)}}@keyframes mocWheelGlow{0%,100%{box-shadow:0 24px 70px rgba(15,23,42,.24)}35%{box-shadow:0 0 0 12px rgba(250,204,21,.20),0 0 70px rgba(250,204,21,.62)}}@keyframes mocWheelConfetti{0%{transform:translateY(0) rotate(0);opacity:1}100%{transform:translateY(105vh) rotate(720deg);opacity:.1}}@media (max-width:1080px){.moc-wheel-dashboard{grid-template-columns:1fr}.moc-wheel-side-card{position:static}.moc-wheel-hero{grid-template-columns:1fr;max-width:720px}.moc-wheel-copy{order:1}.moc-wheel-game-card{order:2}.moc-wheel-form-card{order:3}}@media (max-width:640px){.moc-wheel-page{padding:18px 10px 32px}.moc-wheel-copy,.moc-wheel-game-card,.moc-wheel-form-card{border-radius:22px}.moc-wheel-copy,.moc-wheel-form-card{padding:18px}.moc-wheel-center-button{width:104px;height:104px;font-size:14px;border-width:5px}.moc-wheel-pointer{top:2px;border-left-width:18px;border-right-width:18px;border-top-width:42px}.moc-wheel-stats{grid-template-columns:1fr}.moc-wheel-quick-create{flex-direction:column}}

/* Lucky wheel live preview in admin */
.moc-wheel-preview-panel{margin-top:18px;border:1px solid #ddd6fe;border-radius:18px;background:#fbfaff;padding:14px;box-shadow:0 14px 34px rgba(88,28,135,.10)}
.moc-wheel-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.moc-wheel-preview-toolbar b{display:block;color:#111827;font-size:17px}
.moc-wheel-preview-toolbar small{display:block;color:#6b7280;margin-top:3px}
.moc-wheel-preview-page{--wheel-bg:#5b21b6;--wheel-text:#fff;--wheel-button:#f59e0b;min-height:520px;background:var(--wheel-bg);color:var(--wheel-text);background-size:cover;background-position:center;border-radius:22px;padding:18px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.moc-wheel-preview-hero{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(260px,1.05fr) minmax(220px,.8fr);gap:14px;align-items:center;max-width:1120px;margin:0 auto}
.moc-wheel-preview-copy,.moc-wheel-preview-game-card,.moc-wheel-preview-form-card{border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.13);backdrop-filter:blur(12px);box-shadow:0 18px 50px rgba(15,23,42,.22);border-radius:22px}
.moc-wheel-preview-copy{padding:20px;min-width:0}.moc-wheel-preview-copy h1{font-size:clamp(26px,4vw,48px);line-height:1.04;margin:15px 0 10px;color:inherit;word-break:break-word}.moc-wheel-preview-copy .moc-wheel-content{max-height:180px;overflow:auto}.moc-wheel-preview-game-card{position:relative;padding:18px;display:grid;place-items:center;overflow:visible}.moc-wheel-preview-canvas-wrap{position:relative;width:min(100%,520px);aspect-ratio:1/1;display:grid;place-items:center}.moc-wheel-preview-canvas-wrap canvas{width:100%;height:100%;filter:drop-shadow(0 18px 34px rgba(0,0,0,.24))}.moc-wheel-preview-canvas-wrap .moc-wheel-center-button{width:112px;height:112px;font-size:15px;border-width:5px}.moc-wheel-preview-form-card{padding:20px}.moc-wheel-preview-form-card h2{margin:0 0 12px;color:inherit}.moc-wheel-preview-form-card label{display:block;font-weight:800;margin:10px 0 6px}.moc-wheel-preview-form-card input{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.32);background:rgba(255,255,255,.92);border-radius:13px;padding:12px 13px;font-size:14px;color:#111827}.moc-wheel-preview-form-card .moc-wheel-submit{pointer-events:none}.moc-wheel-preview-panel[hidden]{display:none!important}@media(max-width:1180px){.moc-wheel-preview-hero{grid-template-columns:1fr;max-width:650px}.moc-wheel-preview-copy{order:1}.moc-wheel-preview-game-card{order:2}.moc-wheel-preview-form-card{order:3}}@media(max-width:640px){.moc-wheel-preview-toolbar{align-items:flex-start;flex-direction:column}.moc-wheel-preview-page{padding:10px;border-radius:18px}.moc-wheel-preview-copy,.moc-wheel-preview-game-card,.moc-wheel-preview-form-card{border-radius:18px}.moc-wheel-preview-canvas-wrap .moc-wheel-center-button{width:94px;height:94px;font-size:13px}}


/* Lucky wheel builder: left form + right live preview, no-code editor */
.moc-wheel-builder-shell{display:grid;grid-template-columns:minmax(360px,.95fr) minmax(420px,1.05fr);gap:18px;align-items:start;margin-top:12px}
.moc-wheel-builder-controls{min-width:0}
.moc-wheel-fill-note{display:flex;flex-direction:column;gap:4px;margin:0 0 12px;padding:13px 14px;border:1px solid #ddd6fe;border-radius:16px;background:linear-gradient(135deg,#f5f3ff,#fff7ed);color:#111827}
.moc-wheel-fill-note b{font-size:16px}.moc-wheel-fill-note span{font-size:13px;color:#6b7280;line-height:1.45}
.moc-wheel-builder-preview{min-width:0;position:sticky;top:12px;align-self:start}
.moc-wheel-builder-preview .moc-wheel-preview-panel{margin-top:0;border-radius:20px;background:#111827;padding:12px;box-shadow:0 24px 60px rgba(15,23,42,.20)}
.moc-wheel-builder-preview .moc-wheel-preview-toolbar{margin:0 0 10px;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px 12px}
.moc-wheel-builder-preview .moc-wheel-preview-toolbar b{color:#fff}.moc-wheel-builder-preview .moc-wheel-preview-toolbar small{color:rgba(255,255,255,.72)}
.moc-wheel-preview-live{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#16a34a;color:#fff;font-weight:900;font-size:12px;padding:6px 10px;box-shadow:0 0 0 4px rgba(22,163,74,.18)}
.moc-wheel-builder-preview .moc-wheel-preview-page{min-height:640px;border-radius:18px;padding:14px;overflow:auto;background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.moc-wheel-builder-preview .moc-wheel-preview-hero{display:grid;grid-template-columns:1fr;gap:12px;max-width:640px;margin:0 auto;align-items:stretch}
.moc-wheel-builder-preview .moc-wheel-preview-copy{order:1;padding:18px}.moc-wheel-builder-preview .moc-wheel-preview-game-card{order:2;padding:16px}.moc-wheel-builder-preview .moc-wheel-preview-form-card{order:3;padding:18px}
.moc-wheel-builder-preview .moc-wheel-preview-copy h1{font-size:clamp(26px,4vw,42px)}
.moc-wheel-builder-preview .moc-wheel-preview-canvas-wrap{max-width:420px;margin:auto}.moc-wheel-builder-preview .moc-wheel-preview-canvas-wrap .moc-wheel-center-button{width:96px;height:96px;font-size:13px}
.moc-wheel-main-card{overflow:visible}.moc-wheel-prize-card{margin-top:18px}
@media(max-width:1260px){.moc-wheel-builder-shell{grid-template-columns:1fr}.moc-wheel-builder-preview{position:static}.moc-wheel-builder-preview .moc-wheel-preview-page{min-height:520px}}
@media(max-width:700px){.moc-wheel-builder-shell{gap:12px}.moc-wheel-builder-preview .moc-wheel-preview-panel{padding:8px;border-radius:16px}.moc-wheel-builder-preview .moc-wheel-preview-toolbar{align-items:flex-start;flex-direction:column}.moc-wheel-builder-preview .moc-wheel-preview-page{padding:10px;min-height:480px}.moc-wheel-fill-note{padding:11px 12px}}

/* Lucky wheel public page: cleaner campaign layout */
.moc-wheel-page.moc-wheel-page-v2{min-height:calc(100vh - 148px);background-color:var(--wheel-bg);background-size:cover;background-position:center;padding:clamp(18px,3vw,42px) 14px 56px;position:relative;overflow:hidden}
.moc-wheel-page.moc-wheel-page-v2:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 10%,rgba(255,255,255,.22),transparent 28%),radial-gradient(circle at 88% 22%,rgba(250,204,21,.22),transparent 26%),linear-gradient(135deg,rgba(15,23,42,.12),rgba(15,23,42,.20));pointer-events:none}
.moc-wheel-page.moc-wheel-page-v2>.moc-wheel-hero{position:relative;z-index:1;max-width:1220px;grid-template-columns:minmax(290px,.95fr) minmax(390px,1.1fr);grid-template-areas:"copy game" "form game";align-items:stretch;gap:20px}
.moc-wheel-page-v2 .moc-wheel-copy{grid-area:copy}.moc-wheel-page-v2 .moc-wheel-game-card{grid-area:game;min-height:520px}.moc-wheel-page-v2 .moc-wheel-form-card{grid-area:form}.moc-wheel-page-v2 .moc-wheel-copy,.moc-wheel-page-v2 .moc-wheel-game-card,.moc-wheel-page-v2 .moc-wheel-form-card,.moc-wheel-page-v2 .moc-wheel-message-card{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.24);box-shadow:0 24px 80px rgba(15,23,42,.28)}
.moc-wheel-page-v2 .moc-wheel-copy h1{font-size:clamp(32px,5.4vw,64px);letter-spacing:-.035em}.moc-wheel-page-v2 .moc-wheel-canvas-wrap{width:min(100%,620px);margin:auto}.moc-wheel-page-v2 .moc-wheel-form-card h2{font-size:24px}.moc-wheel-page-v2 .moc-wheel-submit{background:var(--wheel-button);letter-spacing:.02em}
@media(max-width:1080px){.moc-wheel-page.moc-wheel-page-v2>.moc-wheel-hero{grid-template-columns:1fr;grid-template-areas:"copy" "game" "form";max-width:740px}.moc-wheel-page-v2 .moc-wheel-game-card{min-height:auto}}
@media(max-width:640px){.moc-wheel-page.moc-wheel-page-v2{padding:14px 9px 34px}.moc-wheel-page-v2 .moc-wheel-copy h1{font-size:32px}.moc-wheel-page-v2 .moc-wheel-copy,.moc-wheel-page-v2 .moc-wheel-game-card,.moc-wheel-page-v2 .moc-wheel-form-card{border-radius:20px}}


/* Lucky wheel final layout fixes */
.moc-wheel-main-card .form-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:end}
.moc-wheel-builder-shell{grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:18px}
.moc-wheel-builder-preview{max-width:420px;width:100%}
.moc-wheel-builder-preview .moc-wheel-preview-page{min-height:auto;max-height:720px;overflow:auto}
.moc-wheel-builder-preview .moc-wheel-preview-canvas-wrap{max-width:360px}
.moc-wheel-prize-card{padding:18px 20px}.moc-wheel-prize-card .form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.moc-wheel-prize-card p{margin:0 0 10px}.moc-wheel-prize-card .actions{margin-top:4px}
@media(max-width:1500px){.moc-wheel-builder-shell{grid-template-columns:1fr}.moc-wheel-builder-preview{position:static;max-width:none}.moc-wheel-builder-preview .moc-wheel-preview-page{max-height:none}.moc-wheel-builder-preview .moc-wheel-preview-hero{grid-template-columns:minmax(220px,.9fr) minmax(280px,1.1fr);grid-template-areas:"copy game" "form game";max-width:900px}.moc-wheel-builder-preview .moc-wheel-preview-copy{grid-area:copy}.moc-wheel-builder-preview .moc-wheel-preview-game-card{grid-area:game}.moc-wheel-builder-preview .moc-wheel-preview-form-card{grid-area:form}}
@media(max-width:900px){.moc-wheel-builder-preview .moc-wheel-preview-hero{grid-template-columns:1fr;grid-template-areas:"copy" "game" "form"}.moc-wheel-dashboard{grid-template-columns:1fr}}
.moc-wheel-standalone-body{margin:0;background:#0f172a;color:#fff;font-family:Arial,"Helvetica Neue",sans-serif}.moc-wheel-standalone{min-height:100vh}.moc-wheel-standalone-top{position:relative;z-index:2;max-width:1220px;margin:0 auto 16px;display:flex;justify-content:space-between;gap:12px;align-items:center}.moc-wheel-standalone-top a{color:#fff;text-decoration:none;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:9px 14px;font-weight:800}.moc-wheel-standalone-top span{font-weight:900;letter-spacing:.03em}.moc-wheel-login-btn{display:block;text-align:center;margin:10px 0 6px;border-radius:16px;background:#2563eb;color:#fff;text-decoration:none;padding:13px 16px;font-weight:900}.moc-wheel-form-card form.is-disabled{opacity:.55;pointer-events:none}


/* Lucky wheel admin: wide workbench layout */
.moc-wheel-admin-body .wrap{max-width:1720px!important;width:calc(100vw - 32px)!important;margin:14px auto!important;padding:0 8px!important}.moc-wheel-admin-body .moc-wheel-dashboard{grid-template-columns:280px minmax(0,1fr)!important;gap:16px}.moc-wheel-admin-body .moc-wheel-side-card{top:10px}.moc-wheel-admin-body .moc-wheel-main-card{min-width:0}.moc-wheel-admin-body .moc-wheel-builder-shell{grid-template-columns:minmax(660px,1fr) minmax(380px,460px)!important;gap:18px;align-items:start}.moc-wheel-admin-body .moc-wheel-builder-preview{max-width:460px!important;width:100%;position:sticky;top:12px}.moc-wheel-admin-body .moc-wheel-main-card .form-grid{grid-template-columns:repeat(4,minmax(150px,1fr))!important;gap:12px 14px}.moc-wheel-admin-body .moc-wheel-main-card .form-grid p{margin:0}.moc-wheel-admin-body .moc-wheel-fill-note{margin-bottom:14px}.moc-wheel-admin-body .moc-wheel-preview-panel{box-shadow:0 18px 42px rgba(15,23,42,.14)}.moc-wheel-admin-body .moc-wheel-builder-preview .moc-wheel-preview-page{max-height:680px}.moc-wheel-admin-body .moc-wheel-builder-preview .moc-wheel-preview-canvas-wrap{max-width:340px}.moc-wheel-admin-body .moc-wheel-stats,.moc-wheel-admin-body .moc-wheel-prize-card{margin-left:296px}.moc-wheel-admin-body .moc-wheel-stats{grid-template-columns:repeat(3,minmax(180px,1fr))!important}.moc-wheel-admin-body .moc-wheel-prize-card .form-grid{grid-template-columns:repeat(4,minmax(190px,1fr))!important;gap:12px 14px}.moc-wheel-admin-body .moc-wheel-prize-card .form-grid p{margin:0 0 8px}.moc-wheel-admin-body .moc-wheel-prize-card .table-wrap{margin-top:14px}@media(max-width:1300px){.moc-wheel-admin-body .wrap{width:calc(100vw - 20px)!important}.moc-wheel-admin-body .moc-wheel-dashboard{grid-template-columns:1fr!important}.moc-wheel-admin-body .moc-wheel-side-card{position:static}.moc-wheel-admin-body .moc-wheel-builder-shell{grid-template-columns:1fr!important}.moc-wheel-admin-body .moc-wheel-builder-preview{max-width:none!important;position:static}.moc-wheel-admin-body .moc-wheel-main-card .form-grid{grid-template-columns:repeat(3,minmax(160px,1fr))!important}.moc-wheel-admin-body .moc-wheel-stats,.moc-wheel-admin-body .moc-wheel-prize-card{margin-left:0}.moc-wheel-admin-body .moc-wheel-prize-card .form-grid{grid-template-columns:repeat(3,minmax(170px,1fr))!important}}@media(max-width:760px){.moc-wheel-admin-body .wrap{width:100%!important;padding:0 10px!important}.moc-wheel-admin-body .moc-wheel-main-card .form-grid,.moc-wheel-admin-body .moc-wheel-prize-card .form-grid,.moc-wheel-admin-body .moc-wheel-stats{grid-template-columns:1fr!important}.moc-wheel-admin-body .moc-wheel-admin-head{display:block}.moc-wheel-admin-body .moc-wheel-admin-head .actions{margin-top:10px}}

/* Lucky wheel admin compact editor fix */
.moc-wheel-admin-body .moc-wheel-builder-shell{
  grid-template-columns:minmax(500px,620px) minmax(380px,460px)!important;
  justify-content:center;
  gap:18px!important;
}
.moc-wheel-admin-body .moc-wheel-builder-controls{
  max-width:620px;
  width:100%;
}
.moc-wheel-admin-body .moc-wheel-main-card .form-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px 12px!important;
}
.moc-wheel-admin-body .moc-wheel-main-card .form-grid p{
  min-width:0;
}
.moc-wheel-admin-body .moc-wheel-main-card .form-grid p.full{
  grid-column:1 / -1;
}
.moc-wheel-admin-body .moc-wheel-main-card textarea{
  min-height:58px!important;
  resize:vertical;
}
.moc-wheel-admin-body .moc-wheel-main-card input[type="color"],
.moc-wheel-admin-body .moc-wheel-prize-card input[type="color"]{
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  padding:2px!important;
  border-radius:9px!important;
  border:1px solid #cbd5e1!important;
  background:#fff!important;
  cursor:pointer;
  display:inline-block!important;
  vertical-align:middle;
}
.moc-wheel-admin-body input[type="color"]::-webkit-color-swatch-wrapper{padding:0!important}
.moc-wheel-admin-body input[type="color"]::-webkit-color-swatch{border:0!important;border-radius:7px!important}
.moc-wheel-admin-body input[type="color"]::-moz-color-swatch{border:0!important;border-radius:7px!important}
.moc-wheel-admin-body .moc-wheel-main-card .form-grid p:has(input[type="color"]),
.moc-wheel-admin-body .moc-wheel-prize-card .form-grid p:has(input[type="color"]){
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.moc-wheel-admin-body .moc-wheel-builder-preview{
  max-width:460px!important;
}
.moc-wheel-admin-body .moc-wheel-builder-preview .moc-wheel-preview-canvas-wrap{
  max-width:320px;
}
@media(max-width:1420px){
  .moc-wheel-admin-body .moc-wheel-builder-shell{grid-template-columns:minmax(460px,600px) minmax(360px,440px)!important}
  .moc-wheel-admin-body .moc-wheel-main-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:1100px){
  .moc-wheel-admin-body .moc-wheel-builder-shell{grid-template-columns:1fr!important;justify-content:stretch}
  .moc-wheel-admin-body .moc-wheel-builder-controls{max-width:none}
  .moc-wheel-admin-body .moc-wheel-builder-preview{max-width:none!important;position:static}
}
@media(max-width:760px){
  .moc-wheel-admin-body .moc-wheel-main-card .form-grid{grid-template-columns:1fr!important}
}

/* Lucky wheel admin: move prize editor into left program column */
.moc-wheel-admin-body .moc-wheel-side-card{
  position:static!important;
  align-self:start!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-program-list{
  max-height:240px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card{
  margin:14px 0 0!important;
  padding:14px!important;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  box-shadow:0 12px 30px rgba(15,23,42,.07)!important;
  border-color:#ddd6fe!important;
  background:#fff!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card h2{
  font-size:16px!important;
  line-height:1.25!important;
  margin:0 0 8px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card > .muted{
  font-size:12px!important;
  line-height:1.35!important;
  margin:0 0 10px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card .form-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card .form-grid p,
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card .form-grid p.full{
  grid-column:auto!important;
  margin:0!important;
  min-width:0!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card label{
  font-size:12px!important;
  margin-bottom:4px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card input:not([type="checkbox"]):not([type="color"]),
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card select,
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card textarea{
  min-height:34px!important;
  padding:7px 9px!important;
  font-size:13px!important;
  border-radius:9px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card input[type="file"]{
  max-width:100%!important;
  font-size:12px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card input[type="color"]{
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  height:32px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card .inline-check{
  display:flex!important;
  margin-top:5px!important;
  font-size:12px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card .actions{
  gap:6px!important;
  margin-top:10px!important;
}
.moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-prize-side-card .btn{
  padding:8px 10px!important;
  font-size:12px!important;
}
.moc-wheel-admin-body .moc-wheel-stats{
  margin-left:296px!important;
}
@media(max-width:1300px){
  .moc-wheel-admin-body .moc-wheel-side-card .moc-wheel-program-list{max-height:none!important}
  .moc-wheel-admin-body .moc-wheel-stats{margin-left:0!important}
}


/* Lucky wheel real preview iframe */
.moc-wheel-real-preview{background:#0f172a;border-radius:22px;padding:10px;box-shadow:0 18px 45px rgba(15,23,42,.18);}
.moc-wheel-real-preview .moc-wheel-preview-toolbar{margin-bottom:10px;}
.moc-wheel-real-preview-frame{display:block;width:100%;height:720px;border:0;border-radius:18px;background:#f8fafc;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);}
.moc-wheel-real-preview-empty{min-height:360px;border-radius:18px;background:#f8fafc;color:#475569;display:flex;align-items:center;justify-content:center;text-align:center;padding:28px;font-weight:700;}
.moc-wheel-preview-refresh{border:0;cursor:pointer;}
.moc-wheel-preview-embed-body{margin:0;background:#eef2ff;overflow:auto;}
.moc-wheel-preview-embed-body .moc-wheel-page{min-height:auto;border-radius:0;box-shadow:none;padding:18px;}
.moc-wheel-preview-test-note{position:sticky;top:0;z-index:20;margin:-18px -18px 12px;padding:8px 12px;text-align:center;font-weight:900;font-size:12px;letter-spacing:.02em;color:#0f172a;background:#fde68a;border-bottom:1px solid rgba(146,64,14,.18);}
.moc-wheel-alert.is-test{background:#fef3c7;color:#78350f;border-color:#fbbf24;}
@media (max-width: 900px){.moc-wheel-real-preview-frame{height:620px;}}

/* Lucky wheel public hardening: standalone layout and clickable center spin button. */
.moc-wheel-center-button{
  z-index:8;
  pointer-events:auto;
  touch-action:manipulation;
  user-select:none;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
}
.moc-wheel-canvas-wrap canvas,
.moc-wheel-preview-canvas-wrap canvas{
  pointer-events:none;
}
body.moc-wheel-public-body{
  margin:0!important;
  background:#0f172a!important;
  color:#fff!important;
}
body.moc-wheel-public-body .shop-top,
body.moc-wheel-public-body .shop-footer,
body.moc-wheel-public-body .mshop-bottom-nav{
  display:none!important;
}
body.moc-wheel-public-body .shop-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
body.moc-wheel-public-body .moc-wheel-page{
  min-height:100vh!important;
}
body.moc-wheel-public-body .moc-wheel-page.moc-wheel-page-v2{
  min-height:100vh!important;
  padding-top:clamp(18px,3vw,42px)!important;
}

/* Moc Shop news module */
.moc-news-hero{max-width:1180px;margin:18px auto 18px;padding:30px;border-radius:30px;background:linear-gradient(135deg,#f5edff,#fff 50%,#efe2ff);box-shadow:0 18px 40px rgba(124,58,237,.12);border:1px solid rgba(168,85,247,.16)}
.moc-news-hero span{display:inline-flex;border:1px solid rgba(147,51,234,.22);background:#fff;border-radius:999px;padding:7px 12px;color:#7c3aed;font-weight:600;font-size:13px}
.moc-news-hero h1{margin:12px 0 10px;font-size:clamp(28px,4vw,46px);line-height:1.12;color:#2f174f;font-weight:600;letter-spacing:0}
.moc-news-hero p{max-width:760px;margin:0;color:#6b5b7b;font-size:16px;line-height:1.7}
.moc-news-wrap{max-width:1180px;margin:0 auto 26px;padding:0 14px;box-sizing:border-box}
.moc-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.moc-news-grid.is-related{grid-template-columns:repeat(3,minmax(0,1fr))}
.moc-news-card{overflow:hidden;border-radius:24px;background:#fff;border:1px solid rgba(168,85,247,.13);box-shadow:0 14px 34px rgba(43,20,72,.09);display:flex;flex-direction:column;min-height:100%}
.moc-news-card-img{display:block;aspect-ratio:16/10;background:#f3e8ff;overflow:hidden}
.moc-news-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.moc-news-card:hover .moc-news-card-img img{transform:scale(1.04)}
.moc-news-card-body{padding:16px 17px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.moc-news-card-body time{font-size:12px;color:#8b5cf6;font-weight:600}
.moc-news-card-body h2{font-size:18px;line-height:1.34;margin:0;color:#25113d;font-weight:600}
.moc-news-card-body h2 a{color:inherit;text-decoration:none;font-weight:inherit}
.moc-news-card-body h2 a:hover{color:#7c3aed}
.moc-news-card-body p{margin:0;color:#6b6473;line-height:1.58;font-size:14px;flex:1}
.moc-news-read{font-weight:600;color:#7c3aed;text-decoration:none;margin-top:4px}
.moc-news-pages{display:flex;gap:8px;justify-content:center;margin:24px 0;flex-wrap:wrap}
.moc-news-pages a{min-width:36px;height:36px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(168,85,247,.2);background:#fff;color:#7c3aed;text-decoration:none;font-weight:600}
.moc-news-pages a.is-active{background:#7c3aed;color:#fff}
.moc-news-breadcrumb{max-width:900px;margin:18px auto 0;padding:0 14px;display:flex;gap:8px;color:#7c6b88;font-size:14px}
.moc-news-breadcrumb a{color:#7c3aed;text-decoration:none;font-weight:600}
.moc-news-detail{max-width:900px;margin:0 auto 30px;padding:0 14px;box-sizing:border-box}
.moc-news-detail-head{padding:22px 0 14px;text-align:left}
.moc-news-detail-head time{display:inline-flex;color:#7c3aed;background:#f5edff;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600}
.moc-news-detail-head h1{font-size:clamp(30px,4.4vw,52px);line-height:1.12;margin:14px 0 12px;color:#221134;font-weight:600;letter-spacing:0}
.moc-news-detail-head p{font-size:17px;line-height:1.75;color:#665873;margin:0;max-width:820px}
.moc-news-cover{margin:10px 0 24px;border-radius:26px;overflow:hidden;box-shadow:0 20px 44px rgba(43,20,72,.12);background:#f3e8ff}
.moc-news-cover img{width:100%;height:auto;display:block;max-height:540px;object-fit:cover}
.moc-news-content-view{background:#fff;border-radius:28px;padding:26px;box-shadow:0 14px 36px rgba(43,20,72,.08);border:1px solid rgba(168,85,247,.12);color:#2f2937;font-size:16px;line-height:1.82}
.moc-news-content-view h2{font-size:25px;line-height:1.25;color:#351558;margin:1.2em 0 .45em}
.moc-news-content-view h2:first-child{margin-top:0}
.moc-news-content-view h3{font-size:20px;color:#4c1d95;margin:1.1em 0 .4em}
.moc-news-content-view p{margin:.6em 0}
.moc-news-content-view a{color:#7c3aed;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(124,58,237,.25)}
.moc-news-content-view ul,.moc-news-content-view ol{padding-left:1.35em;margin:.7em 0}
.moc-news-content-view li{margin:.35em 0}
.moc-news-related h2{color:#25113d;margin:10px 0 14px;font-size:24px;font-weight:600}
.moc-news-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 16px;padding:18px 20px;border-radius:20px;background:linear-gradient(135deg,#f5edff,#fff);border:1px solid rgba(147,51,234,.15)}
.moc-news-admin-head h1{margin:0 0 6px;color:#33135c;font-size:28px}.moc-news-admin-head p{margin:0;color:#6b6473}.moc-news-admin-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.moc-news-admin-actions form{margin:0}.moc-news-admin-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px;align-items:start}.moc-news-admin-list h2,.moc-news-editor h2{margin-top:0;color:#33135c}.moc-news-admin-item{display:block;text-decoration:none;padding:12px;border-radius:14px;border:1px solid #eee;margin:8px 0;background:#fff;color:#222}.moc-news-admin-item:hover,.moc-news-admin-item.is-active{border-color:#a855f7;background:#faf5ff}.moc-news-admin-item b{display:block;line-height:1.35}.moc-news-admin-item span{display:block;color:#7c6b88;font-size:12px;margin-top:5px}.moc-news-form label{display:block;font-weight:800;color:#43315f;margin:12px 0 6px}.moc-news-form input,.moc-news-form textarea,.moc-news-form select{width:100%;box-sizing:border-box;border:1px solid #ddd6fe;border-radius:12px;padding:11px 12px;font:inherit;background:#fff;color:#222;outline:none}.moc-news-form input:focus,.moc-news-form textarea:focus,.moc-news-form select:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.12)}.moc-news-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.moc-news-content{font-family:Consolas,Monaco,monospace;min-height:460px}.moc-news-preview-img{margin-top:10px;border-radius:16px;overflow:hidden;background:#f5edff;max-width:360px}.moc-news-preview-img img{display:block;width:100%;height:auto}.moc-news-savebar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}.moc-news-delete{margin-top:20px;padding-top:16px;border-top:1px dashed #e9d5ff}.moc-news-delete button{border:1px solid #fecaca;background:#fff1f2;color:#be123c;border-radius:12px;padding:10px 14px;font-weight:800;cursor:pointer}
@media(max-width:900px){.moc-news-grid,.moc-news-grid.is-related{grid-template-columns:1fr 1fr}.moc-news-admin-layout{grid-template-columns:1fr}.moc-news-admin-head{display:block}.moc-news-admin-actions{margin-top:12px}}@media(max-width:640px){.moc-news-hero{margin:12px 10px;padding:22px;border-radius:24px}.moc-news-grid,.moc-news-grid.is-related{grid-template-columns:1fr}.moc-news-content-view{padding:20px;border-radius:22px}.moc-news-grid2{grid-template-columns:1fr}.moc-news-detail-head h1{font-size:30px}}

/* Promo labels + old/new promo price on product cards. */
.shop-product-img-box,.shop-product-img,.spage-main-image,.spage-rec-img{position:relative!important;}
.mshop-promo-image-badge{position:absolute;left:0;top:8px;z-index:7;display:inline-flex;align-items:center;max-width:82%;pointer-events:none;}
.mshop-promo-image-badge span{display:block;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(135deg,#fb923c,#f97316);color:#fff;border-radius:0 3px 3px 0;padding:4px 7px;font-size:10px;font-weight:600;line-height:1;letter-spacing:.01em;box-shadow:0 1px 3px rgba(0,0,0,.16);text-transform:uppercase;}
.mshop-promo-image-badge-saleoff span{background:linear-gradient(135deg,#f97316,#ea580c);}
.shop-product-card>.mshop-fav-form+.shop-product-img-box .mshop-promo-image-badge{top:34px;}
.shop-product-price.is-promo-price,.spage-rec-price.is-promo-price,.spage-price-box .is-promo-price{color:#f97316!important;}
.shop-product-price.is-promo-price,.spage-rec-price.is-promo-price{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;line-height:1.15!important;}
.moc-admin-inline-price.is-promo-price{flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:5px!important;}
.moc-admin-inline-price.is-promo-price .mshop-price-old{width:100%;}
.mshop-price-old{display:block;color:#9ca3af!important;text-decoration:line-through!important;font-size:12px!important;font-weight:400!important;line-height:1.1!important;}
.mshop-price-promo{display:block;color:#f97316!important;font-weight:700!important;line-height:1.15!important;}
.spage-price-box .is-promo-price{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:8px!important;}
.spage-price-box .mshop-price-old{font-size:15px!important;}
.spage-price-box .mshop-price-promo{font-size:28px!important;}
.spage-rec-img .mshop-promo-image-badge{top:6px;}
.spage-rec-img .mshop-promo-image-badge span{font-size:9px;padding:4px 6px;}
@media(max-width:760px){.mshop-promo-image-badge{top:7px}.mshop-promo-image-badge span{font-size:10px;padding:4px 7px}.shop-product-card>.mshop-fav-form+.shop-product-img-box .mshop-promo-image-badge{top:33px}.spage-price-box .mshop-price-promo{font-size:24px!important}}


/* Thiết kế lại thẻ sản phẩm đang khuyến mãi + đếm ngược kết thúc */
.shop-product-card.is-shop-promo-card{
  border:1px solid #eadcff!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 10px 26px rgba(109,40,217,.07)!important;
}
.shop-product-card.is-shop-promo-card:hover{box-shadow:0 14px 30px rgba(109,40,217,.13)!important;border-color:#d8b4fe!important;}
.shop-product-card.is-shop-promo-card .shop-product-img-box{border-radius:18px 18px 0 0!important;overflow:hidden!important;}
.shop-product-card.is-shop-promo-card .shop-product-img{border-bottom:0!important;}
.shop-product-card.is-shop-promo-card .mshop-promo-image-badge,
.spage-rec-card.is-shop-promo-card .mshop-promo-image-badge,
.spage-main-image .mshop-promo-image-badge{
  left:auto!important;
  right:8px!important;
  top:auto!important;
  bottom:8px!important;
  transform:none!important;
  z-index:8!important;
  max-width:calc(100% - 16px)!important;
}
.shop-product-card.is-shop-promo-card .mshop-promo-image-badge span,
.spage-rec-card.is-shop-promo-card .mshop-promo-image-badge span,
.spage-main-image .mshop-promo-image-badge span{
  background:#f3e8ff!important;
  color:#7c3aed!important;
  border:1px solid rgba(124,58,237,.16)!important;
  border-radius:999px!important;
  padding:4px 8px!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1!important;
  text-transform:none!important;
  letter-spacing:0!important;
  box-shadow:0 4px 12px rgba(79,70,229,.16)!important;
}
.shop-product-card.is-shop-promo-saleoff .mshop-promo-image-badge span,
.spage-rec-card.is-shop-promo-saleoff .mshop-promo-image-badge span{
  background:#fff7ed!important;
  color:#f97316!important;
  border-color:rgba(249,115,22,.22)!important;
}
.shop-product-card.is-shop-promo-card .shop-product-body{padding:11px 12px 13px!important;min-height:128px!important;}
.shop-theme-shopee-new .shop-product-card.is-shop-promo-card .shop-product-name,
.shop-product-card.is-shop-promo-card .shop-product-name{
  color:#251134!important;
  font-weight:600!important;
  font-size:15px!important;
  line-height:1.28!important;
  min-height:39px!important;
  letter-spacing:-.01em!important;
}
.shop-product-card.is-shop-promo-card .shop-product-price.is-promo-price,
.spage-rec-card.is-shop-promo-card .spage-rec-price.is-promo-price{
  display:flex!important;
  flex-direction:row!important;
  align-items:baseline!important;
  gap:10px!important;
  margin-top:7px!important;
  line-height:1.1!important;
  flex-wrap:wrap!important;
}
.shop-product-card.is-shop-promo-card .mshop-price-old,
.spage-rec-card.is-shop-promo-card .mshop-price-old{
  width:auto!important;
  color:#9ca3af!important;
  font-size:14px!important;
  font-weight:500!important;
  text-decoration-thickness:1px!important;
}
.shop-product-card.is-shop-promo-card .mshop-price-promo,
.spage-rec-card.is-shop-promo-card .mshop-price-promo{
  color:#f97316!important;
  font-size:20px!important;
  font-weight:700!important;
  letter-spacing:-.01em!important;
}
.mshop-promo-countdown{
  display:flex;
  align-items:center;
  gap:4px;
  margin-top:8px;
  color:#3b1d55;
  font-size:12px;
  line-height:1.25;
  font-weight:500;
}
.mshop-promo-countdown:before{content:'⏳';font-size:12px;line-height:1;}
.mshop-promo-countdown span{font-weight:500;color:#4b2a63;}
.mshop-promo-countdown b{font-weight:700;color:#f97316;letter-spacing:.01em;}
.mshop-promo-countdown.is-open-ended b,.mshop-promo-countdown.is-open-ended span{color:#7c3aed;}
.mshop-promo-countdown.is-ended b{color:#9ca3af;}
.shop-product-card.is-shop-promo-card .shop-product-rating{margin-top:8px;}
.mshop-promo-card .mshop-promo-countdown{font-size:11px;margin-top:7px;gap:3px;}
.mshop-promo-card .mshop-promo-countdown b{font-size:11px;}
.spage-info>.mshop-promo-countdown{margin:0 0 12px;font-size:14px;}
.spage-info>.mshop-promo-countdown b{font-size:15px;}
@media(max-width:760px){
  .shop-theme-shopee-new .shop-product-card.is-shop-promo-card,
  .shop-product-card.is-shop-promo-card{
    border-radius:18px!important;
    box-shadow:0 4px 16px rgba(109,40,217,.08)!important;
  }
  .shop-product-card.is-shop-promo-card .shop-product-body{min-height:142px!important;padding:10px 12px 14px!important;}
  .shop-theme-shopee-new .shop-product-card.is-shop-promo-card .shop-product-name,
  .shop-product-card.is-shop-promo-card .shop-product-name{font-size:16px!important;line-height:1.27!important;min-height:42px!important;}
  .shop-product-card.is-shop-promo-card .shop-product-price.is-promo-price{gap:9px!important;margin-top:7px!important;}
  .shop-product-card.is-shop-promo-card .mshop-price-old{font-size:14px!important;}
  .shop-product-card.is-shop-promo-card .mshop-price-promo{font-size:21px!important;}
  .shop-product-card.is-shop-promo-card .mshop-promo-countdown{font-size:12px!important;margin-top:8px!important;}
  .shop-product-card.is-shop-promo-card .shop-product-rating{display:none!important;}
  .shop-product-card.is-shop-promo-card .shop-product-stock,.shop-product-card.is-shop-promo-card .shop-product-code{display:none!important;}
  .shop-product-card.is-shop-promo-card .mshop-promo-image-badge{right:7px!important;bottom:7px!important;}
  .shop-product-card.is-shop-promo-card .mshop-promo-image-badge span{font-size:12px!important;padding:4px 8px!important;}
}
