:root{
  --spv-red:#8b0714; --spv-red2:#b41424; --spv-gold:#d8a932; --spv-cream:#fff7e8; --spv-ink:#281315; --spv-muted:#766467; --spv-card:#fffdf8; --spv-line:rgba(139,7,20,.12); --spv-shadow:0 24px 56px rgba(64,15,18,.14); --spv-blue:#0f3f8f;
}
*{box-sizing:border-box} html,body{margin:0;padding:0;overflow-x:hidden} body{background:linear-gradient(180deg,#fff8eb 0%,#fffdf8 42%,#fff7e8 100%);color:var(--spv-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans JP","Noto Sans",Arial,sans-serif;line-height:1.6} a{text-decoration:none;color:inherit} img{max-width:100%;height:auto;display:block} .spviet-site-main{min-height:70vh}

.spviet-theme-header{position:sticky;top:0;z-index:999;background:rgba(255,247,232,.96);backdrop-filter:blur(16px);border-bottom:1px solid var(--spv-line)} body.admin-bar .spviet-theme-header{top:32px}
.spviet-header-inner{max-width:1240px;margin:0 auto;padding:14px 20px;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center}
.spviet-logo{display:inline-flex;align-items:center;gap:12px;font-weight:900;color:var(--spv-red);min-width:max-content}.spviet-logo-mark{width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,var(--spv-red),var(--spv-red2));display:grid;place-items:center;color:#fff;box-shadow:0 12px 25px rgba(139,7,20,.25)}.spviet-logo-text{font-size:24px;letter-spacing:.02em}
.spviet-primary-nav.is-desktop{min-width:0}.spviet-menu-list{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.spviet-menu-list>li{position:relative}.spviet-menu-list>li>a{display:flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;font-weight:800;color:#3a2225;white-space:nowrap}.spviet-menu-list>li:hover>a,.spviet-menu-list>li.current-menu-item>a,.spviet-menu-list>li.current_page_item>a{background:#fff;color:var(--spv-red);box-shadow:0 10px 25px rgba(139,7,20,.08)}
.spviet-menu-list .sub-menu{display:none;position:absolute;left:0;top:calc(100% + 8px);min-width:240px;padding:8px;margin:0;list-style:none;background:#fff;border:1px solid var(--spv-line);border-radius:18px;box-shadow:var(--spv-shadow);z-index:40}.spviet-menu-list li:hover>.sub-menu,.spviet-menu-list li:focus-within>.sub-menu{display:block}.spviet-menu-list .sub-menu a{display:block;padding:10px 12px;border-radius:12px}.spviet-menu-list .sub-menu a:hover{background:#fff7e8;color:var(--spv-red)}
.spviet-header-actions{display:flex;align-items:center;gap:14px;justify-self:end}.spviet-order-btn,.spviet-btn-primary{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:13px 22px;border:0;background:linear-gradient(135deg,var(--spv-red),#65030f);color:#fff!important;font-weight:900;box-shadow:0 14px 28px rgba(139,7,20,.25);white-space:nowrap}.spviet-btn-primary:hover,.spviet-order-btn:hover{transform:translateY(-1px)}
.spviet-menu-toggle{display:none;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;border:0;border-radius:0 0 0 18px;background:linear-gradient(180deg,var(--spv-red2),var(--spv-red));color:#fff;box-shadow:0 14px 28px rgba(139,7,20,.2);cursor:pointer}.spviet-menu-toggle-lines{display:grid;gap:5px}.spviet-menu-toggle-lines i{display:block;width:28px;height:2px;background:#fff;border-radius:5px}.spviet-menu-toggle small{display:block;font-size:12px;font-weight:800;letter-spacing:.08em;margin-top:6px}
.spviet-mobile-panel{position:absolute;top:100%;right:0;width:min(92vw,360px);background:#fff;border:1px solid var(--spv-line);border-radius:0 0 0 20px;box-shadow:var(--spv-shadow);overflow:hidden}.spviet-mobile-nav{padding:14px}.spviet-mobile-menu-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.spviet-mobile-menu-list>li>a{display:flex;padding:12px 14px;border-radius:14px;background:#fff7e8;font-weight:800;color:#3a2225}.spviet-mobile-menu-list .sub-menu{list-style:none;margin:6px 0 0 14px;padding:0;display:grid;gap:6px}.spviet-mobile-menu-list .sub-menu a{display:block;padding:10px 12px;border-radius:12px;background:#fff}

.spviet-home-hero{max-width:1240px;margin:0 auto;padding:36px 20px 10px;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);align-items:center;gap:28px}.spviet-home-copy{padding:26px 10px 22px}.spviet-eyebrow{display:inline-flex;padding:8px 14px;border:1px solid rgba(216,169,50,.6);border-radius:999px;background:rgba(255,255,255,.72);color:var(--spv-red);font-weight:900;margin-bottom:18px}.spviet-home-copy h1{margin:0 0 18px;font-size:clamp(42px,5vw,78px);line-height:1.05;letter-spacing:-.04em;color:#2f0d12}.spviet-login-note{margin:0;color:var(--spv-muted);font-size:19px;max-width:760px}.spviet-login-note a{display:inline-flex;align-items:center;justify-content:center;margin:0 4px;padding:4px 10px;border-radius:999px;background:linear-gradient(135deg,#1fa34a,#0f7d32);color:#fff!important;font-weight:900;box-shadow:0 8px 18px rgba(23,128,56,.2)}
.spviet-hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}.spviet-btn-ghost,.spviet-btn-login{display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;border-radius:999px;font-weight:900}.spviet-btn-ghost{border:1px solid rgba(139,7,20,.2);background:#fff;color:var(--spv-red)}.spviet-btn-login{border:0;background:linear-gradient(135deg,#1fa34a,#0f7d32);color:#fff!important;box-shadow:0 12px 26px rgba(23,128,56,.26)}
.spviet-home-slider-wrap{min-width:0}.spviet-slider{position:relative;background:linear-gradient(180deg,#fff,#fff7e8);border:1px solid var(--spv-line);border-radius:34px;box-shadow:var(--spv-shadow);padding:20px}.spviet-slider-track{position:relative;min-height:300px}.spviet-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .35s ease;display:block}.spviet-slide.is-active{opacity:1;pointer-events:auto;position:relative}.spviet-slide img{width:100%;border-radius:28px;aspect-ratio:16/10;object-fit:cover;background:#f8f1e4}.spviet-slide-overlay{position:absolute;left:24px;right:24px;bottom:20px;display:grid;gap:4px;padding:16px 18px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,247,232,.85));box-shadow:0 10px 25px rgba(64,15,18,.12)}.spviet-slide-overlay strong{font-size:20px;color:var(--spv-red)}.spviet-slide-overlay em{font-style:normal;color:#5d494a;font-weight:700}
.spviet-slider-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:999px;border:0;background:rgba(139,7,20,.92);color:#fff;font-size:28px;cursor:pointer;display:grid;place-items:center;box-shadow:0 12px 28px rgba(139,7,20,.22)}.spviet-slider-arrow.prev{left:8px}.spviet-slider-arrow.next{right:8px}.spviet-slider-dots{display:flex;justify-content:center;gap:8px;padding-top:14px}.spviet-slider-dots button{width:10px;height:10px;border-radius:50%;border:0;background:#e8dcdc;cursor:pointer}.spviet-slider-dots button.is-active{background:var(--spv-red)}

.spviet-quick-links-section{max-width:1240px;margin:6px auto 10px;padding:0 20px}.spviet-quick-links-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.spviet-quick-link{min-height:74px;border-radius:0;display:flex;align-items:center;justify-content:space-between;padding:18px 18px;background:var(--spv-quick,#0f3f8f);color:#fff!important;font-weight:900;box-shadow:0 16px 30px rgba(0,0,0,.08)}.spviet-quick-link span{font-size:24px;line-height:1.15}.spviet-quick-link b{font-size:24px;opacity:.9}

.spviet-latest-news-section{max-width:1240px;margin:20px auto 10px;padding:0 20px}.spviet-news-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#0f3f8f;color:#fff;border-radius:16px 16px 0 0}.spviet-news-head h2{margin:0;font-size:30px}.spviet-news-more{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;background:#9f0514;color:#fff!important;font-weight:800}.spviet-news-list{background:#fff;border:1px solid rgba(15,63,143,.12);border-top:0;border-radius:0 0 18px 18px;box-shadow:0 18px 42px rgba(64,15,18,.08)}.spviet-news-item{display:grid;grid-template-columns:120px 1fr;gap:16px;padding:16px 20px;border-bottom:1px dashed rgba(15,63,143,.13)}.spviet-news-item:last-child{border-bottom:0}.spviet-news-item time{font-weight:700;color:#8f8080}.spviet-news-item a{font-weight:800;color:#2c2222}.spviet-news-item.empty{display:block;color:#766467}

.spviet-feature-grid{max-width:1240px;margin:20px auto 30px;padding:0 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.spviet-feature{background:rgba(255,255,255,.76);border:1px solid var(--spv-line);border-radius:26px;padding:22px;box-shadow:0 14px 34px rgba(64,15,18,.08)}.spviet-feature img{width:48px;height:48px;margin-bottom:12px}.spviet-feature h3{margin:0 0 8px;color:var(--spv-red);font-size:20px}.spviet-feature p{margin:0;color:var(--spv-muted)}
.spviet-page-shell,.spviet-shortcode-area{max-width:1240px;margin:0 auto;padding:10px 20px 34px}.spviet-content-card{background:rgba(255,255,255,.78);border:1px solid var(--spv-line);border-radius:28px;box-shadow:var(--spv-shadow);padding:26px}

.spviet-theme-footer{border-top:1px solid var(--spv-line);background:#fff7e8;margin-top:30px}.spviet-footer-inner{max-width:1240px;margin:0 auto;padding:24px 20px 32px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.spviet-footer-inner strong{display:block;color:var(--spv-red);font-size:20px}.spviet-footer-inner p{margin:6px 0 0;color:var(--spv-muted)}.spviet-footer-links{display:flex;flex-wrap:wrap;gap:12px}.spviet-footer-links a{display:inline-flex;padding:10px 14px;border-radius:999px;background:#fff;color:#3a2225;border:1px solid var(--spv-line);font-weight:800}
.spviet-mobile-footer-nav{display:none}

@media (max-width:1100px){
  .spviet-header-inner{grid-template-columns:auto auto;justify-content:space-between}.spviet-primary-nav.is-desktop,.spviet-order-btn{display:none}.spviet-menu-toggle{display:flex;position:absolute;top:0;right:0}.spviet-theme-header{position:sticky}.spviet-header-actions{position:relative;justify-self:end;padding-right:0;min-height:72px}.spviet-home-hero{grid-template-columns:1fr}.spviet-quick-links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.spviet-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:782px){body.admin-bar .spviet-theme-header{top:46px}}
@media (max-width:760px){
  .spviet-header-inner{padding:10px 14px}.spviet-logo-text{font-size:21px}.spviet-home-hero{padding:18px 14px 6px;gap:18px}.spviet-home-copy{padding:4px 2px}.spviet-home-copy h1{font-size:clamp(34px,8.8vw,56px)}.spviet-login-note{font-size:17px}.spviet-slider{padding:10px;border-radius:24px}.spviet-slide img{aspect-ratio:5/4}.spviet-slide-overlay{left:12px;right:12px;bottom:12px;padding:12px 14px}.spviet-slide-overlay strong{font-size:16px}.spviet-slide-overlay em{font-size:13px}.spviet-slider-arrow{width:34px;height:34px;font-size:24px}.spviet-quick-links-section,.spviet-latest-news-section,.spviet-feature-grid,.spviet-shortcode-area{padding-left:14px;padding-right:14px}.spviet-quick-link{min-height:66px;padding:14px 16px}.spviet-quick-link span{font-size:18px}.spviet-news-head h2{font-size:24px}.spviet-news-item{grid-template-columns:1fr;gap:6px;padding:14px 16px}.spviet-feature-grid{grid-template-columns:1fr;gap:14px}.spviet-footer-inner{padding-bottom:96px;display:block}.spviet-footer-links{margin-top:14px}.spviet-mobile-footer-nav{position:fixed;left:0;right:0;bottom:0;z-index:998;display:grid;grid-template-columns:repeat(3,1fr);background:#0f3f8f;border-top:3px solid #f0d478;box-shadow:0 -8px 24px rgba(0,0,0,.16)}.spviet-mobile-footer-nav a{display:grid;gap:6px;align-content:center;justify-items:center;min-height:72px;padding:8px 6px;color:#fff!important;font-weight:800;border-right:1px solid rgba(255,255,255,.14)}.spviet-mobile-footer-nav a:last-child{border-right:0}.spviet-mobile-footer-nav .icon{font-size:18px;line-height:1}.spviet-mobile-footer-nav .label{font-size:12px;line-height:1.25;text-align:center}
}
@media (max-width:640px){
  .spviet-hero-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex-wrap:nowrap;width:100%;margin-top:22px}.spviet-hero-actions .spviet-btn-primary,.spviet-hero-actions .spviet-btn-ghost,.spviet-hero-actions .spviet-btn-login{width:100%;min-width:0;padding:11px 8px;font-size:13px;line-height:1.15;text-align:center;white-space:nowrap}.spviet-quick-links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:380px){
  .spviet-logo-mark{width:38px;height:38px}.spviet-logo-text{font-size:19px}.spviet-menu-toggle{width:68px;height:68px}.spviet-home-copy h1{font-size:32px}.spviet-quick-link span{font-size:16px}.spviet-news-more{padding:8px 10px;font-size:12px}.spviet-mobile-footer-nav .label{font-size:11px}
}


/* SPVIET V6: full-width homepage slider and responsive menu buttons */
.spviet-full-slider-section{
  width:100%;
  margin:0;
  padding:0;
  background:#fff7e8;
  border-bottom:1px solid var(--spv-line);
}
.spviet-full-slider{
  position:relative;
  width:100%;
  max-width:none;
  margin:0 auto;
  overflow:hidden;
  background:#f8f1e4;
}
.spviet-full-slider-track{
  position:relative;
  width:100%;
  min-height:clamp(330px, 40vw, 620px);
}
.spviet-full-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  pointer-events:none;
  transition:opacity .42s ease;
  display:block;
  background:#f8f1e4;
}
.spviet-full-slide.is-active{
  opacity:1;
  pointer-events:auto;
  position:absolute;
}
.spviet-full-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:0;
}
.spviet-full-slide-caption{
  position:absolute;
  left:50%;
  bottom:26px;
  transform:translateX(-50%);
  width:min(900px, calc(100% - 44px));
  display:grid;
  gap:4px;
  padding:16px 22px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.93),rgba(255,247,232,.86));
  box-shadow:0 14px 35px rgba(64,15,18,.13);
}
.spviet-full-slide-caption strong{
  color:var(--spv-red);
  font-size:clamp(20px, 2.6vw, 34px);
  font-weight:900;
  line-height:1.15;
}
.spviet-full-slide-caption em{
  color:#4a383a;
  font-style:normal;
  font-size:clamp(14px, 1.6vw, 20px);
  font-weight:800;
}
.spviet-full-slider .spviet-slider-arrow{
  z-index:5;
  width:52px;
  height:52px;
  background:rgba(139,7,20,.96);
}
.spviet-full-slider .spviet-slider-arrow.prev{left:24px}
.spviet-full-slider .spviet-slider-arrow.next{right:24px}
.spviet-full-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:10px;
  z-index:6;
  padding:0;
}
.spviet-quick-links-under-slider{
  max-width:none;
  width:100%;
  margin:0;
  padding:0 clamp(20px, 6vw, 100px);
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.12);
}
.spviet-quick-links-under-slider .spviet-quick-links-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(110px, 1fr));
  gap:0;
  max-width:1200px;
  margin:0 auto;
}
.spviet-quick-links-under-slider .spviet-quick-link{
  min-height:76px;
  border-radius:0;
  box-shadow:none;
  background:#fff!important;
  color:var(--spv-quick,#8b0714)!important;
  border-right:1px solid rgba(0,0,0,.16);
  border-bottom:0;
  justify-content:center;
  gap:10px;
  text-align:center;
  padding:15px 12px;
}
.spviet-quick-links-under-slider .spviet-quick-link:first-child{
  border-left:1px solid rgba(0,0,0,.16);
}
.spviet-quick-links-under-slider .spviet-quick-link span{
  font-size:clamp(18px, 1.5vw, 26px);
  line-height:1.15;
}
.spviet-quick-links-under-slider .spviet-quick-link b{
  font-size:18px;
}
.spviet-quick-links-under-slider .spviet-quick-link:hover{
  background:color-mix(in srgb, var(--spv-quick,#8b0714) 8%, #fff)!important;
}
body.home .spviet-home-hero,
body.home .spviet-home-copy,
body.home .spviet-home-slider-wrap{
  display:none!important;
}

@media(max-width:900px){
  .spviet-full-slider-track{
    min-height:clamp(260px, 60vw, 500px);
  }
  .spviet-full-slider .spviet-slider-arrow{
    width:42px;
    height:42px;
  }
  .spviet-full-slider .spviet-slider-arrow.prev{left:12px}
  .spviet-full-slider .spviet-slider-arrow.next{right:12px}
  .spviet-quick-links-under-slider{
    padding:0 14px;
    background:#fff7e8;
    border-bottom:0;
  }
  .spviet-quick-links-under-slider .spviet-quick-links-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    padding:12px 0;
  }
  .spviet-quick-links-under-slider .spviet-quick-link{
    min-height:62px;
    border:0!important;
    border-radius:0;
    color:#fff!important;
    background:var(--spv-quick,#8b0714)!important;
    justify-content:space-between;
    padding:14px 16px;
  }
  .spviet-quick-links-under-slider .spviet-quick-link span{
    font-size:18px;
    color:#fff!important;
  }
  .spviet-quick-links-under-slider .spviet-quick-link b{
    color:#fff!important;
  }
}

@media(max-width:520px){
  .spviet-full-slider-track{
    min-height:260px;
  }
  .spviet-full-slide img{
    aspect-ratio:16/10;
  }
  .spviet-full-slide-caption{
    left:12px;
    right:12px;
    bottom:28px;
    transform:none;
    width:auto;
    padding:11px 13px;
    border-radius:14px;
  }
  .spviet-full-slider .spviet-slider-arrow{
    width:36px;
    height:36px;
    font-size:22px;
  }
  .spviet-quick-links-under-slider .spviet-quick-link{
    min-height:58px;
    padding:12px 14px;
  }
  .spviet-quick-links-under-slider .spviet-quick-link span{
    font-size:16px;
  }
}


/* SPVIET V6.1: fix oversized banner, restore login CTA, make slider autoplay selectors work */
.spviet-full-slider-section{
  background:#fff7e8!important;
  padding:0!important;
  overflow:hidden!important;
}
.spviet-full-slider{
  max-width:1500px!important;
  margin:0 auto!important;
  overflow:hidden!important;
  border-left:1px solid rgba(139,7,20,.08);
  border-right:1px solid rgba(139,7,20,.08);
}
.spviet-full-slider-track{
  min-height:0!important;
  height:clamp(310px, 31.5vw, 520px)!important;
}
.spviet-full-slide{
  overflow:hidden!important;
}
.spviet-full-slide img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}
.spviet-full-slide-caption{
  bottom:28px!important;
  width:min(760px, calc(100% - 110px))!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  padding:14px 20px!important;
}
.spviet-full-slider .spviet-slider-arrow{
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:20!important;
}
.spviet-full-dots{
  bottom:10px!important;
}
.spviet-login-cta-strip{
  background:#fffdf8;
  border-bottom:1px solid rgba(139,7,20,.10);
}
.spviet-login-cta-inner{
  max-width:1200px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  color:#5f4b4d;
  font-size:17px;
  font-weight:700;
}
.spviet-login-cta-inner a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:118px;
  padding:10px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#1fa34a,#0f7d32);
  color:#fff!important;
  font-weight:900;
  box-shadow:0 12px 25px rgba(23,128,56,.24);
}
.spviet-login-cta-inner a:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(23,128,56,.32);
}
@media(max-width:900px){
  .spviet-full-slider{
    max-width:100%!important;
    border-left:0;
    border-right:0;
  }
  .spviet-full-slider-track{
    height:clamp(240px, 54vw, 420px)!important;
  }
  .spviet-full-slide-caption{
    width:min(680px, calc(100% - 82px))!important;
    bottom:28px!important;
  }
}
@media(max-width:560px){
  .spviet-full-slider-track{
    height:260px!important;
  }
  .spviet-full-slide-caption{
    width:calc(100% - 58px)!important;
    bottom:28px!important;
    padding:10px 13px!important;
  }
  .spviet-full-slide-caption strong{
    font-size:17px!important;
  }
  .spviet-full-slide-caption em{
    font-size:12px!important;
  }
  .spviet-login-cta-inner{
    padding:12px 14px;
    display:grid;
    gap:10px;
    font-size:14px;
  }
  .spviet-login-cta-inner a{
    width:max-content;
    margin:0 auto;
    min-width:126px;
  }
}


/* SPVIET V6.2: PC slider same width as menu, balanced height; mobile/tablet full width */
.spviet-logo-text{
  font-size:22px!important;
  letter-spacing:-.01em;
  white-space:nowrap;
}
.spviet-full-slider-section{
  background:#fff7e8!important;
  padding:0!important;
  border-bottom:0!important;
}
.spviet-full-slider{
  width:min(100%, 1200px)!important;
  max-width:1200px!important;
  margin:0 auto!important;
  border-left:1px solid rgba(139,7,20,.10)!important;
  border-right:1px solid rgba(139,7,20,.10)!important;
  border-bottom:1px solid rgba(139,7,20,.10)!important;
  border-radius:0!important;
  overflow:hidden!important;
}
.spviet-full-slider-track{
  height:clamp(300px, 28vw, 430px)!important;
}
.spviet-full-slide img{
  object-fit:cover!important;
  object-position:center center!important;
}
.spviet-full-slide-caption{
  width:min(680px, calc(100% - 110px))!important;
  bottom:24px!important;
}
.spviet-quick-links-under-slider{
  padding:0!important;
  max-width:1200px!important;
  margin:0 auto!important;
  background:#fff!important;
  border-left:1px solid rgba(0,0,0,.10)!important;
  border-right:1px solid rgba(0,0,0,.10)!important;
}
.spviet-quick-links-under-slider .spviet-quick-links-grid{
  max-width:1200px!important;
}
@media(max-width:1100px){
  .spviet-logo-text{
    font-size:20px!important;
  }
}
@media(max-width:900px){
  .spviet-full-slider{
    width:100%!important;
    max-width:none!important;
    border-left:0!important;
    border-right:0!important;
  }
  .spviet-full-slider-track{
    height:clamp(260px, 58vw, 460px)!important;
  }
  .spviet-quick-links-under-slider{
    width:100%!important;
    max-width:none!important;
    padding:0 14px!important;
    border-left:0!important;
    border-right:0!important;
    background:#fff7e8!important;
  }
}
@media(max-width:560px){
  .spviet-logo-text{
    font-size:17px!important;
    max-width:210px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .spviet-full-slider-track{
    height:260px!important;
  }
}


/* SPVIET V8.0 - definitive mobile/PC quick-menu active contrast */
.spviet-quick-link.spviet-touch-active,
.spviet-quick-link.spviet-touch-loading,
.spviet-quick-link:active,
.spviet-quick-links-under-slider .spviet-quick-link.spviet-touch-active,
.spviet-quick-links-under-slider .spviet-quick-link.spviet-touch-loading,
.spviet-quick-links-under-slider .spviet-quick-link:active{background:#8b0714!important;background-image:linear-gradient(135deg,#8b0714,#5e0210)!important;color:#fff!important;border-color:#8b0714!important;opacity:1!important;filter:none!important;text-shadow:none!important;}
.spviet-quick-link.spviet-touch-active *, .spviet-quick-link.spviet-touch-loading *, .spviet-quick-links-under-slider .spviet-quick-link.spviet-touch-active *, .spviet-quick-links-under-slider .spviet-quick-link.spviet-touch-loading *{color:#fff!important;opacity:1!important;filter:none!important;}

/* SPVIET V8.2 DEEPFIX: mobile header compact + real touch contrast */
@media(max-width:782px){
  body.admin-bar .spviet-theme-header,
  .admin-bar .spviet-theme-header{top:0!important;margin-top:0!important;}
  .spviet-theme-header{top:0!important;margin-top:0!important;}
  .spviet-header-inner{min-height:86px!important;padding-top:10px!important;padding-bottom:10px!important;}
  .spviet-logo{gap:12px!important;}
  .spviet-logo-mark{width:54px!important;height:54px!important;border-radius:16px!important;}
  .spviet-logo-text{font-size:17px!important;max-width:230px!important;}
  .spviet-mobile-toggle{width:76px!important;height:76px!important;border-radius:0 0 0 22px!important;margin-left:auto!important;}
}
@media(max-width:430px){
  .spviet-header-inner{min-height:78px!important;padding:8px 14px!important;}
  .spviet-logo-mark{width:48px!important;height:48px!important;}
  .spviet-logo-text{font-size:15px!important;max-width:205px!important;}
  .spviet-mobile-toggle{width:68px!important;height:68px!important;}
}
.spviet-quick-link.spviet-touch-active-v82,
.spviet-quick-link.spviet-loading-v82,
.spviet-quick-link:active,
.spviet-quick-link:focus,
.spviet-quick-links-under-slider .spviet-quick-link.spviet-touch-active-v82,
.spviet-quick-links-under-slider .spviet-quick-link.spviet-loading-v82,
.spviet-quick-links-under-slider .spviet-quick-link:active,
.spviet-quick-links-under-slider .spviet-quick-link:focus{
  background:#8b0714!important;background-image:linear-gradient(135deg,#8b0714,#52010b)!important;color:#fff!important;opacity:1!important;filter:none!important;text-shadow:none!important;box-shadow:inset 0 0 0 999px rgba(139,7,20,.18),0 10px 24px rgba(139,7,20,.20)!important;
}
.spviet-quick-link.spviet-touch-active-v82 *,
.spviet-quick-link.spviet-loading-v82 *,
.spviet-quick-link:active *,
.spviet-quick-link:focus *,
.spviet-quick-links-under-slider .spviet-quick-link.spviet-touch-active-v82 *,
.spviet-quick-links-under-slider .spviet-quick-link.spviet-loading-v82 *{color:#fff!important;opacity:1!important;filter:none!important;}


/* =========================================================
   SPVIET V8.3 - FINAL MOBILE/TABLET STICKY HEADER + FOOTER
   ========================================================= */
@media (max-width: 1024px){
  html, body{overflow-x:hidden!important;}
  html[style]{margin-top:0!important;}
  body.admin-bar{padding-top:0!important;}
  #wpadminbar{position:fixed!important;top:0!important;}

  .spviet-theme-header{
    position:fixed!important;
    top:0!important;left:0!important;right:0!important;
    z-index:10020!important;
    margin:0!important;
    background:rgba(255,247,232,.98)!important;
    box-shadow:0 6px 20px rgba(112,18,28,.08)!important;
  }
  body.admin-bar .spviet-theme-header{top:46px!important;}
  .spviet-header-inner{
    min-height:86px!important;
    padding:10px 16px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:10px!important;
  }
  .spviet-logo{min-width:0!important;gap:12px!important;}
  .spviet-logo-mark{width:54px!important;height:54px!important;border-radius:16px!important;font-size:21px!important;}
  .spviet-logo-text{font-size:22px!important;line-height:1.15!important;white-space:nowrap!important;max-width:calc(100vw - 170px)!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .spviet-header-actions{min-height:0!important;padding:0!important;position:static!important;}
  .spviet-menu-toggle{
    position:relative!important;top:auto!important;right:auto!important;
    width:72px!important;height:72px!important;border-radius:0 0 0 24px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    background:linear-gradient(180deg,#c10b22,#8b0714)!important;color:#fff!important;
    box-shadow:0 12px 28px rgba(139,7,20,.18)!important;
  }
  .spviet-menu-toggle span{background:#fff!important;}
  .spviet-site-main{padding-top:88px!important;padding-bottom:86px!important;}
  body.admin-bar .spviet-site-main{padding-top:134px!important;}

  .spviet-mobile-footer-nav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    z-index:10010!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;
    background:#0f3f8f!important;border-top:3px solid #f0d478!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
  }
  .spviet-mobile-footer-nav a{min-height:68px!important;color:#fff!important;background:#0f3f8f!important;}

  /* slider: fit inside frame, no broken/cropped overflow */
  .spviet-full-slider-section{padding:0!important;margin:0 auto!important;max-width:100%!important;overflow:hidden!important;}
  .spviet-full-slider{width:100%!important;max-width:100%!important;margin:0!important;border-radius:0!important;overflow:hidden!important;}
  .spviet-full-slider-track{height:clamp(260px,42vw,380px)!important;min-height:260px!important;max-height:380px!important;overflow:hidden!important;border-radius:0!important;background:#fff7e8!important;}
  .spviet-full-slide{inset:0!important;width:100%!important;height:100%!important;display:block!important;overflow:hidden!important;}
  .spviet-full-slide img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;max-width:none!important;}
  .spviet-full-slide-caption{left:50%!important;right:auto!important;bottom:18px!important;transform:translateX(-50%)!important;width:min(76vw,720px)!important;max-width:76vw!important;}
  .spviet-full-slide-caption strong{font-size:clamp(22px,5.2vw,36px)!important;line-height:1.1!important;}
  .spviet-full-slide-caption em{font-size:clamp(14px,3vw,19px)!important;}
}

@media (max-width: 520px){
  .spviet-header-inner{min-height:78px!important;padding:8px 14px!important;}
  .spviet-logo-mark{width:46px!important;height:46px!important;border-radius:14px!important;}
  .spviet-logo-text{font-size:19px!important;max-width:calc(100vw - 148px)!important;}
  .spviet-menu-toggle{width:62px!important;height:62px!important;}
  .spviet-menu-toggle small{font-size:11px!important;letter-spacing:.08em!important;}
  .spviet-site-main{padding-top:78px!important;padding-bottom:84px!important;}
  body.admin-bar .spviet-site-main{padding-top:124px!important;}
  .spviet-full-slider-track{height:300px!important;min-height:300px!important;max-height:300px!important;}
  .spviet-full-slide img{object-fit:cover!important;}
}

@media (min-width: 1025px){
  .spviet-full-slider-section{max-width:1200px!important;margin:0 auto!important;padding:0!important;}
  .spviet-full-slider{border-radius:0!important;overflow:hidden!important;}
  .spviet-full-slider-track{height:360px!important;max-height:360px!important;overflow:hidden!important;}
  .spviet-full-slide img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;}
}

/* SPVIET V8.5 Menu page hero slider */
.spviet-menu-intro-slider{position:relative;max-width:1180px;margin:0 auto 18px;border-radius:28px;overflow:hidden;border:1px solid rgba(155,0,21,.12);background:#fff7ea;box-shadow:0 22px 55px rgba(80,20,20,.10);height:clamp(240px,34vw,430px)}
.spviet-menu-intro-track,.spviet-menu-intro-slide{width:100%;height:100%;position:relative}.spviet-menu-intro-slide{display:none}.spviet-menu-intro-slide.active{display:block}.spviet-menu-intro-slide img{width:100%;height:100%;object-fit:cover;display:block}.spviet-menu-intro-caption{position:absolute;left:clamp(18px,5vw,70px);bottom:clamp(18px,4vw,48px);max-width:min(650px,78%);padding:18px 24px;border-radius:22px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);box-shadow:0 14px 35px rgba(50,20,20,.12)}.spviet-menu-intro-caption h2{margin:0 0 8px;color:#9b0015;font-size:clamp(26px,4vw,54px);font-weight:900;line-height:1.05}.spviet-menu-intro-caption p{margin:0;color:#3d2b2b;font-size:clamp(15px,2vw,24px);font-weight:800}.spviet-menu-intro-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:none;background:#9b0015;color:#fff;font-size:34px;font-weight:900;display:flex;align-items:center;justify-content:center;z-index:3;box-shadow:0 12px 25px rgba(155,0,21,.28)}.spviet-menu-intro-nav.prev{left:14px}.spviet-menu-intro-nav.next{right:14px}.spviet-menu-intro-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:10px;z-index:4}.spviet-menu-intro-dots button{width:12px;height:12px;border-radius:50%;border:0;background:rgba(255,255,255,.7);padding:0}.spviet-menu-intro-dots button.active{background:#9b0015}.page .spviet-menu-pro>.spviet-menu-toolbar{display:none!important}
@media(max-width:768px){.spviet-menu-intro-slider{height:260px;border-radius:0;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw}.spviet-menu-intro-slide img{object-fit:cover}.spviet-menu-intro-caption{left:18px;right:18px;bottom:28px;max-width:none;padding:14px 16px}.spviet-menu-intro-nav{width:42px;height:42px}.spviet-menu-intro-nav.prev{left:10px}.spviet-menu-intro-nav.next{right:10px}}


/* =========================================================
   SPVIET V8.6 HOTFIX
   1) Nut menu mobile hien thi dung 3 gach ngang, khong bi thanh 1 khoi trang
   2) Bao ve cac trang shortcode tren mobile/tablet: khong tran khung, bang duoc keo ngang rieng
   ========================================================= */
.spviet-menu-toggle .spviet-menu-toggle-lines{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  width:46px !important;
  height:32px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 auto 6px !important;
  line-height:1 !important;
  overflow:visible !important;
}
.spviet-menu-toggle .spviet-menu-toggle-lines i,
.spviet-menu-toggle .spviet-menu-toggle-lines::before,
.spviet-menu-toggle .spviet-menu-toggle-lines::after{
  content:"" !important;
  display:block !important;
  width:42px !important;
  height:4px !important;
  min-height:4px !important;
  max-height:4px !important;
  border-radius:999px !important;
  background:#fff !important;
  box-shadow:0 1px 0 rgba(0,0,0,.08) !important;
  opacity:1 !important;
  transform:none !important;
}
.spviet-menu-toggle:hover .spviet-menu-toggle-lines,
.spviet-menu-toggle:active .spviet-menu-toggle-lines,
.spviet-menu-toggle:focus .spviet-menu-toggle-lines{background:transparent !important;}

.spviet-site-main,
.spviet-content,
.spviet-page,
.spviet-page-card,
.entry-content,
.wp-block-post-content{
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow-x:clip;
}
.entry-content img,
.entry-content iframe,
.entry-content video,
.wp-block-post-content img,
.wp-block-post-content iframe,
.wp-block-post-content video{
  max-width:100% !important;
  height:auto !important;
}
.entry-content table,
.wp-block-post-content table,
.spviet-shortcode-safe table{
  width:max-content;
  max-width:none;
  border-collapse:collapse;
}
.spviet-shortcode-safe,
.entry-content .spviet-shortcode-safe,
.wp-block-post-content .spviet-shortcode-safe,
.entry-content .spviet-table-scroll,
.wp-block-post-content .spviet-table-scroll{
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  -webkit-overflow-scrolling:touch !important;
  box-sizing:border-box !important;
}
@media (max-width: 900px){
  .spviet-page-card,
  .entry-content,
  .wp-block-post-content{
    width:100% !important;
    max-width:100vw !important;
    padding-left:14px !important;
    padding-right:14px !important;
    overflow-x:clip !important;
  }
  .entry-content > *,
  .wp-block-post-content > *{
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  .entry-content table,
  .wp-block-post-content table{
    display:table !important;
    min-width:640px !important;
  }
}
@media (max-width: 540px){
  .spviet-brand-text{font-size:clamp(17px,4.6vw,24px) !important;}
  .spviet-menu-toggle{width:78px !important;height:92px !important;min-width:78px !important;}
  .spviet-menu-toggle .spviet-menu-toggle-lines{width:38px !important;gap:7px !important;}
  .spviet-menu-toggle .spviet-menu-toggle-lines i,
  .spviet-menu-toggle .spviet-menu-toggle-lines::before,
  .spviet-menu-toggle .spviet-menu-toggle-lines::after{width:36px !important;height:3.5px !important;min-height:3.5px !important;}
}


/* =========================================================
   SPVIET V8.7 HOTFIX - Mobile menu icon + shortcode fit
   ========================================================= */

/* Mobile hamburger: exactly 3 clear lines, never 5 lines */
.spviet-menu-toggle .spviet-menu-lines,
.spviet-mobile-menu-toggle .spviet-menu-lines,
.spviet-nav-toggle .spviet-menu-lines{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:42px!important;
  height:34px!important;
}
.spviet-menu-toggle .spviet-menu-lines:before,
.spviet-menu-toggle .spviet-menu-lines:after,
.spviet-mobile-menu-toggle .spviet-menu-lines:before,
.spviet-mobile-menu-toggle .spviet-menu-lines:after,
.spviet-nav-toggle .spviet-menu-lines:before,
.spviet-nav-toggle .spviet-menu-lines:after{
  content:none!important;
  display:none!important;
}
.spviet-menu-toggle .spviet-menu-lines i,
.spviet-mobile-menu-toggle .spviet-menu-lines i,
.spviet-nav-toggle .spviet-menu-lines i{
  display:block!important;
  width:34px!important;
  height:4px!important;
  min-height:4px!important;
  border-radius:999px!important;
  background:#fff!important;
  opacity:1!important;
  transform:none!important;
  margin:0!important;
  box-shadow:0 1px 0 rgba(0,0,0,.12)!important;
}
.spviet-mobile-menu-button,
.spviet-menu-toggle,
.spviet-mobile-menu-toggle,
.spviet-nav-toggle{
  overflow:hidden!important;
}

/* Shortcode safety: do not let plugin shortcodes break the mobile viewport */
html, body{
  max-width:100%!important;
  overflow-x:hidden!important;
}
.spviet-page-shell,
.spviet-page-content,
.entry-content,
.page-content,
.wp-site-blocks,
.site-main,
#page,
#content{
  max-width:100%!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}
.spviet-page-content *,
.entry-content *,
.page-content *{
  box-sizing:border-box!important;
}
.spviet-page-content img,
.entry-content img,
.page-content img,
.spviet-page-content canvas,
.entry-content canvas,
.page-content canvas,
.spviet-page-content video,
.entry-content video,
.page-content video,
.spviet-page-content iframe,
.entry-content iframe,
.page-content iframe{
  max-width:100%!important;
  height:auto!important;
}

@media (max-width: 782px){
  /* keep header compact on mobile/tablet */
  .spviet-site-header,
  .spviet-main-header,
  .spviet-header-inner{
    min-height:0!important;
  }
  .spviet-header-inner{
    padding-top:14px!important;
    padding-bottom:14px!important;
  }

  /* Any shortcode card generated by plugins must fit inside screen */
  .spviet-page-shell{
    width:100%!important;
    max-width:100%!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .spviet-page-content,
  .entry-content,
  .page-content{
    width:100%!important;
    max-width:100%!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .spviet-page-content > *,
  .entry-content > *,
  .page-content > *,
  .spviet-page-content .spviet-loyalty-wrap,
  .spviet-page-content .spviet-loyalty-dashboard,
  .spviet-page-content .spviet-member-card,
  .spviet-page-content .spviet-member-page,
  .spviet-page-content .spviet-qr-card,
  .spviet-page-content .spviet-qr-wrapper,
  .spviet-page-content .spviet-reservation-wrap,
  .spviet-page-content .spviet-booking-wrap,
  .spviet-page-content .woocommerce,
  .entry-content .spviet-loyalty-wrap,
  .entry-content .spviet-loyalty-dashboard,
  .entry-content .spviet-member-card,
  .entry-content .spviet-member-page,
  .entry-content .spviet-qr-card,
  .entry-content .spviet-qr-wrapper,
  .entry-content .spviet-reservation-wrap,
  .entry-content .spviet-booking-wrap,
  .entry-content .woocommerce{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    transform:none!important;
  }

  /* Flex/grid shortcodes must become single column instead of overflowing right side */
  .spviet-page-content [class*="grid"],
  .entry-content [class*="grid"],
  .page-content [class*="grid"]{
    max-width:100%!important;
  }
  .spviet-page-content .spviet-loyalty-dashboard,
  .spviet-page-content .spviet-member-card,
  .spviet-page-content .spviet-qr-card,
  .spviet-page-content .spviet-reservation-wrap,
  .entry-content .spviet-loyalty-dashboard,
  .entry-content .spviet-member-card,
  .entry-content .spviet-qr-card,
  .entry-content .spviet-reservation-wrap{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  /* Tables: keep the page width fixed; table scrolls inside its own box if needed */
  .spviet-page-content table,
  .entry-content table,
  .page-content table{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
    white-space:normal!important;
  }
  .spviet-page-content th,
  .spviet-page-content td,
  .entry-content th,
  .entry-content td,
  .page-content th,
  .page-content td{
    max-width:44vw!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    white-space:normal!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  /* QR/member pages: scale large QR images and cards into the viewport */
  .spviet-page-content .qrcode,
  .spviet-page-content .qr-code,
  .spviet-page-content [class*="qr"] img,
  .entry-content .qrcode,
  .entry-content .qr-code,
  .entry-content [class*="qr"] img{
    max-width:min(78vw, 320px)!important;
    width:auto!important;
    height:auto!important;
  }

  /* Prevent long POS/order IDs from forcing horizontal scroll */
  .spviet-page-content,
  .entry-content,
  .page-content{
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
}


/* =========================================================
   SPVIET V9.9.5 - WooCommerce Menu Pro Layout
   ========================================================= */
body.page-slug-our-menu .spviet-site-main,
body.page-template-page-our-menu .spviet-site-main{overflow-x:hidden}.spviet-menu-page-pro{width:100%;overflow:hidden}.spviet-wc-menu-pro{width:100%;padding:22px 16px 70px;clear:both;overflow:hidden}.spviet-wc-menu-shell{width:min(1200px,calc(100vw - 32px));max-width:1200px;margin:0 auto;background:rgba(255,253,248,.93);border:1px solid rgba(139,7,20,.13);border-radius:32px;padding:28px;box-shadow:0 22px 54px rgba(64,15,18,.11);overflow:hidden}.spviet-wc-menu-head{text-align:center;margin:0 auto 20px;max-width:820px}.spviet-wc-kicker{display:inline-flex;align-items:center;justify-content:center;margin-bottom:8px;padding:7px 14px;border-radius:999px;background:#fff2d1;border:1px solid rgba(216,169,50,.45);font-weight:900;color:#8b0714}.spviet-wc-menu-head h1{margin:0;color:#8b0714;font-size:clamp(32px,4vw,52px);font-weight:950;line-height:1.08;letter-spacing:-.03em}.spviet-wc-menu-head p{margin:10px auto 0;color:#5d494a;font-size:16px;line-height:1.65}.spviet-wc-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;align-items:center;margin:22px auto 14px;max-width:860px}.spviet-wc-search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid rgba(139,7,20,.18);border-radius:999px;padding:10px 16px;box-shadow:0 10px 24px rgba(64,15,18,.06)}.spviet-wc-search input{border:0;outline:0;background:transparent;width:100%;font-size:15px;color:#281315}.spviet-wc-toolbar select{width:100%;border:1px solid rgba(139,7,20,.18);background:#fff;color:#281315;border-radius:999px;padding:12px 14px;font-weight:800;outline:0}.spviet-wc-cat-tabs{display:flex;gap:10px;align-items:center;overflow-x:auto;padding:10px 2px 16px;margin:0 0 12px;scrollbar-width:thin}.spviet-wc-cat-tabs button{flex:0 0 auto;border:1px solid rgba(139,7,20,.18);background:#fff;color:#281315;border-radius:999px;padding:11px 18px;font-weight:900;cursor:pointer;box-shadow:none}.spviet-wc-cat-tabs button.is-active,.spviet-wc-cat-tabs button:hover{background:#8b0714;color:#fff;border-color:#8b0714;box-shadow:0 12px 24px rgba(139,7,20,.18)}.spviet-wc-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:26px;align-items:start;max-width:100%;min-width:0}.spviet-wc-filter-panel{display:grid;gap:18px;min-width:0}.spviet-wc-filter-card{background:#10463b;border:1px solid rgba(216,169,50,.65);border-radius:14px;overflow:hidden;color:#fff}.spviet-wc-filter-card h3{margin:0;padding:14px 18px;background:#d9a246;color:#fff;font-size:18px;font-weight:950;letter-spacing:.01em}.spviet-wc-filter-card label{display:flex;align-items:center;gap:10px;padding:10px 18px;font-weight:800;cursor:pointer;line-height:1.35}.spviet-wc-filter-card label:first-of-type{padding-top:16px}.spviet-wc-filter-card label:last-of-type{padding-bottom:16px}.spviet-wc-filter-card input[type="checkbox"]{width:17px;height:17px;accent-color:#8b0714;flex:0 0 auto}.spviet-wc-filter-small button{margin:8px 18px 18px;border:0;border-radius:999px;background:#fff;color:#8b0714;font-weight:900;padding:10px 14px;cursor:pointer}.spviet-wc-products-area{min-width:0;max-width:100%;overflow:hidden}.spviet-wc-cat-section{margin:0 0 34px}.spviet-wc-cat-section[hidden],.spviet-wc-menu-card[hidden],.spviet-wc-no-result[hidden]{display:none!important}.spviet-wc-cat-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:0 0 14px;padding:0 2px 10px;border-bottom:2px solid rgba(139,7,20,.12)}.spviet-wc-cat-heading h2{margin:0;color:#8b0714;font-size:clamp(24px,2.6vw,34px);font-weight:950;line-height:1.15}.spviet-wc-cat-heading p{margin:0;color:#6c5659;max-width:560px}.spviet-wc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;min-width:0}.spviet-wc-menu-card{min-width:0;background:#fff;border:1px solid rgba(139,7,20,.1);border-radius:0;overflow:hidden;box-shadow:0 12px 30px rgba(64,15,18,.08);display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}.spviet-wc-menu-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(64,15,18,.14)}.spviet-wc-card-media{position:relative;display:block;width:100%;aspect-ratio:4/3;background:linear-gradient(135deg,#a73a25,#e5ad3e);overflow:hidden}.spviet-wc-card-media img{width:100%;height:100%;object-fit:cover;display:block}.spviet-wc-card-noimg{display:grid;place-items:center;width:100%;height:100%;color:#fff;font-size:22px;font-weight:950;letter-spacing:.08em}.spviet-wc-sale-badge{position:absolute;right:12px;top:12px;background:#df3b3f;color:#fff;border-radius:10px;padding:6px 10px;font-weight:950;box-shadow:0 8px 18px rgba(0,0,0,.16)}.spviet-wc-card-body{display:flex;flex-direction:column;gap:10px;flex:1;padding:18px}.spviet-wc-card-body h3{margin:0;color:#1d1516;font-size:20px;font-weight:950;line-height:1.35}.spviet-wc-card-body h3 a{color:inherit;text-decoration:none}.spviet-wc-card-body p{margin:0;color:#403234;font-size:15px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.spviet-wc-card-bottom{margin-top:auto;display:grid;gap:12px;align-items:center}.spviet-wc-card-price{display:block;color:#d33f45;font-size:20px;font-weight:950}.spviet-wc-card-price del{font-size:.78em;color:#928184;margin-left:6px}.spviet-wc-card-price ins{text-decoration:none}.spviet-wc-detail-btn{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;padding:10px 18px;border-radius:10px;background:#d9a246;color:#fff!important;font-weight:950;text-decoration:none;box-shadow:0 8px 18px rgba(150,94,22,.18)}.spviet-wc-empty,.spviet-wc-no-result{background:#fff4ef;border:1px dashed rgba(139,7,20,.25);border-radius:18px;padding:20px;color:#7c2528;font-weight:800;line-height:1.6}.spviet-wc-no-result{margin-top:16px}.spviet-page-shell,.spviet-content-card,.spviet-page-content,.entry-content{max-width:100%;min-width:0}.woocommerce ul.products,.woocommerce-page ul.products{max-width:100%!important;margin-left:0!important;margin-right:0!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:22px!important}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:auto!important;float:none!important;margin:0!important;clear:none!important;min-width:0!important}.woocommerce .products::before,.woocommerce .products::after{display:none!important}@media(max-width:1100px){.spviet-wc-layout{grid-template-columns:240px minmax(0,1fr);gap:18px}.spviet-wc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.spviet-wc-menu-shell{padding:22px}}@media(max-width:820px){.spviet-wc-menu-pro{padding:14px 10px 90px}.spviet-wc-menu-shell{width:100%;border-radius:24px;padding:16px}.spviet-wc-toolbar{grid-template-columns:1fr;max-width:100%}.spviet-wc-layout{grid-template-columns:1fr}.spviet-wc-filter-panel{grid-template-columns:1fr}.spviet-wc-filter-card h3{font-size:16px}.spviet-wc-cat-heading{display:block}.spviet-wc-cat-heading p{margin-top:6px}.spviet-wc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.spviet-wc-card-body{padding:14px}.spviet-wc-card-body h3{font-size:17px}.spviet-wc-card-body p{font-size:14px;-webkit-line-clamp:3}.spviet-wc-card-price{font-size:18px}}@media(max-width:520px){.spviet-wc-grid{grid-template-columns:1fr}.spviet-wc-cat-tabs button{padding:10px 14px}.spviet-wc-filter-card label{font-size:15px}.spviet-wc-card-media{aspect-ratio:16/10}}


/* =========================================================
   SPVIET V9.9.6 - Product detail clean + order buttons + header color pills
   ========================================================= */
.spviet-primary-nav .spviet-menu-list{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
  justify-content:center!important;
}
.spviet-primary-nav .spviet-menu-list>li{margin:0!important;list-style:none!important;}
.spviet-primary-nav .spviet-menu-list>li>a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  padding:11px 18px!important;
  border-radius:999px!important;
  color:#fff!important;
  font-weight:950!important;
  text-decoration:none!important;
  border:1px solid rgba(255,255,255,.46)!important;
  box-shadow:0 12px 22px rgba(64,15,18,.12)!important;
  transition:transform .16s ease, filter .16s ease, box-shadow .16s ease!important;
  white-space:nowrap!important;
}
.spviet-primary-nav .spviet-menu-list>li>a:hover,
.spviet-primary-nav .spviet-menu-list>li.current-menu-item>a{
  transform:translateY(-2px)!important;
  filter:saturate(1.14) brightness(1.04)!important;
  box-shadow:0 16px 28px rgba(64,15,18,.2)!important;
}
.spviet-primary-nav .spviet-menu-list>li:nth-child(6n+1)>a{background:#8b0714!important;}
.spviet-primary-nav .spviet-menu-list>li:nth-child(6n+2)>a{background:#d9a246!important;}
.spviet-primary-nav .spviet-menu-list>li:nth-child(6n+3)>a{background:#0f6fb4!important;}
.spviet-primary-nav .spviet-menu-list>li:nth-child(6n+4)>a{background:#139745!important;}
.spviet-primary-nav .spviet-menu-list>li:nth-child(6n+5)>a{background:#8e3cc8!important;}
.spviet-primary-nav .spviet-menu-list>li:nth-child(6n+6)>a{background:#e46b27!important;}
.spviet-header-inner{gap:16px!important;}
.spviet-header-actions .spviet-order-btn{background:#8b0714!important;border-radius:999px!important;box-shadow:0 14px 30px rgba(139,7,20,.22)!important;}

.spviet-wc-card-media img{background:#fff9ef;}
.spviet-wc-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;}
.spviet-wc-card-actions a{min-width:0!important;white-space:nowrap!important;}
.spviet-wc-detail-btn,
.spviet-wc-order-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:46px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  color:#fff!important;
  font-weight:950!important;
  text-decoration:none!important;
  line-height:1.1!important;
  border:0!important;
  box-shadow:0 8px 18px rgba(150,94,22,.18)!important;
}
.spviet-wc-detail-btn{background:#d9a246!important;}
.spviet-wc-order-btn{background:#139745!important;}
.spviet-wc-order-btn:hover,.spviet-wc-detail-btn:hover{filter:brightness(1.04);transform:translateY(-1px);}
.woocommerce a.added_to_cart{display:none!important;}

.spviet-woo-page-shell{
  width:100%;
  padding:34px 16px 80px;
  background:linear-gradient(180deg,#fff9ef 0%,#fffdf8 100%);
  overflow:hidden;
}
.spviet-woo-content-card{
  width:min(1180px,calc(100vw - 32px));
  margin:0 auto;
  background:rgba(255,253,248,.96);
  border:1px solid rgba(139,7,20,.14);
  border-radius:30px;
  padding:30px;
  box-shadow:0 22px 54px rgba(64,15,18,.10);
  overflow:hidden;
}
.spviet-woocommerce-page .widget,
.spviet-woocommerce-page .sidebar,
.spviet-woocommerce-page #sidebar,
.spviet-woocommerce-page .secondary,
.spviet-woocommerce-page aside.widget-area,
.spviet-single-product-page .widget,
.spviet-single-product-page .sidebar,
.spviet-single-product-page #sidebar,
.spviet-single-product-page .secondary,
.spviet-single-product-page aside.widget-area{
  display:none!important;
}
.spviet-woocommerce-page .woocommerce,
.spviet-single-product-page .woocommerce{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  float:none!important;
  clear:both!important;
}
.spviet-woocommerce-page .woocommerce div.product,
.spviet-single-product-page .woocommerce div.product{
  display:grid!important;
  grid-template-columns:minmax(280px,480px) minmax(0,1fr)!important;
  gap:34px!important;
  align-items:start!important;
  width:100%!important;
  max-width:100%!important;
}
.spviet-woocommerce-page .woocommerce div.product div.images,
.spviet-single-product-page .woocommerce div.product div.images,
.spviet-woocommerce-page .woocommerce div.product div.summary,
.spviet-single-product-page .woocommerce div.product div.summary{
  width:100%!important;
  float:none!important;
  margin:0!important;
  min-width:0!important;
}
.spviet-woocommerce-page .woocommerce div.product div.images img,
.spviet-single-product-page .woocommerce div.product div.images img{
  width:100%!important;
  height:auto!important;
  border-radius:22px!important;
  border:1px solid rgba(139,7,20,.12)!important;
  background:#fff9ef!important;
  object-fit:cover!important;
}
.spviet-woocommerce-page .product_title,
.spviet-single-product-page .product_title{
  color:#8b0714!important;
  font-size:clamp(30px,4vw,52px)!important;
  line-height:1.08!important;
  font-weight:950!important;
  margin:0 0 14px!important;
}
.spviet-woocommerce-page .price,
.spviet-single-product-page .price{
  color:#d33f45!important;
  font-size:28px!important;
  font-weight:950!important;
}
.spviet-woocommerce-page .single_add_to_cart_button,
.spviet-single-product-page .single_add_to_cart_button{
  background:#139745!important;
  color:#fff!important;
  border-radius:999px!important;
  min-height:50px!important;
  padding:12px 24px!important;
  font-weight:950!important;
  border:0!important;
}
.spviet-woocommerce-page .quantity .qty,
.spviet-single-product-page .quantity .qty{
  min-height:48px!important;
  border-radius:14px!important;
  border:1px solid rgba(139,7,20,.18)!important;
  padding:8px!important;
}
.spviet-woocommerce-page .woocommerce-tabs,
.spviet-single-product-page .woocommerce-tabs,
.spviet-woocommerce-page .related.products,
.spviet-single-product-page .related.products{
  grid-column:1/-1!important;
  width:100%!important;
  max-width:100%!important;
}
@media(max-width:1020px){
  .spviet-primary-nav .spviet-menu-list>li>a{padding:10px 13px!important;font-size:14px!important;}
  .spviet-woocommerce-page .woocommerce div.product,
  .spviet-single-product-page .woocommerce div.product{grid-template-columns:1fr!important;}
}
@media(max-width:720px){
  .spviet-woo-page-shell{padding:18px 10px 90px;}
  .spviet-woo-content-card{width:100%;padding:16px;border-radius:22px;}
  .spviet-wc-card-actions{grid-template-columns:1fr;}
}

/* =========================================================
   SPVIET V9.9.7 - Product fixed cards + home random Woo grid
   ========================================================= */
.spviet-img-fallback-active{object-fit:cover!important;background:#fff7e8!important;}

/* Khung ảnh sản phẩm cố định trên trang chi tiết */
.spviet-single-product-page .woocommerce div.product div.images,
.spviet-woocommerce-page .woocommerce div.product div.images{
  align-self:stretch!important;
}
.spviet-single-product-page .woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.spviet-woocommerce-page .woocommerce div.product div.images .woocommerce-product-gallery__wrapper{
  display:grid!important;
  gap:14px!important;
}
.spviet-single-product-page .woocommerce div.product div.images .woocommerce-product-gallery__image,
.spviet-woocommerce-page .woocommerce div.product div.images .woocommerce-product-gallery__image{
  width:100%!important;
  border-radius:22px!important;
  overflow:hidden!important;
  background:#fff7e8!important;
  border:1px solid rgba(139,7,20,.12)!important;
}
.spviet-single-product-page .woocommerce div.product div.images .woocommerce-product-gallery__image:first-child,
.spviet-woocommerce-page .woocommerce div.product div.images .woocommerce-product-gallery__image:first-child{
  aspect-ratio:4/3!important;
  min-height:320px!important;
}
.spviet-single-product-page .woocommerce div.product div.images .woocommerce-product-gallery__image:first-child img,
.spviet-woocommerce-page .woocommerce div.product div.images .woocommerce-product-gallery__image:first-child img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:0!important;
  border:0!important;
}

/* Product loop / related products: ảnh cố định, nút Đặt Món đồng hàng góc phải dưới */
.woocommerce ul.products,
.woocommerce-page ul.products,
.spviet-single-product-page .related.products ul.products,
.spviet-woocommerce-page .related.products ul.products{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:24px!important;
  align-items:stretch!important;
  clear:both!important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.spviet-single-product-page .related.products ul.products li.product,
.spviet-woocommerce-page .related.products ul.products li.product{
  display:flex!important;
  flex-direction:column!important;
  min-height:420px!important;
  padding:0 0 18px!important;
  margin:0!important;
  width:auto!important;
  float:none!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#fffdf8!important;
  border:1px solid rgba(139,7,20,.10)!important;
  box-shadow:0 14px 32px rgba(64,15,18,.08)!important;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
}
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img{
  display:block!important;
  width:100%!important;
  height:190px!important;
  min-height:190px!important;
  max-height:190px!important;
  object-fit:cover!important;
  margin:0!important;
  background:#fff7e8!important;
  border:0!important;
  border-radius:0!important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title{
  min-height:56px!important;
  padding:16px 18px 4px!important;
  margin:0!important;
  color:#1d1516!important;
  font-size:18px!important;
  font-weight:950!important;
  line-height:1.35!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price{
  display:block!important;
  padding:8px 18px 0!important;
  margin-top:auto!important;
  color:#d33f45!important;
  font-size:21px!important;
  font-weight:950!important;
}
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button{
  align-self:flex-end!important;
  margin:14px 18px 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:10px 18px!important;
  border-radius:10px!important;
  background:#139745!important;
  color:#fff!important;
  font-weight:950!important;
  border:0!important;
  box-shadow:0 9px 20px rgba(19,151,69,.18)!important;
  white-space:nowrap!important;
}
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce-page ul.products li.product a.added_to_cart{display:none!important;}

/* Trang menu tự dựng: giữ chiều cao card đồng đều và nút ở đáy */
.spviet-wc-menu-card{height:100%!important;min-height:440px!important;}
.spviet-wc-card-media{aspect-ratio:4/3!important;min-height:178px!important;}
.spviet-wc-card-body{min-height:250px!important;}
.spviet-wc-card-actions{margin-top:auto!important;}

/* Home Shopping Center: bỏ dòng chữ cũ, thay bằng 2 hàng x 4 món random */
.spviet-home-shopping-center{
  width:min(1200px,calc(100vw - 32px));
  margin:32px auto 34px;
  padding:34px 36px 38px;
  background:rgba(255,253,248,.96);
  border:1px solid rgba(139,7,20,.11);
  border-radius:30px;
  box-shadow:0 22px 54px rgba(64,15,18,.10);
  overflow:hidden;
}
.spviet-home-shopping-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 13px;
  border-radius:999px;
  background:#fff2d1;
  border:1px solid rgba(216,169,50,.52);
  color:#8b0714;
  font-size:13px;
  font-weight:950;
  margin-bottom:16px;
}
.spviet-home-shopping-center h1{
  margin:0 0 24px;
  color:#a20a1b;
  font-size:clamp(38px,5vw,72px);
  line-height:1.04;
  letter-spacing:-.045em;
  font-weight:950;
}
.spviet-home-products-wrap{transition:opacity .22s ease;}
.spviet-home-shopping-center.is-refreshing .spviet-home-products-wrap{opacity:.45;}
.spviet-home-products-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.spviet-home-product-card{
  min-width:0;
  min-height:300px;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid rgba(139,7,20,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(64,15,18,.08);
}
.spviet-home-product-media{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  background:#fff7e8;
  overflow:hidden;
}
.spviet-home-product-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.spviet-home-product-body{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:13px 14px 14px;
}
.spviet-home-product-body h3{
  margin:0;
  min-height:44px;
  color:#1d1516;
  font-size:16px;
  font-weight:950;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.spviet-home-product-price{
  color:#d33f45;
  font-size:17px;
  font-weight:950;
  margin-top:auto;
}
.spviet-home-product-price del{font-size:.78em;color:#9a8b8e;margin-left:5px;}
.spviet-home-product-price ins{text-decoration:none;}
.spviet-home-product-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:4px;
}
.spviet-home-product-detail,
.spviet-home-product-order{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:8px 10px!important;
  border-radius:10px!important;
  color:#fff!important;
  font-weight:950!important;
  font-size:13px!important;
  line-height:1.1!important;
  text-decoration:none!important;
  border:0!important;
  white-space:nowrap!important;
}
.spviet-home-product-detail{background:#d9a246!important;}
.spviet-home-product-order{background:#139745!important;}
.spviet-home-products-empty{
  padding:22px;
  background:#fff4ef;
  color:#7c2528;
  border:1px dashed rgba(139,7,20,.25);
  border-radius:18px;
  font-weight:850;
}
@media(max-width:1100px){
  .spviet-home-products-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:820px){
  .spviet-home-shopping-center{width:calc(100vw - 20px);padding:22px 16px;border-radius:24px;}
  .spviet-home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  .spviet-home-product-actions{grid-template-columns:1fr;}
  .spviet-home-shopping-center h1{font-size:clamp(32px,8vw,48px);}
  .spviet-single-product-page .woocommerce div.product div.images .woocommerce-product-gallery__image:first-child,
  .spviet-woocommerce-page .woocommerce div.product div.images .woocommerce-product-gallery__image:first-child{min-height:240px!important;}
}
@media(max-width:520px){
  .spviet-home-products-grid{grid-template-columns:1fr;}
  .woocommerce ul.products,
  .woocommerce-page ul.products{grid-template-columns:1fr!important;}
}

/* =========================================================
   SPVIET V9.9.16 - Shop page uses Menu Pro catalog/filter layout
   ========================================================= */
.spviet-woo-shop-catalog-card{
  width:min(1280px,calc(100vw - 32px))!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.spviet-woo-shop-catalog-card .spviet-wc-menu-pro{
  padding:0 0 70px!important;
}
.spviet-woo-shop-catalog-card .spviet-wc-menu-shell{
  width:100%!important;
  max-width:1280px!important;
}
.spviet-wc-cat-title{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:4px 0 4px;
  padding:7px 13px;
  border-radius:999px;
  background:#fff2d1;
  border:1px solid rgba(216,169,50,.55);
  color:#8b0714;
  font-weight:950;
  font-size:13px;
  letter-spacing:.03em;
}
.spviet-wc-menu-mode-shop .spviet-wc-menu-head{
  text-align:left!important;
  max-width:none!important;
  margin-bottom:18px!important;
}
.spviet-wc-menu-mode-shop .spviet-wc-toolbar{
  max-width:none!important;
  grid-template-columns:minmax(0,1fr) 240px!important;
}
.spviet-wc-menu-mode-shop .spviet-wc-cat-tabs{
  border-bottom:1px solid rgba(139,7,20,.10);
  margin-bottom:18px!important;
}
.spviet-wc-card-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  align-items:center!important;
}
.spviet-wc-detail-btn,
.spviet-wc-order-btn{
  width:100%!important;
  min-height:40px!important;
  text-align:center!important;
}
@media(max-width:820px){
  .spviet-woo-shop-catalog-card{width:100%!important;}
  .spviet-wc-menu-mode-shop .spviet-wc-toolbar{grid-template-columns:1fr!important;}
}
@media(max-width:520px){
  .spviet-wc-card-actions{grid-template-columns:1fr!important;}
}

/* =========================================================
   SPVIET V9.9.23 - Mobile simplification + editable header logo
   ========================================================= */
.spviet-logo-mark-img{
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid rgba(139,7,20,.12)!important;
  padding:3px!important;
}
.spviet-logo-mark-img img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  border-radius:inherit!important;
}

@media(max-width:820px){
  /* An bo loc ben trai tren trang Menu va Shop de mobile gon, de khach truy cap nhanh */
  .spviet-wc-filter-panel,
  .spviet-wc-menu-mode-shop .spviet-wc-filter-panel,
  .spviet-woo-shop-catalog-card .spviet-wc-filter-panel{
    display:none!important;
  }
  .spviet-wc-layout,
  .spviet-wc-menu-mode-shop .spviet-wc-layout,
  .spviet-woo-shop-catalog-card .spviet-wc-layout{
    grid-template-columns:1fr!important;
  }
  .spviet-wc-menu-shell{padding:14px!important;border-radius:22px!important;}
  .spviet-wc-toolbar{gap:10px!important;margin-top:12px!important;}
}

@media(max-width:640px){
  /* Nut menu mobile nho gon: 3 gach + chu MENU ben duoi de khach de hieu */
  .spviet-header-inner{min-height:72px!important;padding:9px 74px 9px 14px!important;}
  .spviet-header-actions{min-height:0!important;position:static!important;padding-right:0!important;}
  .spviet-menu-toggle{
    width:58px!important;
    height:66px!important;
    min-width:58px!important;
    border-radius:15px!important;
    top:10px!important;
    right:12px!important;
    padding:0!important;
    box-shadow:0 10px 22px rgba(139,7,20,.20)!important;
  }
  .spviet-menu-toggle .spviet-menu-toggle-lines{
    width:30px!important;
    height:22px!important;
    gap:4px!important;
    margin:0!important;
  }
  .spviet-menu-toggle .spviet-menu-toggle-lines i,
  .spviet-menu-toggle .spviet-menu-toggle-lines::before,
  .spviet-menu-toggle .spviet-menu-toggle-lines::after{
    width:28px!important;
    height:3px!important;
    min-height:3px!important;
    max-height:3px!important;
  }
  .spviet-menu-toggle-label,
  .spviet-menu-toggle small{display:block!important;font-size:9px!important;line-height:1!important;margin-top:5px!important;letter-spacing:.08em!important;font-weight:900!important;color:#fff!important;}
  .spviet-logo{gap:10px!important;min-width:0!important;}
  .spviet-logo-mark{width:48px!important;height:48px!important;border-radius:15px!important;flex:0 0 auto!important;}
  .spviet-logo-text{font-size:clamp(18px,5.2vw,24px)!important;max-width:calc(100vw - 150px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  body.admin-bar .spviet-site-main{padding-top:118px!important;}
}

/* =========================================================
   SPVIET V9.9.25 - Mobile menu page + compact hamburger with MENU label
   1) Nut menu dien thoai dung 3 gach that + chu MENU ben duoi.
   2) Khong tao them 2 gach ao bang ::before/::after.
   3) An bo loc tren mobile nhung khong an/noi dung menu WooCommerce.
   ========================================================= */
@media (max-width: 820px){
  body .spviet-wc-filter-panel,
  body .spviet-wc-menu-mode-shop .spviet-wc-filter-panel,
  body .spviet-woo-shop-catalog-card .spviet-wc-filter-panel{
    display:none!important;
  }
  body .spviet-wc-layout,
  body .spviet-wc-menu-mode-shop .spviet-wc-layout,
  body .spviet-woo-shop-catalog-card .spviet-wc-layout{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
  }
  body .spviet-menu-route-shell,
  body .spviet-menu-route-shell .spviet-page-content,
  body .spviet-menu-route-shell .spviet-wc-menu-shell{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}

@media (max-width: 640px){
  body .spviet-theme-header{position:sticky!important;top:0!important;z-index:10020!important;}
  body.admin-bar .spviet-theme-header{top:46px!important;}
  body .spviet-header-inner{
    position:relative!important;
    min-height:74px!important;
    padding:10px 86px 10px 14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  body .spviet-header-actions{position:static!important;min-height:0!important;padding:0!important;}
  body .spviet-menu-toggle{
    position:absolute!important;
    top:50%!important;
    right:12px!important;
    transform:translateY(-50%)!important;
    width:62px!important;
    height:68px!important;
    min-width:62px!important;
    min-height:68px!important;
    border-radius:16px!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:linear-gradient(180deg,#c10b22,#8b0714)!important;
    box-shadow:0 10px 22px rgba(139,7,20,.22)!important;
    overflow:hidden!important;
  }
  body .spviet-menu-toggle .spviet-menu-toggle-lines{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    width:28px!important;
    height:22px!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body .spviet-menu-toggle .spviet-menu-toggle-lines::before,
  body .spviet-menu-toggle .spviet-menu-toggle-lines::after{
    content:none!important;
    display:none!important;
  }
  body .spviet-menu-toggle .spviet-menu-toggle-lines i{
    display:block!important;
    width:28px!important;
    height:3px!important;
    min-height:3px!important;
    max-height:3px!important;
    border-radius:999px!important;
    background:#fff!important;
    opacity:1!important;
    transform:none!important;
    margin:0!important;
    box-shadow:none!important;
  }
  body .spviet-menu-toggle-label,
  body .spviet-menu-toggle small{display:block!important;font-size:9px!important;line-height:1!important;margin-top:5px!important;letter-spacing:.08em!important;font-weight:900!important;color:#fff!important;text-transform:uppercase!important;}
  body .spviet-logo-text{
    font-size:clamp(18px,5vw,23px)!important;
    max-width:calc(100vw - 170px)!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body .spviet-site-main{padding-top:0!important;}
  body.admin-bar .spviet-site-main{padding-top:0!important;}
}

/* =========================================================
   SPVIET V9.9.26 - Mobile/iPad sticky header-footer + compact AI chat
   - Header/footer luon giu tren man hinh khi khach vuot trang.
   - Chatbox mobile thu gon de khong mat nut Gui.
   - Menu mobile van giu icon 3 gach + chu MENU ben duoi.
   ========================================================= */
@media (max-width: 1024px){
  html{scroll-padding-top:calc(88px + env(safe-area-inset-top));}
  body{
    padding-top:calc(86px + env(safe-area-inset-top))!important;
    padding-bottom:calc(108px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;
  }
  body.admin-bar{padding-top:calc(132px + env(safe-area-inset-top))!important;}

  body .spviet-theme-header{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:999920!important;
    background:rgba(255,249,239,.96)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    backdrop-filter:blur(14px)!important;
    box-shadow:0 8px 24px rgba(139,7,20,.10)!important;
  }
  body.admin-bar .spviet-theme-header{top:46px!important;}
  @media (min-width:783px) and (max-width:1024px){body.admin-bar .spviet-theme-header{top:32px!important;}}

  body .spviet-theme-footer{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    z-index:999900!important;
    margin:0!important;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important;
    background:rgba(255,248,235,.97)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    backdrop-filter:blur(14px)!important;
    border-top:1px solid rgba(139,7,20,.14)!important;
    box-shadow:0 -10px 30px rgba(139,7,20,.12)!important;
  }
  body .spviet-footer-inner{
    min-height:54px!important;
    max-width:100%!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
  }
  body .spviet-footer-inner strong{font-size:16px!important;line-height:1.1!important;display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:42vw!important;}
  body .spviet-footer-inner p{font-size:12px!important;line-height:1.2!important;margin:2px 0 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:44vw!important;}
  body .spviet-footer-links{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;max-width:56vw!important;}
  body .spviet-footer-links a{flex:0 0 auto!important;min-width:72px!important;padding:9px 10px!important;border-radius:16px!important;font-size:13px!important;text-align:center!important;}

  /* Chatbox / SPVIET Assistant: thu gon de nut Gui khong bi mat ngoai man hinh */
  body .spviet-ai-chat-widget,
  body .spviet-ai-chatbox,
  body .spviet-ai-chat-box,
  body .spviet-chat-widget,
  body .spviet-assistant-widget,
  body .spviet-assistant-box,
  body [class*="spviet-ai-chat"],
  body [class*="spviet-assistant"]{
    max-width:calc(100vw - 24px)!important;
    box-sizing:border-box!important;
  }
  body .spviet-ai-chat-widget,
  body .spviet-ai-chatbox,
  body .spviet-ai-chat-box,
  body .spviet-chat-widget,
  body .spviet-assistant-widget,
  body .spviet-assistant-box{
    width:calc(100vw - 24px)!important;
    height:min(68dvh,560px)!important;
    max-height:calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(88px + env(safe-area-inset-bottom))!important;
    border-radius:20px!important;
    overflow:hidden!important;
  }
  body .spviet-ai-chat-header,
  body .spviet-assistant-header,
  body [class*="spviet-ai-chat"] [class*="header"],
  body [class*="spviet-assistant"] [class*="header"]{
    padding:14px 16px!important;
    min-height:0!important;
  }
  body .spviet-ai-chat-messages,
  body .spviet-assistant-messages,
  body [class*="spviet-ai-chat"] [class*="messages"],
  body [class*="spviet-assistant"] [class*="messages"]{
    max-height:calc(68dvh - 170px)!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body .spviet-ai-chat-input,
  body .spviet-ai-chat-form,
  body .spviet-assistant-input,
  body .spviet-assistant-form,
  body [class*="spviet-ai-chat"] form,
  body [class*="spviet-assistant"] form{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding:10px 12px!important;
  }
  body .spviet-ai-chat-input input,
  body .spviet-ai-chat-input textarea,
  body .spviet-ai-chat-form input,
  body .spviet-ai-chat-form textarea,
  body .spviet-assistant-input input,
  body .spviet-assistant-input textarea,
  body .spviet-assistant-form input,
  body .spviet-assistant-form textarea,
  body [class*="spviet-ai-chat"] form input,
  body [class*="spviet-ai-chat"] form textarea,
  body [class*="spviet-assistant"] form input,
  body [class*="spviet-assistant"] form textarea{
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
    height:50px!important;
    max-height:88px!important;
    box-sizing:border-box!important;
  }
  body .spviet-ai-chat-input button,
  body .spviet-ai-chat-form button,
  body .spviet-assistant-input button,
  body .spviet-assistant-form button,
  body [class*="spviet-ai-chat"] form button,
  body [class*="spviet-assistant"] form button{
    flex:0 0 54px!important;
    width:54px!important;
    min-width:54px!important;
    max-width:54px!important;
    height:54px!important;
    min-height:54px!important;
    padding:0!important;
    border-radius:50%!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }

  /* Hop ngon ngu va nut ho tro khong che footer/chat */
  body .gtranslate_wrapper,
  body .gt_float_switcher,
  body .gt_switcher_wrapper,
  body [class*="gtranslate"],
  body [id*="gtranslate"]{
    bottom:calc(122px + env(safe-area-inset-bottom))!important;
    right:10px!important;
    max-width:176px!important;
    transform:scale(.82)!important;
    transform-origin:right bottom!important;
  }
}

@media (max-width: 640px){
  body{padding-top:calc(76px + env(safe-area-inset-top))!important;padding-bottom:calc(96px + env(safe-area-inset-bottom))!important;}
  body.admin-bar{padding-top:calc(122px + env(safe-area-inset-top))!important;}
  body .spviet-header-inner{min-height:70px!important;padding:8px 82px 8px 12px!important;}
  body .spviet-menu-toggle{right:12px!important;top:50%!important;transform:translateY(-50%)!important;width:58px!important;height:64px!important;min-width:58px!important;min-height:64px!important;border-radius:15px!important;}
  body .spviet-menu-toggle .spviet-menu-toggle-lines{width:26px!important;height:19px!important;gap:4px!important;}
  body .spviet-menu-toggle .spviet-menu-toggle-lines i{width:26px!important;height:3px!important;}
  body .spviet-menu-toggle-label,body .spviet-menu-toggle small{font-size:9px!important;margin-top:4px!important;display:block!important;}
  body .spviet-logo-mark{width:48px!important;height:48px!important;}
  body .spviet-logo-text{max-width:calc(100vw - 156px)!important;font-size:clamp(17px,5vw,22px)!important;}
  body .spviet-footer-inner strong{display:none!important;}
  body .spviet-footer-inner p{display:none!important;}
  body .spviet-footer-links{max-width:100%!important;width:100%!important;justify-content:space-around!important;gap:0!important;}
  body .spviet-footer-links a{min-width:30%!important;font-size:13px!important;padding:10px 6px!important;border-radius:14px!important;}
}

/* =========================================================
   SPVIET V9.9.27 - Restore old mobile footer layout + icons
   - Khong doi mau/layout footer cu: xanh duong, 3 cot, icon tren chu.
   - Van giu sticky footer mobile/iPad theo yeu cau ban truoc.
   ========================================================= */
.spviet-footer-link-icon{display:none}
.spviet-footer-link-label{display:inline}
@media (max-width: 1024px){
  body{
    padding-bottom:calc(96px + env(safe-area-inset-bottom))!important;
  }
  body .spviet-theme-footer{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    z-index:999900!important;
    margin:0!important;
    padding:0!important;
    background:#0f3f8f!important;
    border-top:3px solid #f0d478!important;
    box-shadow:0 -8px 24px rgba(0,0,0,.18)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body .spviet-footer-inner{
    width:100%!important;
    max-width:none!important;
    min-height:72px!important;
    padding:0 calc(0px + env(safe-area-inset-right)) calc(0px + env(safe-area-inset-bottom)) calc(0px + env(safe-area-inset-left))!important;
    margin:0!important;
    display:block!important;
  }
  body .spviet-footer-brand{
    display:none!important;
  }
  body .spviet-footer-links{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:0!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body .spviet-footer-links a{
    display:grid!important;
    gap:6px!important;
    align-content:center!important;
    justify-items:center!important;
    min-width:0!important;
    min-height:72px!important;
    padding:8px 6px!important;
    border-radius:0!important;
    border:0!important;
    border-right:1px solid rgba(255,255,255,.16)!important;
    background:#0f3f8f!important;
    color:#fff!important;
    font-weight:900!important;
    text-align:center!important;
    box-shadow:none!important;
    text-decoration:none!important;
  }
  body .spviet-footer-links a:last-child{border-right:0!important;}
  body .spviet-footer-link-icon{
    display:block!important;
    font-size:20px!important;
    line-height:1!important;
    color:#fff!important;
    opacity:.95!important;
  }
  body .spviet-footer-link-label{
    display:block!important;
    font-size:15px!important;
    line-height:1.15!important;
    color:#fff!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:30vw!important;
  }
  body .gtranslate_wrapper,
  body .gt_float_switcher,
  body .gt_switcher_wrapper,
  body [class*="gtranslate"],
  body [id*="gtranslate"]{
    bottom:calc(112px + env(safe-area-inset-bottom))!important;
  }
}
@media (max-width: 640px){
  body .spviet-footer-inner{min-height:76px!important;}
  body .spviet-footer-links a{min-height:76px!important;padding:8px 4px!important;}
  body .spviet-footer-link-icon{font-size:19px!important;}
  body .spviet-footer-link-label{font-size:14px!important;max-width:31vw!important;}
}


/* =========================================================
   SPVIET V9.9.28 - Mobile Chatbox viewport fix
   - Thu gon chieu cao chatbox tren dien thoai de khong che tieu de va nut X.
   - Khi ban phim mo, khung nhap khong tran mat nut Gui.
   - Giu nguyen footer xanh/icon cua V9.9.27.
   ========================================================= */
@media (max-width: 1024px){
  body .spviet-ai-chat-widget,
  body .spviet-ai-chatbox,
  body .spviet-ai-chat-box,
  body .spviet-chat-widget,
  body .spviet-assistant-widget,
  body .spviet-assistant-box,
  body [class*="spviet-ai-chat"][class*="widget"],
  body [class*="spviet-ai-chat"][class*="box"],
  body [class*="spviet-assistant"][class*="widget"],
  body [class*="spviet-assistant"][class*="box"]{
    position:fixed!important;
    left:14px!important;
    right:14px!important;
    top:calc(96px + env(safe-area-inset-top))!important;
    bottom:auto!important;
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
    height:min(52dvh,430px)!important;
    max-height:calc(100dvh - 218px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    min-height:260px!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    border-radius:18px!important;
    z-index:999960!important;
  }
  body.admin-bar .spviet-ai-chat-widget,
  body.admin-bar .spviet-ai-chatbox,
  body.admin-bar .spviet-ai-chat-box,
  body.admin-bar .spviet-chat-widget,
  body.admin-bar .spviet-assistant-widget,
  body.admin-bar .spviet-assistant-box,
  body.admin-bar [class*="spviet-ai-chat"][class*="widget"],
  body.admin-bar [class*="spviet-ai-chat"][class*="box"],
  body.admin-bar [class*="spviet-assistant"][class*="widget"],
  body.admin-bar [class*="spviet-assistant"][class*="box"]{
    top:calc(142px + env(safe-area-inset-top))!important;
    max-height:calc(100dvh - 264px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  }
  body .spviet-ai-chat-header,
  body .spviet-assistant-header,
  body [class*="spviet-ai-chat"] [class*="header"],
  body [class*="spviet-assistant"] [class*="header"]{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:56px!important;
    padding:10px 14px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  body [class*="spviet-ai-chat"] [class*="title"],
  body [class*="spviet-assistant"] [class*="title"],
  body [class*="spviet-ai-chat"] h1,
  body [class*="spviet-ai-chat"] h2,
  body [class*="spviet-assistant"] h1,
  body [class*="spviet-assistant"] h2{
    font-size:20px!important;
    line-height:1.15!important;
    margin:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body [class*="spviet-ai-chat"] [class*="close"],
  body [class*="spviet-assistant"] [class*="close"]{
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body .spviet-ai-chat-messages,
  body .spviet-assistant-messages,
  body [class*="spviet-ai-chat"] [class*="messages"],
  body [class*="spviet-assistant"] [class*="messages"],
  body [class*="spviet-ai-chat"] [class*="body"],
  body [class*="spviet-assistant"] [class*="body"]{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body .spviet-ai-chat-input,
  body .spviet-ai-chat-form,
  body .spviet-assistant-input,
  body .spviet-assistant-form,
  body [class*="spviet-ai-chat"] form,
  body [class*="spviet-assistant"] form{
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 52px!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    padding:8px 10px!important;
    overflow:hidden!important;
  }
  body .spviet-ai-chat-input input,
  body .spviet-ai-chat-input textarea,
  body .spviet-ai-chat-form input,
  body .spviet-ai-chat-form textarea,
  body .spviet-assistant-input input,
  body .spviet-assistant-input textarea,
  body .spviet-assistant-form input,
  body .spviet-assistant-form textarea,
  body [class*="spviet-ai-chat"] form input,
  body [class*="spviet-ai-chat"] form textarea,
  body [class*="spviet-assistant"] form input,
  body [class*="spviet-assistant"] form textarea{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:48px!important;
    min-height:48px!important;
    max-height:72px!important;
    box-sizing:border-box!important;
  }
  body .spviet-ai-chat-input button,
  body .spviet-ai-chat-form button,
  body .spviet-assistant-input button,
  body .spviet-assistant-form button,
  body [class*="spviet-ai-chat"] form button,
  body [class*="spviet-assistant"] form button{
    grid-column:2!important;
    position:static!important;
    transform:none!important;
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    padding:0!important;
    border-radius:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
}
@media (max-width: 640px){
  body .spviet-ai-chat-widget,
  body .spviet-ai-chatbox,
  body .spviet-ai-chat-box,
  body .spviet-chat-widget,
  body .spviet-assistant-widget,
  body .spviet-assistant-box,
  body [class*="spviet-ai-chat"][class*="widget"],
  body [class*="spviet-ai-chat"][class*="box"],
  body [class*="spviet-assistant"][class*="widget"],
  body [class*="spviet-assistant"][class*="box"]{
    left:10px!important;
    right:10px!important;
    top:calc(84px + env(safe-area-inset-top))!important;
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
    height:min(42dvh,335px)!important;
    max-height:calc(100dvh - 230px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    min-height:230px!important;
    border-radius:16px!important;
  }
  body.admin-bar .spviet-ai-chat-widget,
  body.admin-bar .spviet-ai-chatbox,
  body.admin-bar .spviet-ai-chat-box,
  body.admin-bar .spviet-chat-widget,
  body.admin-bar .spviet-assistant-widget,
  body.admin-bar .spviet-assistant-box,
  body.admin-bar [class*="spviet-ai-chat"][class*="widget"],
  body.admin-bar [class*="spviet-ai-chat"][class*="box"],
  body.admin-bar [class*="spviet-assistant"][class*="widget"],
  body.admin-bar [class*="spviet-assistant"][class*="box"]{
    top:calc(130px + env(safe-area-inset-top))!important;
    max-height:calc(100dvh - 276px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  }
  body [class*="spviet-ai-chat"] [class*="title"],
  body [class*="spviet-assistant"] [class*="title"],
  body [class*="spviet-ai-chat"] h1,
  body [class*="spviet-ai-chat"] h2,
  body [class*="spviet-assistant"] h1,
  body [class*="spviet-assistant"] h2{
    font-size:18px!important;
  }
  body .spviet-ai-chat-header,
  body .spviet-assistant-header,
  body [class*="spviet-ai-chat"] [class*="header"],
  body [class*="spviet-assistant"] [class*="header"]{
    min-height:50px!important;
    padding:8px 12px!important;
  }
  body .spviet-ai-chat-input,
  body .spviet-ai-chat-form,
  body .spviet-assistant-input,
  body .spviet-assistant-form,
  body [class*="spviet-ai-chat"] form,
  body [class*="spviet-assistant"] form{
    grid-template-columns:minmax(0,1fr) 48px!important;
    gap:7px!important;
    padding:7px 8px!important;
  }
  body [class*="spviet-ai-chat"] form button,
  body [class*="spviet-assistant"] form button,
  body .spviet-ai-chat-input button,
  body .spviet-ai-chat-form button,
  body .spviet-assistant-input button,
  body .spviet-assistant-form button{
    width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;
  }
}

/* =========================================================
 * SPVIET v9.9.31 - Mobile Chatbox Restore
 * - Tra icon chat ve dang bong tron nho goc duoi ben trai
 * - Khong cho khung do bi keo ngang tren man hinh dien thoai
 * - Khung nhap chat khong tran mat nut Gui khi ban phim mobile bat len
 * ========================================================= */
@media (max-width: 782px){
  .spviet-chat-launcher-normalized,
  .spviet-ai-chat-launcher-normalized,
  .spviet-ai-chat-bubble,
  .spviet-chat-bubble,
  .spviet-chat-launcher,
  .spviet-assistant-bubble,
  .spviet-assistant-launcher,
  .spviet-chatbot-toggle,
  .spviet-ai-chat-toggle,
  .spviet-chat-toggle,
  button[class*="chat"][class*="toggle"],
  a[class*="chat"][class*="toggle"]{
    position: fixed !important;
    left: max(16px, env(safe-area-inset-left)) !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 2147483001 !important;
    box-shadow: 0 14px 34px rgba(128,0,18,.28) !important;
    transform: none !important;
  }

  .spviet-chat-launcher-normalized::before,
  .spviet-chat-launcher-normalized::after,
  .spviet-ai-chat-launcher-normalized::before,
  .spviet-ai-chat-launcher-normalized::after{
    display:none !important;
    content:none !important;
  }

  .spviet-chat-hint-v84{
    left: 112px !important;
    right: 12px !important;
    bottom: calc(108px + env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 130px) !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    z-index: 2147483000 !important;
  }

  .spviet-mobile-chat-panel-normalized,
  .spviet-ai-mobile-panel-normalized,
  .spviet-ai-chatbox,
  .spviet-ai-chat-panel,
  .spviet-chatbox-panel,
  .spviet-assistant-panel,
  .spviet-chat-window,
  .spviet-chatbox-window,
  .spviet-ai-assistant-panel,
  .spviet-assistant-chatbox{
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(54vh, 430px) !important;
    border-radius: 18px !important;
    transform: none !important;
    overflow: hidden !important;
    z-index: 2147483002 !important;
    box-sizing: border-box !important;
  }

  .spviet-mobile-chat-panel-normalized .spviet-ai-chat-header,
  .spviet-mobile-chat-panel-normalized [class*="header"],
  .spviet-ai-mobile-panel-normalized .spviet-ai-chat-header,
  .spviet-ai-mobile-panel-normalized [class*="header"]{
    min-height: 52px !important;
    max-height: 74px !important;
    padding: 10px 52px 10px 14px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .spviet-mobile-chat-panel-normalized .spviet-ai-chat-body,
  .spviet-mobile-chat-panel-normalized [class*="messages"],
  .spviet-mobile-chat-panel-normalized [class*="body"],
  .spviet-ai-mobile-panel-normalized .spviet-ai-chat-body,
  .spviet-ai-mobile-panel-normalized [class*="messages"],
  .spviet-ai-mobile-panel-normalized [class*="body"]{
    max-height: calc(min(54vh, 430px) - 134px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  .spviet-mobile-chat-panel-normalized form,
  .spviet-mobile-chat-panel-normalized .spviet-ai-chat-input,
  .spviet-mobile-chat-panel-normalized .spviet-chat-input,
  .spviet-mobile-chat-panel-normalized [class*="input"],
  .spviet-ai-mobile-panel-normalized form,
  .spviet-ai-mobile-panel-normalized .spviet-ai-chat-input,
  .spviet-ai-mobile-panel-normalized .spviet-chat-input,
  .spviet-ai-mobile-panel-normalized [class*="input"]{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .spviet-mobile-chat-panel-normalized .spviet-ai-chat-input,
  .spviet-mobile-chat-panel-normalized .spviet-chat-input,
  .spviet-mobile-chat-panel-normalized form[class*="chat"],
  .spviet-ai-mobile-panel-normalized .spviet-ai-chat-input,
  .spviet-ai-mobile-panel-normalized .spviet-chat-input,
  .spviet-ai-mobile-panel-normalized form[class*="chat"]{
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
    position: relative !important;
  }

  .spviet-mobile-chat-panel-normalized input[type="text"],
  .spviet-mobile-chat-panel-normalized input[type="search"],
  .spviet-mobile-chat-panel-normalized textarea,
  .spviet-ai-mobile-panel-normalized input[type="text"],
  .spviet-ai-mobile-panel-normalized input[type="search"],
  .spviet-ai-mobile-panel-normalized textarea{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100vw - 102px) !important;
    box-sizing: border-box !important;
    height: 52px !important;
    max-height: 80px !important;
  }

  .spviet-mobile-chat-panel-normalized button,
  .spviet-mobile-chat-panel-normalized input[type="submit"],
  .spviet-ai-mobile-panel-normalized button,
  .spviet-ai-mobile-panel-normalized input[type="submit"]{
    flex: 0 0 54px !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  body.spviet-mobile-keyboard-open .spviet-mobile-chat-panel-normalized,
  body.spviet-mobile-keyboard-open .spviet-ai-mobile-panel-normalized{
    bottom: 8px !important;
    max-height: min(48vh, 360px) !important;
  }

  body.spviet-mobile-keyboard-open .spviet-mobile-chat-panel-normalized .spviet-ai-chat-body,
  body.spviet-mobile-keyboard-open .spviet-mobile-chat-panel-normalized [class*="messages"],
  body.spviet-mobile-keyboard-open .spviet-mobile-chat-panel-normalized [class*="body"],
  body.spviet-mobile-keyboard-open .spviet-ai-mobile-panel-normalized .spviet-ai-chat-body,
  body.spviet-mobile-keyboard-open .spviet-ai-mobile-panel-normalized [class*="messages"],
  body.spviet-mobile-keyboard-open .spviet-ai-mobile-panel-normalized [class*="body"]{
    max-height: calc(min(48vh, 360px) - 128px) !important;
  }
}


/* =========================================================
   SPVIET V9.9.32 - Mobile Stability Hotfix
   ========================================================= */
@media (max-width:1024px){

  /* Avoid Safari/iPhone freeze from excessive fixed layers */
  body,
  .spviet-site-main{
    transform:none !important;
    filter:none !important;
    will-change:auto !important;
  }

  /* Restore single floating chat bubble */
  .spviet-chat-hint-v84,
  .spviet-mobile-chat-hint,
  .spviet-floating-chat-label{
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
  }

  .spviet-floating-chat-button,
  .spviet-chat-toggle,
  .spviet-assistant-toggle,
  .spviet-chat-fab{
    position:fixed !important;
    right:14px !important;
    left:auto !important;
    bottom:92px !important;
    width:64px !important;
    height:64px !important;
    border-radius:999px !important;
    z-index:2147483200 !important;
  }

  /* Compact chat panel */
  .spviet-ai-chat-widget,
  .spviet-ai-chatbox,
  .spviet-chatbox-panel,
  .spviet-assistant-panel,
  .spviet-chat-window{
    left:10px !important;
    right:10px !important;
    width:auto !important;
    max-width:none !important;
    bottom:84px !important;
    max-height:58vh !important;
    border-radius:18px !important;
  }

  /* Keep send button visible on iPhone */
  .spviet-ai-chat-input-row,
  .spviet-chat-input-row,
  .spviet-assistant-input{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    padding:10px !important;
    box-sizing:border-box !important;
  }

  .spviet-ai-chat-input-row input,
  .spviet-chat-input-row input,
  .spviet-assistant-input input,
  .spviet-ai-chat-input-row textarea,
  .spviet-chat-input-row textarea{
    flex:1 1 auto !important;
    min-width:0 !important;
    width:1% !important;
  }

  .spviet-ai-chat-send,
  .spviet-chat-send,
  .spviet-assistant-send,
  .spviet-ai-chat-input-row button,
  .spviet-chat-input-row button{
    flex:0 0 auto !important;
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
  }

  /* Social icons block */
  .spviet-company-socials{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    margin-top:18px !important;
  }

  .spviet-company-socials a{
    width:48px !important;
    height:48px !important;
    border-radius:14px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#fff !important;
    box-shadow:0 8px 24px rgba(0,0,0,.08) !important;
    transition:.25s ease !important;
  }

  .spviet-company-socials a:hover{
    transform:translateY(-3px) scale(1.05) !important;
  }
}


/* =========================================================
   SPVIET v9.9.33 MOBILE STABILITY HOTFIX
   - Remove mobile freeze sources
   - Keep chat icon + send button inside viewport
   ========================================================= */
@media (max-width: 768px){
  html, body{visibility:visible!important; opacity:1!important; overflow-x:hidden!important; max-width:100vw!important;}
  .spviet-mobile-safe-mode *{animation-duration:.001s!important; transition-duration:.001s!important; scroll-behavior:auto!important;}
  .spviet-luxury-bg, .spviet-bg-particles, .spviet-particle, .spviet-tv-bg-effect{pointer-events:none!important;}
  iframe{max-width:100%!important;}

  .spviet-ai-chat-launcher,
  .spviet-chat-button,
  .spviet-chat-launcher,
  .spviet-floating-chat,
  [data-spviet-chat-launcher]{
    position:fixed!important;
    left:18px!important;
    right:auto!important;
    bottom:calc(92px + env(safe-area-inset-bottom))!important;
    top:auto!important;
    width:62px!important;
    height:62px!important;
    min-width:62px!important;
    max-width:62px!important;
    border-radius:999px!important;
    transform:none!important;
    z-index:99992!important;
    overflow:hidden!important;
  }

  .spviet-ai-chat-widget,
  .spviet-chat-widget,
  .spviet-chatbox,
  .spviet-assistant-panel,
  [data-spviet-chat-panel]{
    position:fixed!important;
    left:9px!important;
    right:9px!important;
    top:auto!important;
    bottom:calc(72px + env(safe-area-inset-bottom))!important;
    width:calc(100vw - 18px)!important;
    max-width:calc(100vw - 18px)!important;
    height:min(62dvh, 540px)!important;
    max-height:min(62dvh, 540px)!important;
    overflow:hidden!important;
    z-index:99994!important;
    box-sizing:border-box!important;
  }
  @supports not (height: 1dvh){
    .spviet-ai-chat-widget,
    .spviet-chat-widget,
    .spviet-chatbox,
    .spviet-assistant-panel,
    [data-spviet-chat-panel]{height:58vh!important; max-height:58vh!important;}
  }

  .spviet-ai-chat-input,
  .spviet-chat-input,
  .spviet-chat-form,
  .spviet-assistant-input{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 58px!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding-left:10px!important;
    padding-right:10px!important;
    overflow:visible!important;
  }
  .spviet-ai-chat-input input,
  .spviet-ai-chat-input textarea,
  .spviet-chat-input input,
  .spviet-chat-input textarea,
  .spviet-chat-form input,
  .spviet-chat-form textarea,
  .spviet-assistant-input input,
  .spviet-assistant-input textarea{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .spviet-ai-chat-input button,
  .spviet-chat-input button,
  .spviet-chat-form button,
  .spviet-assistant-input button,
  .spviet-ai-chat-input input[type="submit"],
  .spviet-chat-input input[type="submit"]{
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    padding-left:0!important;
    padding-right:0!important;
    box-sizing:border-box!important;
  }
}


/* =========================================================
   SPVIET v9.9.34 - MOBILE CHATBOX FINAL FIX
   - Khong lam rong nut/icon chat thanh thanh do ngang man hinh
   - Khi focus input tren iPhone/Safari, nut Gui khong bi tran khoi man hinh
   - Giu footer/header sticky, khong doi mau/layout footer cu
   ========================================================= */
@media (max-width: 782px) {
  html, body { max-width: 100%; overflow-x: hidden !important; }

  /* Widget/panel chat that opens on mobile: compact and always inside viewport */
  body .spviet-chatbox,
  body .spviet-ai-chatbox,
  body .spviet-ai-chat-widget,
  body .spviet-ai-assistant,
  body .spviet-chat-panel,
  body .spviet-chat-window,
  body [id*="spviet"][id*="chat"].is-open,
  body [class*="spviet"][class*="chat"][class*="open"] {
    max-width: calc(100vw - 18px) !important;
    width: calc(100vw - 18px) !important;
    left: 9px !important;
    right: 9px !important;
    top: auto !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    max-height: min(58vh, 430px) !important;
    height: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 18px !important;
    z-index: 999998 !important;
  }

  /* Header cua chatbox khong bi che mat */
  body .spviet-chatbox [class*="header"],
  body .spviet-ai-chatbox [class*="header"],
  body .spviet-ai-chat-widget [class*="header"],
  body .spviet-chat-panel [class*="header"],
  body .spviet-chat-window [class*="header"] {
    flex: 0 0 auto !important;
    min-height: 46px !important;
    max-height: 74px !important;
    overflow: hidden !important;
  }

  /* Vung noi dung chat duoc cuon rieng, khong day form gui ra ngoai */
  body .spviet-chatbox [class*="messages"],
  body .spviet-ai-chatbox [class*="messages"],
  body .spviet-ai-chat-widget [class*="messages"],
  body .spviet-chat-panel [class*="messages"],
  body .spviet-chat-window [class*="messages"],
  body .spviet-chatbox [class*="body"],
  body .spviet-ai-chatbox [class*="body"],
  body .spviet-ai-chat-widget [class*="body"],
  body .spviet-chat-panel [class*="body"],
  body .spviet-chat-window [class*="body"] {
    flex: 1 1 auto !important;
    min-height: 80px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Input + nut Gui: bat buoc nam cung 1 dong va khong tran ra ngoai man hinh */
  body .spviet-chatbox form,
  body .spviet-ai-chatbox form,
  body .spviet-ai-chat-widget form,
  body .spviet-chat-panel form,
  body .spviet-chat-window form,
  body .spviet-chatbox [class*="input"],
  body .spviet-ai-chatbox [class*="input"],
  body .spviet-ai-chat-widget [class*="input"],
  body .spviet-chat-panel [class*="input"],
  body .spviet-chat-window [class*="input"] {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body .spviet-chatbox input[type="text"],
  body .spviet-chatbox textarea,
  body .spviet-ai-chatbox input[type="text"],
  body .spviet-ai-chatbox textarea,
  body .spviet-ai-chat-widget input[type="text"],
  body .spviet-ai-chat-widget textarea,
  body .spviet-chat-panel input[type="text"],
  body .spviet-chat-panel textarea,
  body .spviet-chat-window input[type="text"],
  body .spviet-chat-window textarea {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body .spviet-chatbox button,
  body .spviet-ai-chatbox button,
  body .spviet-ai-chat-widget button,
  body .spviet-chat-panel button,
  body .spviet-chat-window button {
    flex: 0 0 auto !important;
    position: static !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: 68px !important;
    min-width: 48px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  /* Thanh do rong bat thuong do rule cu tao ra: an/thay bang launcher that */
  body .spviet-chat-ghostbar-fix,
  body .spviet-chat-ghostbar-fix * {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Nut ho tro/launcher dung dang compact, khong duoc keo ngang */
  body .spviet-chat-launcher,
  body .spviet-ai-chat-launcher,
  body .spviet-chat-floating-button,
  body .spviet-ai-chat-floating-button,
  body .spviet-chat-support-button,
  body .spviet-ai-chat-support-button,
  body [class*="spviet"][class*="chat"][class*="launcher"],
  body [class*="spviet"][class*="chat"][class*="float"] {
    width: auto !important;
    max-width: 156px !important;
    min-width: 54px !important;
    height: 54px !important;
    left: auto !important;
    right: 14px !important;
    top: auto !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 999px !important;
    transform: none !important;
    z-index: 999997 !important;
    overflow: hidden !important;
  }
}


/* =========================================================
   SPVIET v9.9.35 - MOBILE CHAT DOCK DRAG FIX
   - Dua icon chat mobile xuong goc duoi ben trai
   - Co the keo/th a icon trong pham vi man hinh
   - Khong anh huong footer sticky va chat panel hien co
   ========================================================= */
@media (max-width: 782px) {
  body .spviet-mobile-chat-draggable,
  body .spviet-mobile-chat-draggable[class],
  body [data-spviet-mobile-chat-drag="1"] {
    position: fixed !important;
    left: 12px !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    z-index: 999997 !important;
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    cursor: grab !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  body .spviet-mobile-chat-draggable.spviet-mobile-chat-dragging,
  body [data-spviet-mobile-chat-drag="1"].spviet-mobile-chat-dragging {
    cursor: grabbing !important;
  }

  body .spviet-mobile-chat-draggable *,
  body [data-spviet-mobile-chat-drag="1"] * {
    touch-action: none !important;
  }
}

/* SPVIET v9.9.36 company social icons */
.spviet-company-socials{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px;padding-top:16px;border-top:1px dashed rgba(155,0,24,.16)}
.spviet-company-social{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:#fff7ed;color:#9b0018;text-decoration:none;font-weight:800;border:1px solid rgba(155,0,24,.14);box-shadow:0 8px 18px rgba(155,0,24,.06)}
.spviet-company-social:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(155,0,24,.12);color:#760012}
.spviet-company-social span{width:24px;height:24px;border-radius:999px;background:#9b0018;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:14px}
@media(max-width:782px){.spviet-company-socials{gap:8px}.spviet-company-social{padding:9px 12px;font-size:14px}}

/* SPVIET v9.9.37 - Company social buttons: visible in published frontend, not only Customizer preview */
.spviet-company-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:16px;
}
.spviet-company-socials{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.spviet-social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:10px 14px;
  border-radius:999px;
  background:#fff7ec;
  border:1px solid rgba(160,0,24,.16);
  color:#9b0018;
  font-weight:900;
  text-decoration:none!important;
  box-shadow:0 10px 24px rgba(160,0,24,.10);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.spviet-social-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(160,0,24,.18);
}
.spviet-social-icon{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#a00018;
  color:#fff;
  font-size:14px;
  line-height:1;
}
.spviet-social-facebook .spviet-social-icon{background:#1877f2;}
.spviet-social-instagram .spviet-social-icon{background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);}
.spviet-social-tiktok .spviet-social-icon{background:#111;}
.spviet-social-youtube .spviet-social-icon{background:#ff0000;}
@media(max-width:767px){
  .spviet-company-actions{align-items:flex-start;}
  .spviet-company-socials{width:100%; gap:8px;}
  .spviet-social-btn{flex:1 1 calc(50% - 8px); padding:10px 8px; font-size:13px;}
}
