/* ============================================================
   Sợi Tơ Vàng – Lõi bán sỉ
   CSS chỉ áp cho phần plugin tự vẽ (bọc trong .stv), không đụng theme.
   ============================================================ */

:root{
  --navy:#05326E;      
  --blue:#044488;      
  --blue-lt:#B6D4EA;   
  --mint:#96DAB6;      
  --gold:#E7B33A;      
  --gold-lt:#F5D364;   
  --cream:#EBDDBA;     
  --white:#F1F3F8;     
  --ink:#100F0F;       

  --paper:#FFFFFF;
  --muted:#5C6879;
  --line:rgba(5,50,110,.13);
  --line-2:rgba(5,50,110,.08);
  --shadow-sm:0 1px 2px rgba(5,50,110,.06), 0 2px 8px rgba(5,50,110,.05);
  --shadow-md:0 4px 16px rgba(5,50,110,.09);
  --shadow-lg:0 12px 40px rgba(5,50,110,.14);
  --r-s:6px; --r-m:10px; --r-l:16px; --r-xl:24px;
  --wrap:1280px;
}
.stv .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 22px;border-radius:var(--r-s);font-weight:600;font-size:14px;
  transition:.18s;white-space:nowrap;line-height:1.2}
.stv .btn-gold{background:var(--gold);color:#2b1e00;box-shadow:0 2px 0 rgba(0,0,0,.08)}
.stv .btn-gold:hover{background:var(--gold-lt)}
.stv .btn-navy{background:var(--navy);color:#fff}
.stv .btn-navy:hover{background:var(--blue)}
.stv .btn-out{border:1.5px solid var(--navy);color:var(--navy);background:#fff}
.stv .btn-out:hover{background:var(--navy);color:#fff}
.stv .btn-zalo{background:#0068FF;color:#fff}
.stv .btn-zalo:hover{filter:brightness(1.1)}
.stv .btn-lg{padding:15px 30px;font-size:15px}
.stv .btn-sm{padding:8px 14px;font-size:13px}
.stv .btn-block{width:100%}
.stv .badge{display:inline-block;font-size:11px;font-weight:700;padding:4px 9px;border-radius:4px;letter-spacing:.02em}
.stv .badge-hot{background:#D93025;color:#fff}
.stv .badge-new{background:var(--mint);color:#0b4a2c}
.stv .badge-best{background:var(--gold-lt);color:#5a4200}
.stv .cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.stv .cat-c{background:#fff;border:1.5px solid var(--line-2);border-radius:var(--r-l);padding:22px 18px;
  text-align:center;transition:.2s;display:block}
.stv .cat-c:hover{border-color:var(--gold);box-shadow:var(--shadow-md);transform:translateY(-3px)}
.stv .cat-ic{width:76px;height:76px;margin:0 auto 12px;border-radius:50%;background:var(--white);
  display:grid;place-items:center;transition:.2s}
.stv .cat-c:hover .cat-ic{background:var(--cream)}
.stv .cat-ic svg{width:46px;height:46px}
.stv .cat-c b{display:block;font-size:15px;color:var(--navy);font-weight:700}
.stv .cat-c small{color:var(--muted);font-size:12.5px;display:block;margin-top:3px}
.stv .cat-c .cat-more{display:inline-block;margin-top:10px;font-size:12.5px;color:var(--blue);font-weight:600}
.stv .p-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.stv .p-card{background:#fff;border:1.5px solid var(--line-2);border-radius:var(--r-m);overflow:hidden;
  transition:.2s;display:flex;flex-direction:column;position:relative}
.stv .p-card:hover{border-color:var(--blue-lt);box-shadow:var(--shadow-md);transform:translateY(-3px)}
.stv .p-thumb{aspect-ratio:1/1;background:var(--white);display:grid;place-items:center;position:relative;
  border-bottom:1px solid var(--line-2);overflow:hidden}
.stv .p-thumb svg{width:56%;height:56%}
.stv .p-flags{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.stv .p-quick{position:absolute;inset:auto 0 0 0;background:rgba(5,50,110,.92);color:#fff;text-align:center;
  padding:9px;font-size:13px;font-weight:600;transform:translateY(100%);transition:.2s}
.stv .p-card:hover .p-quick{transform:translateY(0)}
.stv .p-body{padding:14px;display:flex;flex-direction:column;flex:1;gap:7px}
.stv .p-cat{font-size:11px;color:var(--blue);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.stv .p-name{font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:41px}
.stv .p-card:hover .p-name{color:var(--blue)}
.stv .p-meta{font-size:12px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap}
.stv .p-meta span{display:inline-flex;align-items:center;gap:4px}
.stv .p-price{margin-top:auto;padding-top:9px;border-top:1px dashed var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:8px}
.stv .p-price .pp{font-size:16px;font-weight:800;color:var(--gold)}
.stv .p-price .pp small{display:block;font-size:10.5px;color:var(--muted);font-weight:500;letter-spacing:.02em}
.stv .p-btn{background:var(--navy);color:#fff;border-radius:var(--r-s);padding:9px 13px;font-size:12.5px;
  font-weight:600;display:inline-flex;align-items:center;gap:6px;transition:.15s;white-space:nowrap}
.stv .p-btn:hover{background:var(--gold);color:#2b1e00}
.stv .p-btn svg{width:14px;height:14px}
.stv .news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.stv .news{background:#fff;border:1.5px solid var(--line-2);border-radius:var(--r-m);overflow:hidden;transition:.2s}
.stv .news:hover{box-shadow:var(--shadow-md);border-color:var(--blue-lt)}
.stv .news-th{aspect-ratio:16/9;background:linear-gradient(135deg,var(--blue-lt),#dce9f5);
  display:grid;place-items:center;position:relative}
.stv .news-th svg{width:34%;height:34%;opacity:.65}
.stv .news-th span{position:absolute;top:11px;left:11px;background:var(--navy);color:#fff;font-size:11px;
  font-weight:700;padding:4px 10px;border-radius:100px}
.stv .news-b{padding:16px}
.stv .news-b time{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:5px}
.stv .news-b h4{font-size:15.5px;font-weight:700;color:var(--navy);line-height:1.4;margin:7px 0 8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.stv .news:hover h4{color:var(--blue)}
.stv .news-b p{font-size:13.3px;color:var(--muted);line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.stv .float-c{position:fixed;right:18px;bottom:80px;display:flex;flex-direction:column;gap:10px;z-index:70}
.stv .float-c a{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;color:#fff;
  box-shadow:var(--shadow-lg);transition:.18s;position:relative}
.stv .float-c a:hover{transform:scale(1.08)}
.stv .float-c svg{width:24px;height:24px}
.stv .fc-zalo{background:#0068FF}
.stv .fc-phone{background:#1E9E52}
.stv .fc-mess{background:#A033FF}
.stv .float-c a::after{content:attr(data-lb);position:absolute;right:60px;top:50%;transform:translateY(-50%);
  background:var(--ink);color:#fff;font-size:12px;padding:6px 11px;border-radius:6px;white-space:nowrap;
  opacity:0;pointer-events:none;transition:.18s}
.stv .float-c a:hover::after{opacity:1}
.stv .pulse{animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(0,104,255,.5)}70%{box-shadow:0 0 0 14px rgba(0,104,255,0)}100%{box-shadow:0 0 0 0 rgba(0,104,255,0)}}
.stv .m-bar{display:none;position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);
  padding:9px 12px;gap:9px;z-index:65;box-shadow:0 -4px 20px rgba(5,50,110,.1)}
.stv .m-bar .btn{flex:1;padding:12px 10px;font-size:13.5px}
.stv .pd-metaline{display:flex;align-items:center;gap:16px;margin:11px 0 16px;flex-wrap:wrap;
  font-size:13px;color:var(--muted);padding-bottom:16px;border-bottom:1px solid var(--line-2)}
.stv .pd-metaline b{color:var(--navy)}
.stv .pd-metaline .stars{color:var(--gold);letter-spacing:2px}
.stv .price-box{background:linear-gradient(120deg,#FFF8E8,#FDF2D8);border:1.5px dashed var(--gold);
  border-radius:var(--r-m);padding:18px 20px;margin-bottom:18px}
.stv .price-box .pb-lb{font-size:13px;color:#7a5a10;font-weight:600}
.stv .price-box .pb-v{font-size:27px;font-weight:800;color:#B0761A;letter-spacing:-.01em;margin:2px 0 4px;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.stv .price-box .pb-v span{font-size:12px;font-weight:600;background:var(--navy);color:var(--gold-lt);
  padding:4px 10px;border-radius:100px;letter-spacing:0}
.stv .price-box .pb-note{font-size:12.8px;color:#6d5a34;line-height:1.55}
.stv .price-box .pb-btns{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.stv .price-box .pb-btns .btn{flex:1}
.stv .tier-tbl{width:100%;border-collapse:collapse;margin-top:14px;font-size:13px;background:#fff;
  border-radius:var(--r-s);overflow:hidden}
.stv .tier-tbl th{background:var(--navy);color:#fff;font-weight:600;padding:8px 12px;text-align:left;font-size:12.5px}
.stv .tier-tbl td{padding:8px 12px;border-bottom:1px solid var(--line-2);color:#3a4553}
.stv .tier-tbl tr:last-child td{border-bottom:0}
.stv .tier-tbl td:last-child{color:var(--gold);font-weight:700}
.stv .opt-g{margin-bottom:16px}
.stv .opt-g label{display:block;font-size:13.5px;font-weight:700;color:var(--navy);margin-bottom:9px}
.stv .opt-g label em{font-style:normal;color:var(--muted);font-weight:500}
.stv .opt-list{display:flex;gap:9px;flex-wrap:wrap}
.stv .opt{border:1.5px solid var(--line);border-radius:var(--r-s);padding:8px 15px;font-size:13.5px;
  background:#fff;transition:.15s;cursor:pointer;color:#3a4553}
.stv .opt:hover{border-color:var(--blue)}
.stv .opt.on{border-color:var(--navy);background:var(--navy);color:#fff;font-weight:600}
.stv .opt.color{padding:0;width:36px;height:36px;border-radius:50%}
.stv .opt.color.on{box-shadow:0 0 0 2px var(--gold);border-color:#fff}
.stv .qty-row{display:flex;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.stv .qty{display:flex;border:1.5px solid var(--line);border-radius:var(--r-s);overflow:hidden;background:#fff}
.stv .qty button{width:40px;height:44px;font-size:19px;color:var(--navy);background:var(--white)}
.stv .qty button:hover{background:var(--blue-lt)}
.stv .qty input{width:64px;height:44px;text-align:center;border:0;outline:none;font-weight:700;font-size:15px}
.stv .qty-hint{font-size:12.8px;color:var(--muted)}
.stv .qty-hint b{color:var(--navy)}
.stv .pd-actions .btn{flex:1;min-width:170px}
.stv .trust{display:grid;grid-template-columns:1fr 1fr;gap:11px;background:var(--white);
  border-radius:var(--r-m);padding:15px;border:1px solid var(--line-2)}
.stv .trust div{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:#3a4553}
.stv .trust svg{width:18px;height:18px;color:var(--blue);flex-shrink:0;margin-top:2px}
.stv .trust b{color:var(--navy);display:block;font-size:13px}
.stv .trust small{color:var(--muted);font-size:11.8px}
.stv .steps-bar{display:flex;align-items:center;justify-content:center;gap:0;padding:26px 0 6px;flex-wrap:wrap}
.stv .sb-i{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--muted);font-weight:600}
.stv .sb-i span{width:30px;height:30px;border-radius:50%;background:var(--white);border:1.5px solid var(--line);
  display:grid;place-items:center;font-size:13px;flex-shrink:0}
.stv .sb-i.on{color:var(--navy)}
.stv .sb-i.on span{background:var(--navy);color:#fff;border-color:var(--navy)}
.stv .sb-i.done span{background:var(--mint);border-color:var(--mint);color:#0b4a2c}
.stv .sb-line{width:56px;height:2px;background:var(--line);margin:0 14px}
.stv .ci-th{width:66px;height:66px;background:var(--white);border:1px solid var(--line-2);border-radius:var(--r-s);
  display:grid;place-items:center;flex-shrink:0}
.stv .ci-th svg{width:66%;height:66%}
.stv .qty-sm{display:inline-flex;border:1.5px solid var(--line);border-radius:var(--r-s);overflow:hidden}
.stv .qty-sm button{width:30px;height:34px;font-size:16px;color:var(--navy);background:var(--white)}
.stv .qty-sm button:hover{background:var(--blue-lt)}
.stv .qty-sm input{width:48px;height:34px;text-align:center;border:0;outline:none;font-weight:700;font-size:14px}
.price-ask, .stv .price-ask{color:var(--gold);font-weight:800;font-size:14.5px}
.price-ask small, .stv .price-ask small{display:block;font-size:11px;color:var(--muted);font-weight:500}
.stv .sum-tip{background:#FFF8E8;border:1px solid var(--gold-lt);border-radius:var(--r-s);padding:12px;
  font-size:12.5px;color:#6d5a34;display:flex;gap:9px;margin-top:14px;line-height:1.55}
.stv .sum-tip svg{width:17px;height:17px;color:var(--gold);flex-shrink:0;margin-top:1px}
.stv .pay-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;justify-content:center}
.stv .pay-badges span{border:1px solid var(--line);border-radius:5px;padding:5px 10px;font-size:11.5px;
  color:var(--muted);background:#fff}
.stv .admin-bar .float-c{bottom:80px}
.stv .p-thumb img, .stv .gal-main img, .stv .ci-th img, .stv .gal-t img, .stv .cat-ic img{width:100%;height:100%;object-fit:cover}
.stv .gal-main img, .stv .p-thumb img{object-fit:contain;padding:6%}
.stv .cat-ic img{border-radius:50%;padding:0}
.stv .ci-th img{object-fit:contain;padding:8%}
.stv .news-th img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.stv .no-img{width:100%;height:100%;display:grid;place-items:center;background:var(--white);
  color:var(--blue-lt)}
.stv .no-img svg{width:44%;height:44%}
.stv .toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:var(--ink);
  color:#fff;padding:13px 20px;border-radius:100px;font-size:13.5px;font-weight:600;z-index:300;
  opacity:0;pointer-events:none;transition:.25s;box-shadow:var(--shadow-lg);max-width:90vw;text-align:center}
.stv .toast.show{opacity:1;transform:translate(-50%,0)}
.sum-ask, .stv .sum-ask{font-size:19px;color:var(--gold);font-weight:800;display:block;text-align:right;line-height:1.2}
.sum-ask small, .stv .sum-ask small{display:block;font-size:11px;color:var(--muted);font-weight:500}
.stv .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper, .stv .woocommerce-checkout .woocommerce > .woocommerce-notices-wrapper, .stv .woocommerce-cart .woocommerce > .steps-bar, .stv .woocommerce-checkout .woocommerce > .steps-bar{grid-column:1/-1}
@media (max-width:899px){
.stv .hero-cta .btn{flex:1}
}
@media (max-width:1079px){
.stv .cat-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:899px){
.stv .cat-grid{grid-template-columns:1fr 1fr;gap:11px}
.stv .cat-c{padding:14px 10px;border-radius:var(--r-m)}
.stv .cat-ic{width:56px;height:56px;margin-bottom:8px}
.stv .cat-ic svg{width:34px;height:34px}
.stv .cat-c b{font-size:13px}
.stv .cat-c small, .stv .cat-c .cat-more{display:none}
}
@media (max-width:1079px){
.stv .p-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:899px){
.stv .p-grid{grid-template-columns:1fr 1fr;gap:11px}
.stv .p-body{padding:10px;gap:5px}
.stv .p-name{font-size:13px;min-height:37px}
.stv .p-meta, .stv .p-quick{display:none}
.stv .p-price{flex-direction:column;align-items:stretch;gap:7px}
.stv .p-price .pp{font-size:14px}
.stv .p-btn{justify-content:center}
}
@media (max-width:1079px){
.stv .news-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:899px){
.stv .news-grid{grid-template-columns:1fr}
}
@media (max-width:899px){
.stv .cta-btns .btn{flex:1}
}
@media (max-width:899px){
.stv .float-c{right:12px;bottom:14px;flex-direction:row}
.stv .float-c a{width:44px;height:44px}
.stv .float-c a::after{display:none}
}
@media (max-width:899px){
.stv .m-bar{display:flex}
}
@media (max-width:899px){
.stv .price-box .pb-v{font-size:21px}
.stv .trust{grid-template-columns:1fr}
.stv .pd-actions .btn{min-width:0;flex:1 1 100%}
}
@media (max-width:899px){
.stv .steps-bar{padding:16px 0 0}
.stv .sb-i{font-size:12px}
.stv .sb-i span{width:25px;height:25px;font-size:12px}
.stv .sb-line{width:20px;margin:0 7px}
}
@media (max-width:899px){
.stv .float-c{right:12px;bottom:70px;flex-direction:row}
.stv .float-c a{width:44px;height:44px}
.stv .float-c a::after{display:none}
.stv .m-bar{display:flex}
}
@media (min-width:900px){
.stv .m-bar{display:none}
}

/* ---------- Lớp riêng của plugin ---------- */
.stv-block{margin:0 0 44px}
.stv .stv-h2{font-size:26px;font-weight:800;color:var(--navy);margin:0 0 20px;letter-spacing:-.01em}
.stv .news-th{position:relative;display:block;aspect-ratio:16/9;background:linear-gradient(135deg,var(--blue-lt),#dce9f5);overflow:hidden}
.stv .news-th img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.stv .news-th svg{width:34%;height:34%;opacity:.65;position:absolute;left:33%;top:33%}
.stv .news-tag{position:absolute;top:11px;left:11px;background:var(--navy);color:#fff;font-size:11px;
  font-weight:700;padding:4px 10px;border-radius:100px;z-index:2}
.stv .news-b{display:block;padding:16px}
.stv .news-t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:15.5px;font-weight:700;color:var(--navy);line-height:1.4;margin:7px 0 8px}
.stv .news-x{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:13.3px;color:var(--muted);line-height:1.55}
.stv .news-b time{font-size:12px;color:var(--muted);display:block}
.stv .p-thumb,.stv .p-body,.stv .p-price,.stv .p-meta{display:flex}
.stv .p-thumb{display:grid}
.stv .p-body{flex-direction:column}
.stv .p-name,.stv .p-cat{display:block}
.stv .p-card{text-decoration:none}
.stv .cat-c{text-decoration:none}
.stv img{max-width:100%;height:auto}
.stv svg{display:block}
.stv .p-thumb img,.stv .cat-ic img{width:100%;height:100%;object-fit:contain;padding:6%}
.stv .cat-ic img{border-radius:50%;padding:0;object-fit:cover}

/* ---------- Nút dùng trong nội dung trang (không phụ thuộc theme) ---------- */
.entry-content .btn, .wp-block-post-content .btn, .ast-container .btn, p > .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 24px;border-radius:6px;font-weight:600;font-size:15px;line-height:1.2;
  text-decoration:none!important;transition:.18s;border:0;cursor:pointer}
.btn.btn-gold{background:#E7B33A;color:#2b1e00!important}
.btn.btn-gold:hover{background:#F5D364;color:#2b1e00!important}
.btn.btn-navy{background:#05326E;color:#fff!important}
.btn.btn-navy:hover{background:#044488;color:#fff!important}
.btn.btn-out{border:1.5px solid #05326E!important;color:#05326E!important;background:#fff}
.btn.btn-out:hover{background:#05326E;color:#fff!important}
.btn.btn-zalo{background:#0068FF;color:#fff!important}
.btn.btn-zalo:hover{filter:brightness(1.1);color:#fff!important}
.btn.btn-lg{padding:15px 30px;font-size:16px}

/* ==========================================================================
   LUỒNG CHỐT ĐƠN QUA ZALO — danh sách hỏi giá
   ========================================================================== */

/* Mã hàng + đơn vị hiện dưới tên trong danh sách */
.stv-line-meta{
  display:block;margin-top:3px;font-size:12px;color:#5C6879;font-weight:500;
}

/* Khối kêu gọi cuối danh sách */
.stv .stv-gui{
  margin:22px 0 6px;padding:20px;border:1.5px solid rgba(5,50,110,.13);
  border-radius:12px;background:#F1F3F8;
}
.stv .gui-tip{
  font-size:14px;line-height:1.6;color:#2c3846;margin-bottom:14px;
  padding-left:13px;border-left:3px solid #E7B33A;
}
.stv .gui-tip b{color:#05326E}

.stv .btn.btn-xl{
  padding:16px 26px;font-size:17px;font-weight:800;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
}
.stv .btn.btn-xl svg{width:21px;height:21px;flex:0 0 21px}
.stv .btn.btn-block{display:flex;width:100%}

.stv .gui-phu{display:flex;gap:10px;margin-top:11px}
.stv .gui-phu .btn{flex:1;padding:11px 14px;font-size:14px;cursor:pointer}
.stv .gui-phu button.btn{font-family:inherit}
.stv .gui-phu button.btn:disabled{opacity:.6;cursor:wait}

.stv .gui-badges{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:15px;
  padding-top:14px;border-top:1px solid rgba(5,50,110,.11);
}
.stv .gui-badges span{
  font-size:12px;color:#05326E;background:#fff;border:1px solid rgba(5,50,110,.13);
  border-radius:20px;padding:5px 12px;font-weight:600;
}

/* Nút hỏi riêng một mã ở trang sản phẩm */
.stv .btn-hoi-mot,
.btn.btn-hoi-mot{
  display:inline-block;margin-left:10px;padding:12px 20px;cursor:pointer;
}

/* Danh sách trống */
.stv .empty-box{
  text-align:center;padding:38px 24px;border:1.5px dashed rgba(5,50,110,.22);
  border-radius:12px;background:#fff;
}
.stv .empty-box b{display:block;font-size:19px;color:#05326E;margin-bottom:9px}
.stv .empty-box p{
  max-width:520px;margin:0 auto 6px;color:#5C6879;font-size:14.5px;line-height:1.65;
}
.stv .empty-box .e-btns{display:flex;gap:10px;justify-content:center;margin-top:18px;flex-wrap:wrap}

@media (max-width:600px){
  .stv .stv-gui{padding:16px}
  .stv .gui-phu{flex-direction:column}
  .stv .btn.btn-xl{font-size:15.5px;padding:15px 18px}
  .btn.btn-hoi-mot{display:block;margin:10px 0 0;text-align:center}
}

/* Ẩn giá: bỏ dòng "Liên hệ" trùng do theme in ra, vì đã có ô báo giá đầy đủ bên dưới */
.stv-an-gia.single-product div.summary > p.price{ display:none; }

/* Nếu chỗ nào vẫn hiện chữ thay giá thì cho xuống dòng cho gọn */
.pp small{ display:block; font-size:11.5px; color:#5C6879; font-weight:500; margin-top:2px; }

/* Danh sách hỏi giá: bỏ cột giá và tạm tính — không có số tiền nào để xem */
.stv-chi-zalo .woocommerce table.shop_table th.product-price,
.stv-chi-zalo .woocommerce table.shop_table td.product-price,
.stv-chi-zalo .woocommerce table.shop_table th.product-subtotal,
.stv-chi-zalo .woocommerce table.shop_table td.product-subtotal{ display:none; }

/* Danh sách trống: bỏ nút "quay lại cửa hàng" mặc định, đã có nút trong khối rồi */
.stv-chi-zalo .woocommerce .return-to-shop{ display:none; }

/* ==========================================================================
   TRANG SẢN PHẨM — hai cột cân đối, ảnh vừa một khung nhìn
   Ảnh chụp dạng dựng đứng (3:4) nên để nguyên khổ sẽ cao hơn cả màn hình.
   Astra dàn hai cột bằng float, nên phải chỉnh bề ngang cả hai bên,
   không thì thu ảnh lại sẽ hở một khoảng trống to ở giữa.
   ========================================================================== */

/* Lớp phủ phóng to của WooCommerce có nền trắng, hay đè che mất ảnh */
.woocommerce-product-gallery .zoomImg{ background-color:transparent!important; }

@media (min-width:993px){
  .single-product .woocommerce-product-gallery{
    width:32%!important;
    max-width:32%!important;
    margin-right:4%;
  }
  .single-product div.product .summary.entry-summary{
    width:64%!important;
    max-width:64%!important;
  }
}

/* Máy tính bảng */
@media (min-width:769px) and (max-width:992px){
  .single-product .woocommerce-product-gallery{ width:38%!important; max-width:38%!important; margin-right:4%; }
  .single-product div.product .summary.entry-summary{ width:58%!important; max-width:58%!important; }
}

/* Điện thoại: ảnh chiếm trọn bề ngang */
@media (max-width:768px){
  .single-product .woocommerce-product-gallery{ width:100%!important; max-width:420px!important; margin:0 auto 22px; }
}

/* Hàng ảnh nhỏ bên dưới cho gọn lại theo */
.single-product .flex-control-thumbs{ margin-top:10px; }
.single-product .flex-control-thumbs li{ width:22%; margin-right:4%; }
.single-product .flex-control-thumbs li:nth-child(4n){ margin-right:0; }

/* =========================================================================
 * 14. GIAO DIỆN TRANG CHỦ KIỂU MỚI (stv2-*)
 * Bố cục học theo keodung.com, màu giữ nguyên của Sợi Tơ Vàng.
 * ====================================================================== */

.stv2{ --n:#05326E; --b:#044488; --v:#E7B33A; --vl:#F5D364; --nhat:#F1F3F8;
       --xam:#5C6879; --vien:rgba(5,50,110,.13); }
.stv2, .stv2 *{ box-sizing:border-box; }
.stv2-s{ padding:64px 0; }
/* Tràn hết chiều ngang, không bị khung nội dung của theme bó lại. */
.entry-content > .stv2-s,
.home .entry-content > .stv2-s{ max-width:none; margin-left:0; margin-right:0; width:auto; }
.stv2-nhat{ background:var(--nhat); }
.stv2-bd{ max-width:1240px; margin:0 auto; padding:0 24px; }
.stv2-giua{ text-align:center; margin-top:32px; }

/* --- tiêu đề khối --- */
.stv2-td{ text-align:center; margin-bottom:38px; }
.entry-content .stv2-td h2,
.stv2-td h2{ font-size:34px; line-height:1.25; margin:0 0 10px; color:var(--n);
             font-weight:800; letter-spacing:.5px; }
.stv2-td h2 span{ color:var(--v); }
.entry-content .stv2-td p,
.stv2-td p{ color:var(--xam); margin:0 auto; max-width:820px; }
.stv2-hoa-van{ display:flex; align-items:center; justify-content:center; gap:8px;
               color:var(--v); margin-top:14px; }
.stv2-hoa-van span{ width:64px; height:1px; background:var(--v); }

/* --- nút --- */
.stv2-nut{ display:inline-block; padding:13px 26px; border-radius:8px;
           font-weight:700; font-size:15px; text-decoration:none; }
.stv2-nut-vang{ background:var(--v); color:var(--n); }
.stv2-nut-vien{ border:2px solid var(--n); color:var(--n); }
.stv2-nut-vien:hover{ background:var(--n); color:#fff; }
.entry-content .stv2 a{ text-decoration:none; }

/* --- ô danh mục --- */
.stv2-dm-luoi{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.stv2-o-dm{ position:relative; border-radius:10px; overflow:hidden; aspect-ratio:1/1;
            display:block; background:var(--n); }
.stv2-o-dm img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }
.stv2-o-dm:hover img{ transform:scale(1.06); }
.stv2-o-dm-ten{ position:absolute; left:0; right:0; bottom:0; padding:44px 12px 14px;
                color:#fff; font-weight:700; font-size:14px; line-height:1.3; text-align:center;
                background:linear-gradient(transparent,rgba(5,50,110,.55) 38%,rgba(5,50,110,.95));
                text-shadow:0 1px 3px rgba(0,0,0,.45);
                text-transform:uppercase; letter-spacing:.3px; }
.stv2-o-dm-ten small{ display:block; font-weight:500; font-size:12px; color:var(--vl);
                      text-transform:none; letter-spacing:0; margin-top:2px; }

/* --- lưới sản phẩm --- */
.stv2-luoi{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.stv2-sp{ display:block; text-align:center; }
.stv2-sp-anh{ display:block; border:1px solid var(--vien); border-radius:8px;
              overflow:hidden; background:#fff; aspect-ratio:1/1; }
.stv2-sp-anh img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }
.stv2-sp:hover .stv2-sp-anh img{ transform:scale(1.05); }
.stv2-sp-ten{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
              overflow:hidden; margin:14px 0 4px; font-size:15px; color:var(--n);
              font-weight:600; line-height:1.4; }
.stv2-sp-ma{ display:block; font-size:12.5px; color:var(--xam); letter-spacing:.4px; }
.stv2-sp-gia{ display:block; font-size:14.5px; color:var(--xam); margin-top:4px; }
.stv2-sp-gia b{ color:#C0392B; }
.stv2-sp-dt{ display:block; font-size:13.5px; color:var(--xam); margin-top:2px; }
.stv2-sp-dt b{ color:var(--n); }
.stv2-khong-anh{ display:flex; align-items:center; justify-content:center; width:100%;
                 height:100%; background:#e9edf5; color:var(--n); font-size:13px;
                 font-weight:600; text-align:center; padding:12px; }

/* --- vì sao chọn --- */
.stv2-vs-luoi{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.stv2-the-vs{ border:1px solid var(--vien); border-radius:12px; padding:26px 22px 28px;
              background:#fff; box-shadow:0 2px 10px rgba(5,50,110,.05); }
.stv2-vs-dau{ display:flex; align-items:center; gap:8px; margin-bottom:16px; }
.stv2-vs-so{ width:56px; height:56px; border-radius:50%; background:var(--n); color:var(--v);
             display:flex; align-items:center; justify-content:center; font-size:22px;
             font-weight:800; flex:none; }
.stv2-vs-gach{ flex:1; border-top:2px dashed var(--v); }
.stv2-vs-mui{ color:var(--v); font-size:22px; font-weight:700; }
.entry-content .stv2-the-vs h3,
.stv2-the-vs h3{ font-size:17px; color:var(--n); margin:0 0 8px; }
.entry-content .stv2-the-vs p,
.stv2-the-vs p{ margin:0; color:var(--xam); font-size:14.5px; }

/* --- máy tính bảng / điện thoại --- */
@media (max-width:1024px){
	.stv2-dm-luoi{ grid-template-columns:repeat(3,1fr); }
	.stv2-luoi{ grid-template-columns:repeat(3,1fr); }
	.stv2-vs-luoi{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px){
	.stv2-s{ padding:44px 0; }
	.stv2-bd{ padding:0 16px; }
	.stv2-dm-luoi{ grid-template-columns:repeat(2,1fr); gap:12px; }
	.stv2-luoi{ grid-template-columns:repeat(2,1fr); gap:16px; }
	.entry-content .stv2-td h2, .stv2-td h2{ font-size:25px; }
	.stv2-sp-ten{ font-size:14px; }
}

/* =========================================================================
 * 15. MENU DANH MỤC XỔ XUỐNG
 * ====================================================================== */

.stv2-mega{ display:none; }
.stv2-mega-nut{ display:none; }

@media (min-width:922px){
	.main-header-menu .stv2-co-mega,
	.ast-desktop .stv2-co-mega{ position:static !important; }

	.stv2-mega{
		display:block; position:absolute; left:0; right:0; top:100%;
		background:#fff; box-shadow:0 18px 40px rgba(5,50,110,.18);
		border-top:3px solid var(--stv-gold,#E7B33A);
		opacity:0; visibility:hidden; transform:translateY(8px);
		transition:opacity .18s ease, transform .18s ease, visibility .18s;
		z-index:60;
	}
	.stv2-co-mega:hover > .stv2-mega,
	.stv2-co-mega:focus-within > .stv2-mega{ opacity:1; visibility:visible; transform:none; }

	.stv2-mega-trong{
		max-width:1240px; margin:0 auto; padding:34px 24px 38px;
		display:grid; grid-template-columns:repeat(3,1fr); gap:34px;
	}
	.stv2-mega-cot + .stv2-mega-cot{ border-left:1px solid rgba(5,50,110,.1); padding-left:34px; }
}

.stv2-mega-cha{
	display:block; color:#05326E !important; font-weight:800; font-size:15px;
	text-transform:uppercase; letter-spacing:.5px; padding-bottom:10px;
	margin-bottom:12px; border-bottom:2px solid #E7B33A; text-decoration:none;
}
.stv2-mega-cot ul{ list-style:none; margin:0; padding:0; }
.stv2-mega-cot li{ margin:0 0 2px; }
.stv2-mega-cot li a{
	display:flex; align-items:center; justify-content:space-between; gap:10px;
	padding:9px 12px; border-radius:6px; color:#2B3A55 !important;
	font-size:14.5px; font-weight:500; text-decoration:none; line-height:1.35;
}
.stv2-mega-cot li a:hover{ background:#F1F3F8; color:#05326E !important; }
.stv2-mega-cot li a span{
	flex:none; min-width:26px; text-align:center; font-size:12px; font-weight:700;
	color:#5C6879; background:#EDF1F7; border-radius:99px; padding:2px 7px;
}

.stv2-mega-hop{ background:#F1F3F8; border-radius:10px; padding:24px; }
.stv2-mega-hop b{ display:block; color:#05326E; font-size:16px; margin-bottom:8px; }
.stv2-mega-hop p{ color:#5C6879; font-size:14px; margin:0 0 16px; line-height:1.55; }
.stv2-mega-dt{ display:block; margin-top:12px; color:#05326E; font-weight:800; font-size:19px; }
.stv2-mega-hop .stv2-nut-vang{
	background:#E7B33A; color:#05326E !important; text-decoration:none;
	padding:12px 24px; border-radius:8px; font-weight:700; display:inline-block;
}
.stv2-mega-hop .stv2-nut-vang:hover{ background:#F5D364; }

/* --- điện thoại: xổ dọc bằng nút bấm --- */
@media (max-width:921px){
	.stv2-mega-nut{
		display:inline-flex; align-items:center; justify-content:center;
		width:38px; height:38px; margin-left:6px; vertical-align:middle;
		border:0; background:transparent; cursor:pointer; padding:0;
	}
	.stv2-mega-nut::after{
		content:''; width:9px; height:9px; border-right:2px solid currentColor;
		border-bottom:2px solid currentColor; transform:rotate(45deg) translate(-2px,-2px);
		transition:transform .2s;
	}
	.stv2-co-mega.stv2-mo .stv2-mega-nut::after{ transform:rotate(225deg) translate(-3px,-3px); }
	.stv2-co-mega.stv2-mo > .stv2-mega{ display:block; }
	.stv2-mega-trong{ padding:6px 0 14px; }
	.stv2-mega-cot{ margin-bottom:14px; }
	.stv2-mega-hop{ display:none; }
	.stv2-mega-cha{ font-size:14px; }
}

/* Neo bảng menu vào đúng thanh chứa menu để nó tràn hết chiều ngang.
   Astra đặt position:relative sẵn trên <ul> và trên khối canh lề, phải
   gỡ hai chỗ đó ra thì bảng mới bám được vào cả thanh. */
@media (min-width:922px){
	.ast-desktop .ast-below-header-bar ul.main-header-menu,
	.ast-desktop .ast-below-header-bar .ast-main-header-bar-alignment,
	.ast-desktop .main-header-bar ul.main-header-menu,
	.ast-desktop .main-header-bar .ast-main-header-bar-alignment{ position:static !important; }

	.ast-desktop .ast-below-header-bar,
	.ast-desktop .main-header-bar{ position:relative !important; }

	.ast-desktop .ast-below-header-bar,
	.ast-desktop .main-header-bar,
	.ast-desktop .main-header-bar-navigation,
	.ast-desktop .ast-main-header-bar-alignment,
	.ast-desktop .site-primary-header-wrap{ overflow:visible !important; }
	.ast-desktop .site-header{ z-index:99; }
}
