/* GP Lite Shop – frontend */
:root{--gls-accent:var(--accent,#2563eb);--gls-sale:#e11d48;--gls-text:#111827;--gls-muted:#6b7280;--gls-line:#e5e7eb;--gls-soft:#f3f4f6;--gls-radius:10px}
.gls-container{max-width:1240px;margin:0 auto;padding:24px 20px 50px;background:var(--base-3,#fff)}
.gls-view .site-main{margin:0}
.gls-area{width:100%}

/* Nút */
.gls-btn,a.gls-btn,button.gls-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border:1px solid var(--gls-accent);border-radius:8px;background:var(--gls-accent);color:#fff;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer;transition:filter .15s,background .15s,color .15s}
.gls-btn:hover,a.gls-btn:hover,button.gls-btn:hover{filter:brightness(1.08);color:#fff}
.gls-btn-ghost,a.gls-btn-ghost,button.gls-btn-ghost{background:transparent;color:var(--gls-text);border-color:var(--gls-line)}
.gls-btn-ghost:hover,a.gls-btn-ghost:hover,button.gls-btn-ghost:hover{background:var(--gls-soft);color:var(--gls-text);filter:none}
.gls-btn-dark,button.gls-btn-dark{background:#111827;border-color:#111827}
.gls-btn-lg,button.gls-btn-lg{padding:14px 24px;font-size:15px}
.gls-btn-sm,button.gls-btn-sm{padding:7px 12px;font-size:13px}
.gls-btn-block{width:100%}
.gls-btn.is-loading{opacity:.6;pointer-events:none}

/* Lưới & thẻ sản phẩm */
.gls-grid{display:grid;grid-template-columns:repeat(var(--gls-cols,4),minmax(0,1fr));gap:var(--gls-gap,20px)}
.gls-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--gls-line);border-radius:var(--gls-radius);background:#fff;transition:box-shadow .2s,transform .2s}
.gls-card:hover{box-shadow:0 10px 30px rgba(0,0,0,.08);transform:translateY(-2px)}
.gls-thumb{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:var(--gls-soft)}
.gls-card .gls-thumb img{max-width:none;position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;transition:opacity .35s,transform .5s}
.gls-thumb .gls-img-hover{opacity:0}
.gls-card:hover .gls-img-hover{opacity:1}
.gls-card:hover .gls-img-main{transform:scale(1.04)}
.gls-noimg{display:block;width:100%;height:100%;min-height:80px;background:linear-gradient(135deg,#f3f4f6,#e5e7eb)}
.gls-badge{position:absolute;top:10px;left:10px;z-index:2;padding:3px 9px;border-radius:20px;background:var(--gls-sale);color:#fff;font-size:12px;font-weight:700}
.gls-badge-out{background:#6b7280}
.gls-badge-hot{background:#f59e0b}
.gls-card-body{display:flex;flex:1;flex-direction:column;gap:6px;padding:12px 14px 14px}
.gls-root .gls-card-title,.gls-card-title{margin:0;font-size:15px;font-weight:500;line-height:1.4}
.gls-card-title a{display:-webkit-box;overflow:hidden;color:var(--gls-text);text-decoration:none;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gls-card-title a:hover{color:var(--gls-accent)}
.gls-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.gls-price ins{color:var(--gls-sale);font-weight:700;font-size:16px;text-decoration:none}
.gls-price del{color:var(--gls-muted);font-size:13px}
.gls-price-contact{color:var(--gls-accent);font-weight:600}
.gls-sold{color:var(--gls-muted);font-size:12px}
.gls-card .gls-btn{margin-top:auto;padding:9px 12px;font-size:13px}
.gls-empty{padding:30px;border:1px dashed var(--gls-line);border-radius:var(--gls-radius);color:var(--gls-muted);text-align:center}

/* Cửa hàng + bộ lọc */
.gls-shop{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}
.gls-filters{position:sticky;top:20px}
.gls-filters-head,.gls-filters-backdrop,.gls-toolbar button.gls-filters-open{display:none}
.gls-fbox{padding:16px 0;border-bottom:1px solid var(--gls-line)}
.gls-fbox:first-child{padding-top:0}
.gls-root .gls-fbox h4,.gls-fbox h4{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--gls-text)}
.gls-flist,.gls-flist ul{margin:0;padding:0;list-style:none}
.gls-flist ul{margin-left:18px}
.gls-flist li{margin:0 0 4px}
.gls-chk{display:flex;align-items:center;gap:8px;padding:3px 0;font-size:14px;cursor:pointer}
.gls-chk input{width:16px;height:16px;margin:0;accent-color:var(--gls-accent)}
.gls-chk em{margin-left:auto;color:var(--gls-muted);font-size:12px;font-style:normal}
.gls-fchips{display:flex;flex-wrap:wrap;gap:6px}
.gls-fchips li{margin:0}
.gls-fchips .gls-chk{padding:5px 10px;border:1px solid var(--gls-line);border-radius:20px;font-size:13px}
.gls-fchips .gls-chk:has(input:checked){border-color:var(--gls-accent);background:color-mix(in srgb,var(--gls-accent) 10%,#fff)}
.gls-fchips .gls-chk input{display:none}
.gls-swatch{display:inline-block;width:16px;height:16px;border:1px solid rgba(0,0,0,.15);border-radius:50%}
.gls-flinks a{display:flex;justify-content:space-between;padding:4px 0;color:var(--gls-text);text-decoration:none;font-size:14px}
.gls-flinks a span{color:var(--gls-muted);font-size:12px}
.gls-search-in{display:flex;border:1px solid var(--gls-line);border-radius:8px;overflow:hidden}
.gls-search-in input{flex:1;min-width:0;border:0;padding:8px 10px;font-size:14px;background:#fff}
.gls-search-in button{padding:0 12px;border:0;background:var(--gls-soft);cursor:pointer}
.gls-price-in{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.gls-price-in input{width:100%;min-width:0;padding:7px 8px;border:1px solid var(--gls-line);border-radius:6px;font-size:13px}
.gls-price-quick{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.gls-price-quick a{padding:4px 9px;border:1px solid var(--gls-line);border-radius:20px;color:var(--gls-text);font-size:12px;text-decoration:none}
.gls-price-quick a.is-on,.gls-price-quick a:hover{border-color:var(--gls-accent);color:var(--gls-accent)}
.gls-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.gls-count{color:var(--gls-muted);font-size:14px}
.gls-sort select{padding:8px 32px 8px 12px;border:1px solid var(--gls-line);border-radius:8px;font-size:14px;background-color:#fff}
.gls-chips{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 16px}
.gls-chips a{padding:4px 10px;border-radius:20px;background:var(--gls-soft);color:var(--gls-text);font-size:13px;text-decoration:none}
.gls-chips a b{margin-left:3px;color:var(--gls-muted)}
.gls-chips a.gls-chips-clear{background:none;color:var(--gls-sale)}
.gls-pages{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:30px}
.gls-pages a,.gls-pages span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--gls-line);border-radius:8px;color:var(--gls-text);text-decoration:none}
.gls-pages .is-current{background:var(--gls-accent);border-color:var(--gls-accent);color:#fff}

/* Breadcrumb & thông báo */
.gls-crumbs{margin-bottom:18px;color:var(--gls-muted);font-size:13px}
.gls-crumbs a{color:var(--gls-muted);text-decoration:none}
.gls-crumbs a:hover{color:var(--gls-accent)}
.gls-crumbs span{margin:0 4px;opacity:.6}
.gls-crumbs b{color:var(--gls-text);font-weight:500}
.gls-notice{margin:0 0 18px;padding:12px 16px;border-left:4px solid var(--gls-accent);border-radius:6px;background:color-mix(in srgb,var(--gls-accent) 8%,#fff)}
.gls-notice-warn{border-color:#f59e0b;background:#fffbeb}
.gls-notice-err{border-color:var(--gls-sale);background:#fff1f2}
.gls-notice ul{margin:6px 0 0 18px}

/* Đầu trang danh mục */
.gls-term-head{position:relative;margin-bottom:24px;overflow:hidden;border-radius:14px}
.gls-term-head.has-img{display:flex;align-items:flex-end;min-height:220px;color:#fff}
.gls-term-bg{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.gls-term-head.has-img::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 20%,rgba(0,0,0,.65))}
.gls-term-text{position:relative;z-index:1;padding:0}
.gls-term-head.has-img .gls-term-text{padding:24px 28px}
.gls-root .gls-term-head h1,.gls-term-head h1{margin:0 0 6px;font-size:30px;color:inherit}
.gls-term-desc p{margin:0}

/* Chi tiết sản phẩm */
.gls-single{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:40px;align-items:start}
.gls-gallery{position:sticky;top:20px}
.gls-gallery-main{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:14px;background:var(--gls-soft)}
.gls-gallery-main img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s}
.gls-gallery-main img.is-active{opacity:1}
.gls-gallery-main>.gls-video{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .3s;background:#000}
.gls-gallery-main>.gls-video.is-active{opacity:1;pointer-events:auto;z-index:1}
.gls-gallery-main>.gls-video img{opacity:1}
.gls-video iframe,.gls-video video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:contain;background:#000}
.gls-play{position:absolute;inset:0;margin:auto;width:76px;height:76px;border:0;border-radius:50%;background:rgba(0,0,0,.55);cursor:pointer;transition:transform .2s,background .2s}
.gls-play:hover{transform:scale(1.08);background:var(--gls-accent)}
.gls-play-ic{display:block;width:0;height:0;margin-left:5px;border-style:solid;border-width:13px 0 13px 22px;border-color:transparent transparent transparent #fff}
.gls-play .gls-play-ic{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin-left:3px}
.gls-video.is-playing .gls-play,.gls-video.is-playing>img{display:none}
.gls-gal-nav{position:absolute;top:50%;z-index:3;width:44px;height:44px;margin-top:-22px;padding:0;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.88);color:var(--gls-text);box-shadow:0 4px 14px rgba(0,0,0,.18);cursor:pointer;opacity:.85;transition:opacity .2s,background .2s,color .2s,transform .2s}
.gls-gal-prev{left:12px}.gls-gal-next{right:12px}
.gls-gal-nav:hover,.gls-gal-nav:focus-visible{opacity:1;background:var(--gls-accent);color:#fff}
.gls-gal-nav:active{transform:scale(.94)}
.gls-gal-count{position:absolute;right:12px;bottom:12px;z-index:3;padding:3px 10px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;line-height:1.6;pointer-events:none}
.gls-gal-count b{font-weight:600}
.gls-gallery-main>.gls-video.is-playing~.gls-gal-count{display:none}
@media (max-width:767px){.gls-gal-nav{width:38px;height:38px;margin-top:-19px}.gls-gal-prev{left:8px}.gls-gal-next{right:8px}}
.gls-thumb-video{position:relative}
.gls-thumb-video .gls-play-ic{position:absolute;left:50%;top:50%;transform:translate(-40%,-50%);border-width:8px 0 8px 13px;filter:drop-shadow(0 0 3px rgba(0,0,0,.6))}

/* Yêu cầu báo giá (chế độ catalog) */
.gls-quote{margin:18px 0;padding:20px;border:1px solid var(--gls-line);border-radius:var(--gls-radius);background:var(--gls-soft)}
.gls-quote-title{margin:0 0 12px;font-size:20px}
.gls-quote-btns{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.gls-qbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px;border-radius:999px;background:var(--gls-accent);color:#fff;font-size:14px;font-weight:600;text-decoration:none;transition:filter .15s,transform .15s}
.gls-qbtn:hover{filter:brightness(1.08);transform:translateY(-1px);color:#fff}
.gls-quote-note{margin:12px 0 0;color:var(--gls-muted);font-size:13px}
.gls-quote-form{margin-top:18px;padding-top:18px;border-top:1px solid var(--gls-line)}
.gls-quote-form h3{margin:0 0 4px;font-size:20px}
.gls-quote-form>p{margin:0 0 12px;color:var(--gls-muted);font-size:14px}
.gls-gallery-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}
.gls-gallery-thumbs button{flex:0 0 72px;height:72px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:8px;background:none;cursor:pointer;opacity:.65}
.gls-gallery-thumbs button.is-active,.gls-gallery-thumbs button:hover{border-color:var(--gls-accent);opacity:1}
.gls-gallery-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.gls-root .gls-title,.gls-title{margin:0 0 10px;font-size:28px;line-height:1.3}
.gls-meta-line{display:flex;flex-wrap:wrap;gap:6px 18px;margin-bottom:14px;color:var(--gls-muted);font-size:14px}
.gls-in{color:#16a34a;font-weight:600}
.gls-out{color:var(--gls-sale);font-weight:600}
.gls-single-price{margin-bottom:16px;padding:14px 18px;border-radius:10px;background:var(--gls-soft)}
.gls-single-price ins{font-size:28px}
.gls-single-price del{font-size:16px}
.gls-excerpt{margin-bottom:16px;color:#374151}
.gls-excerpt p:last-child{margin-bottom:0}
.gls-attrs{width:100%;margin:0 0 18px;border-collapse:collapse;font-size:14px}
.gls-attrs th,.gls-attrs td{padding:8px 10px;border:1px solid var(--gls-line);text-align:left}
.gls-attrs th{width:35%;background:var(--gls-soft);font-weight:600}
.gls-buy{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.gls-buy .gls-btn{flex:1 1 160px}
.gls-qty{display:inline-flex;align-items:stretch;overflow:hidden;border:1px solid var(--gls-line);border-radius:8px;background:#fff}
.gls-qty input{width:52px;padding:0;border:0;text-align:center;font-size:15px;-moz-appearance:textfield;background:none}
.gls-qty input::-webkit-inner-spin-button,.gls-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
button.gls-qty-btn{width:38px;padding:0;border:0;background:var(--gls-soft);color:var(--gls-text);font-size:18px;cursor:pointer}
button.gls-qty-btn:hover{background:var(--gls-line)}
.gls-tax{display:flex;flex-direction:column;gap:6px;padding-top:14px;border-top:1px solid var(--gls-line);font-size:14px}
.gls-tax span{color:var(--gls-muted)}
.gls-desc,.gls-related{margin-top:44px}
.gls-root .gls-desc h2,.gls-desc h2,.gls-related h2{margin:0 0 16px;padding-bottom:10px;border-bottom:2px solid var(--gls-line);font-size:22px}
.gls-related .gls-grid{--gls-cols:4}

/* Danh mục */
.gls-cats{display:grid;grid-template-columns:repeat(var(--gls-cols,4),minmax(0,1fr));gap:var(--gls-gap,20px)}
.gls-cat{display:block;color:var(--gls-text);text-decoration:none}
.gls-cat-img{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;border-radius:var(--gls-radius);background:var(--gls-soft)}
.gls-cat .gls-cat-img img{width:100%;height:100%;max-width:none;object-fit:cover;display:block;transition:transform .5s}
.gls-cat:hover .gls-cat-img img{transform:scale(1.06)}
.gls-cat-name{display:block;margin-top:10px;font-weight:600;text-align:center}
.gls-cat-name small{display:block;color:var(--gls-muted);font-size:12px;font-weight:400}
.gls-cats-overlay .gls-cat{position:relative;overflow:hidden;border-radius:var(--gls-radius)}
.gls-cats-overlay .gls-cat-img{aspect-ratio:1/1;border-radius:0}
.gls-cats-overlay .gls-cat-name{position:absolute;left:0;right:0;bottom:0;margin:0;padding:30px 14px 14px;background:linear-gradient(transparent,rgba(0,0,0,.7));color:#fff;text-align:left}
.gls-cats-overlay .gls-cat-name small{color:rgba(255,255,255,.8)}
.gls-cats-circle .gls-cat-img{aspect-ratio:1/1;border-radius:50%}

/* Giỏ hàng mini & tìm kiếm */
.gls-carticon{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.gls-carticon-ic{position:relative;display:inline-flex}
.gls-carticon-ic svg{width:24px;height:24px}
.gls-cart-count{position:absolute;top:-7px;right:-9px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--gls-sale);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.gls-carticon.is-bump .gls-carticon-ic{animation:gls-bump .4s}
@keyframes gls-bump{50%{transform:scale(1.25)}}
.gls-cart-total{font-weight:600}
.gls-carticon-label,.gls-cart-total{white-space:nowrap}
@media (max-width:767px){.gls-carticon .gls-carticon-label,.gls-carticon .gls-cart-total{display:none}}
.gls-searchbox{display:flex;width:100%;max-width:420px;overflow:hidden;border:1px solid var(--gls-line);border-radius:30px;background:#fff}
.gls-searchbox input{flex:1;min-width:0;padding:9px 16px;border:0;background:none;font-size:14px;outline:0}
.gls-searchbox button{display:flex;align-items:center;justify-content:center;width:46px;padding:0;border:0;background:var(--gls-accent);color:#fff;cursor:pointer}
.gls-searchbox svg{width:18px;height:18px}

/* Giỏ hàng */
.gls-cart{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:30px;align-items:start}
.gls-cart-table{width:100%;border-collapse:collapse}
.gls-cart-table th{padding:10px;border-bottom:2px solid var(--gls-line);color:var(--gls-muted);font-size:13px;font-weight:600;text-align:left;text-transform:uppercase}
.gls-cart-table td{padding:14px 10px;border-bottom:1px solid var(--gls-line);vertical-align:middle}
.gls-ct-img{width:80px}
.gls-ct-img img,.gls-ct-img .gls-noimg{display:block;width:70px;height:70px;object-fit:cover;border-radius:8px}
.gls-ct-name a{color:var(--gls-text);font-weight:600;text-decoration:none}
.gls-ct-name small{display:block;color:var(--gls-muted)}
button.gls-rm{width:30px;height:30px;padding:0;border:0;border-radius:50%;background:var(--gls-soft);color:var(--gls-muted);font-size:18px;line-height:1;cursor:pointer}
button.gls-rm:hover{background:#fee2e2;color:var(--gls-sale)}
.gls-cart-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px;flex-wrap:wrap}
.gls-box{margin-bottom:20px;padding:20px;border:1px solid var(--gls-line);border-radius:12px;background:#fff}
.gls-root .gls-box h3,.gls-box h3{margin:0 0 14px;font-size:18px}
.gls-box h4{margin:18px 0 10px;font-size:15px}
.gls-totals{width:100%;border-collapse:collapse;font-size:15px}
.gls-totals th,.gls-totals td{padding:8px 0;border:0;border-bottom:1px solid var(--gls-line);background:none;text-align:left;font-weight:400}
.gls-totals td{text-align:right}
.gls-totals .gls-grand th,.gls-totals .gls-grand td{border-bottom:0;padding-top:12px;font-size:18px;font-weight:700}
.gls-totals .gls-grand td{color:var(--gls-sale)}
.gls-free{color:#16a34a;font-weight:600}
.gls-freeship{margin:12px 0;padding:10px 12px;border-radius:8px;background:#f0fdf4;font-size:13px}
.gls-bar{display:block;height:6px;margin-top:8px;overflow:hidden;border-radius:3px;background:#dcfce7}
.gls-bar i{display:block;height:100%;background:#16a34a}
.gls-cart-side .gls-btn{margin-top:14px}
.gls-cart-empty{padding:60px 20px;text-align:center}
.gls-cart-empty-ic{margin-bottom:10px;font-size:56px}

/* Thanh toán */
.gls-checkout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:30px;align-items:start}
.gls-root .gls-co-fields h3,.gls-co-fields h3{margin:0 0 16px;font-size:20px}
.gls-fields{display:flex;flex-wrap:wrap;gap:14px 16px}
.gls-field{display:flex;flex-direction:column;gap:6px;width:100%}
.gls-w-half{width:calc(50% - 8px)}
.gls-w-third{width:calc(33.333% - 11px)}
.gls-field label,.gls-flabel{font-size:14px;font-weight:600}
.gls-field abbr{color:var(--gls-sale);text-decoration:none;border:0}
.gls-field input:not([type=checkbox]):not([type=radio]),.gls-field select,.gls-field textarea{width:100%;padding:11px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff;font-size:15px}
.gls-field input:focus,.gls-field select:focus,.gls-field textarea:focus{border-color:var(--gls-accent);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--gls-accent) 18%,transparent)}
.gls-field.has-error input,.gls-field.has-error select,.gls-field.has-error textarea{border-color:var(--gls-sale)}
.gls-ferr{color:var(--gls-sale);font-size:13px}
.gls-radios{display:flex;flex-wrap:wrap;gap:6px 16px}
.gls-radios label{font-weight:400}
.gls-co-side{position:sticky;top:20px}
.gls-co-items{margin:0 0 6px;padding:0;list-style:none}
.gls-co-items li{display:flex;align-items:center;gap:12px;padding:8px 0}
.gls-co-img{position:relative;flex:0 0 52px}
.gls-co-img img,.gls-co-img .gls-noimg{display:block;width:52px;height:52px;min-height:0;object-fit:cover;border-radius:8px}
.gls-co-img i{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#6b7280;color:#fff;font-size:11px;font-style:normal;line-height:20px;text-align:center}
.gls-co-name{flex:1;font-size:14px}
.gls-methods{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.gls-method{display:grid;grid-template-columns:20px 1fr;gap:4px 8px;padding:12px 14px;border:1px solid var(--gls-line);border-radius:10px;cursor:pointer;transition:border-color .15s}
.gls-method input{margin:3px 0 0;accent-color:var(--gls-accent)}
.gls-method-t{font-weight:600}
.gls-method-d{grid-column:2;display:none;color:var(--gls-muted);font-size:13px}
.gls-method.is-on{border-color:var(--gls-accent);background:color-mix(in srgb,var(--gls-accent) 5%,#fff)}
.gls-method.is-on .gls-method-d{display:block}
.gls-secure{margin:10px 0 0;color:var(--gls-muted);font-size:12px;text-align:center}

/* Đặt hàng thành công */
.gls-thanks{max-width:820px;margin:0 auto}
.gls-thanks-head{margin-bottom:24px;text-align:center}
.gls-thanks-ic{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;margin-bottom:10px;border-radius:50%;background:#dcfce7;color:#16a34a;font-size:32px;font-weight:700}
.gls-root .gls-thanks-head h2,.gls-thanks-head h2{margin:0 0 6px}
.gls-thanks-sum{display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 20px;padding:0;overflow:hidden;border:1px dashed #cbd5e1;border-radius:12px;list-style:none}
.gls-thanks-sum li{display:flex;flex-direction:column;gap:2px;padding:14px;border-right:1px dashed #cbd5e1}
.gls-thanks-sum li:last-child{border-right:0}
.gls-thanks-sum span{color:var(--gls-muted);font-size:12px;text-transform:uppercase}
.gls-bank{display:flex;flex-wrap:wrap;gap:20px;align-items:center;border-color:#bfdbfe;background:#eff6ff}
.gls-bank-info{flex:1 1 280px}
.gls-bank-qr{flex:0 0 auto;text-align:center}
.gls-bank-qr img{display:block;width:240px;max-width:100%;height:auto;border-radius:10px;background:#fff}
.gls-bank-qr small{color:var(--gls-muted)}
.gls-otable{width:100%;border-collapse:collapse;font-size:14px}
.gls-otable th,.gls-otable td{padding:9px 6px;border-bottom:1px solid var(--gls-line);text-align:left}
.gls-otable td:last-child,.gls-otable tfoot th{text-align:right}
.gls-otable tfoot th{font-weight:400}

/* Thông báo nổi */
.gls-toast{position:fixed;left:50%;bottom:24px;z-index:99999;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 30px);padding:12px 16px;border-radius:10px;background:#111827;color:#fff;font-size:14px;box-shadow:0 12px 30px rgba(0,0,0,.25);opacity:0;transform:translate(-50%,20px);transition:all .25s;pointer-events:none}
.gls-toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.gls-toast.is-err{background:var(--gls-sale)}
.gls-toast a{color:#93c5fd;font-weight:600;white-space:nowrap}

/* Responsive */
@media (max-width:1024px){
  .gls-grid,.gls-cats{grid-template-columns:repeat(min(var(--gls-cols,4),3),minmax(0,1fr))}
  .gls-shop{grid-template-columns:1fr}
  .gls-filters{position:fixed;top:0;bottom:0;left:0;z-index:100000;width:300px;max-width:85vw;padding:0 18px 30px;overflow-y:auto;background:#fff;box-shadow:4px 0 30px rgba(0,0,0,.15);transform:translateX(-105%);transition:transform .25s}
  .gls-filters.is-open{transform:none}
  .gls-filters-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;margin:0 -18px 6px;padding:14px 18px;border-bottom:1px solid var(--gls-line);background:#fff}
  .gls-filters-close{width:34px;height:34px;padding:0;border:0;border-radius:50%;background:var(--gls-soft);font-size:22px;cursor:pointer;color:var(--gls-text)}
  .gls-toolbar button.gls-filters-open{display:inline-flex}
  .gls-filters-backdrop.is-open{position:fixed;inset:0;z-index:99999;display:block;background:rgba(0,0,0,.4)}
  .gls-single{gap:28px}
  .gls-cart,.gls-checkout{grid-template-columns:1fr}
  .gls-co-side,.gls-gallery{position:static}
}
@media (max-width:767px){
  .gls-container{padding:16px 14px 40px}
  .gls-grid,.gls-cats{grid-template-columns:repeat(min(var(--gls-cols,4),2),minmax(0,1fr));gap:12px}
  .gls-card-body{padding:10px}
  .gls-card-title{font-size:14px}
  .gls-card .gls-btn{font-size:12px;padding:8px}
  .gls-single{grid-template-columns:1fr}
  .gls-title{font-size:22px}
  .gls-count{order:3;width:100%}
  .gls-w-half,.gls-w-third{width:100%}
  .gls-cart-table thead{display:none}
  .gls-cart-table tr{display:grid;grid-template-columns:80px 1fr auto;gap:4px 10px;padding:12px 0;border-bottom:1px solid var(--gls-line)}
  .gls-cart-table td{padding:0;border:0}
  .gls-ct-img{grid-row:1/4}
  .gls-ct-name{grid-column:2/3}
  .gls-ct-rm{grid-column:3;grid-row:1}
  .gls-ct-price,.gls-ct-qty,.gls-ct-total{grid-column:2/4}
  .gls-ct-price::before,.gls-ct-total::before{content:attr(data-label) ": ";color:var(--gls-muted);font-size:13px}
  .gls-thanks-sum{grid-template-columns:1fr 1fr}
  .gls-thanks-sum li:nth-child(2){border-right:0}
  .gls-thanks-sum li:nth-child(-n+2){border-bottom:1px dashed #cbd5e1}
}
