/* ============================================================
   Trang sản phẩm Basic / Premium bản MOBILE (≤767px) theo "Trang sản phẩm mobile Sovani (Basic + Premium).html ok1" (16/11/2026)
   Desktop/tablet (≥768px) giữ giao diện cũ: .svl-desktop-only hiện, .svl-mobile-only ẩn (và ngược lại ở mobile).
   Mọi class có tiền tố svl-, mọi luật nằm trong .svl nên không ảnh hưởng trang khác. Ô chạm ≥ 44px, chữ/nút giữ cỡ to.
   Font khắc tên (UVN Sang Song Nang, UTM Yen Tu) khai báo @font-face trong sovani-detail.css.
   Nạp bởi woocommerce/single-product.php; markup: template-parts/sovani-line-product.php; logic: assets/js/sovani-line.js
   ============================================================ */
.svl-mobile-only { display: none; }
@media (max-width: 767px) {
  .svl-desktop-only { display: none !important; }
  /* .svs-product-detail (sovani-detail.css, ≤768px) có đệm 32px 16px 48px: kéo khối mobile ra tràn mép */
  .svl-mobile-only { display: block; margin: -32px -16px 0; }
}
@media (max-width: 767px) {
.svl {
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-title: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ink: #181512; --text: #35302a; --muted: #666056; --dim: #999185; --line: #e6e1d9; --line-2: #ddd6c8; --field: #d9d2c7;
  --tan: #c8814a; --tan-bg: #faf6ee; --tint: #faf9f6;
  font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
.svl *, .svl *::before, .svl *::after { box-sizing: border-box; }
.svl [hidden] { display: none !important; }
.svl h1, .svl h2, .svl h3, .svl h4, .svl p, .svl ol, .svl ul, .svl li { margin: 0; padding: 0; }
.svl li { margin-bottom: 0; }
.svl button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; margin: 0; padding: 0; min-height: 0; line-height: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; border-radius: 0; }
.svl input, .svl textarea { font: inherit; margin: 0; box-shadow: none; }
.svl button:focus-visible, .svl input:focus-visible, .svl summary:focus-visible, .svl a:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
.svl a { color: inherit; }
.svl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Chuyển dòng Basic / Premium */
.svl .svl-lines { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.svl .svl-lines a { min-height: 48px; display: grid; place-items: center; font-size: 14px; color: var(--dim); border-bottom: 2px solid transparent; text-decoration: none; }
.svl .svl-lines a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--tan); }

/* 1. Tên + giải thích */
.svl .svl-head { padding: 20px 16px 14px; }
.svl h1 { font-family: var(--font); font-weight: 600; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); text-transform: none; }
.svl .svl-sub { display: block; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.6; color: var(--muted); margin-top: 2px; }
.svl .svl-intro { font-size: 14.5px; color: var(--text); line-height: 1.7; margin-top: 10px; }
.svl .svl-intro.svl-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svl .svl-more { min-height: 44px; color: var(--tan); font-weight: 700; font-size: 14px; }

/* 2. Ảnh / video: dính trên cùng (ngay dưới header) trong lúc chọn */
.svl .svl-studio { position: relative; }
.svl .svl-gal { position: sticky; top: 0; z-index: 20; background: #fff; }
.svl .svl-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 38vh; background: #f1eee9; overflow: hidden; touch-action: pan-y; container-type: inline-size; border-bottom: 1px solid var(--line); box-shadow: 0 6px 12px -10px rgba(24, 21, 18, .35); }
.svl .svl-stage > img, .svl .svl-gvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.svl .svl-gvid { background: #000; }
.svl .svl-chip, .svl .svl-stlab { position: absolute; font-size: 12px; background: rgba(255, 255, 255, .9); color: #4b443b; padding: 0 9px; border-radius: 10px; line-height: 1.7; pointer-events: none; }
.svl .svl-chip { left: 10px; bottom: 8px; }
.svl .svl-stlab { left: 10px; top: 8px; font-size: 11.5px; }
.svl .svl-cnt { position: absolute; right: 10px; bottom: 8px; font-size: 12px; background: rgba(0, 0, 0, .55); color: #fff; padding: 0 9px; border-radius: 10px; line-height: 1.7; font-variant-numeric: tabular-nums; pointer-events: none; }
.svl .svl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; font-size: 24px; line-height: 1; padding-bottom: 3px; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); z-index: 2; color: #111; }
.svl .svl-nav-p { left: 6px; } .svl .svl-nav-n { right: 6px; }
.svl .svl-stage video ~ .svl-nav { top: 40%; } /* chừa thanh điều khiển video */
/* Chữ khắc: nổi chìm, viền gạch như bản desktop; JS đặt left/top theo vị trí trên ảnh 01 */
.svl .svl-stamp { position: absolute; transform: translate(-50%, -50%); padding: .1em .3em; border: 1px dashed rgba(226, 182, 124, .7); border-radius: 4px; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 78%); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .28); color: rgba(24, 14, 8, .94); text-shadow: 0 1px 1px rgba(255, 255, 255, .62), 0 -1px 1px rgba(0, 0, 0, .55), 0 0 3px rgba(255, 255, 255, .28); white-space: nowrap; line-height: 1.2; pointer-events: none; max-width: 80%; overflow: hidden; }
.svl .svl-stamp.svl-stamp-l { transform: translateY(-50%); }
.svl .svl-stamp.svl-dk { color: rgba(236, 205, 160, .95); text-shadow: 0 1px 1px rgba(0, 0, 0, .75), 0 0 3px rgba(236, 205, 160, .25); background: radial-gradient(ellipse at center, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 78%); }
.svl .svl-stamp.svl-dim { opacity: .6; }
.svl .font-modern { font-family: 'Times New Roman', Tinos, Times, serif; font-weight: 700; }
.svl .font-classic { font-family: 'UVN Sang Song Nang', 'Playball', 'Segoe Script', cursive; font-weight: 400; }
.svl .font-script { font-family: 'UTM Yen Tu', 'Allura', 'Segoe Script', cursive; font-weight: 400; }
/* Chữ khắc trên ảnh 01: giống hệt bản desktop (.svs-engraving-overlay / .svs-engraving-stamp trong sovani-detail.css).
   .svl-eov = khung thân bao (JS đo trên ảnh rồi đặt px), cỡ chữ theo bề rộng khung (cqw). */
.svl .svl-eov { position: absolute; container-type: inline-size; pointer-events: none; z-index: 1; }
.svl .svl-estamp { position: absolute; top: var(--svl-ey, 86.5%); padding: .1em .3em; border-radius: 4px; white-space: nowrap; line-height: 1.6; transition: all .35s cubic-bezier(.16, 1, .3, 1); color: rgba(33, 18, 10, .88); mix-blend-mode: multiply; text-shadow: 0 1px 1px rgba(255, 255, 255, .36), 0 -1px 1.5px rgba(0, 0, 0, .65); border: 1px dashed rgba(200, 129, 74, .45); background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: contrast(1.15); backdrop-filter: contrast(1.15); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18); }
.svl .svl-estamp[data-position="center"] { left: 50%; transform: translate(-50%, -50%); }
.svl .svl-estamp[data-position="left"] { left: 5.5%; transform: translateY(-50%); }
.svl .svl-estamp[data-font="font-modern"] { font-family: 'Times New Roman', Tinos, Times, serif; font-weight: 700; font-size: 2.6cqw; }
.svl .svl-estamp[data-font="font-classic"] { font-family: 'UVN Sang Song Nang', 'Playball', 'Segoe Script', cursive; font-weight: 400; font-size: 2.44cqw; }
.svl .svl-estamp[data-font="font-script"] { font-family: 'UTM Yen Tu', 'Allura', 'Segoe Script', cursive; font-weight: 400; font-size: 3.19cqw; }

/* Các bước chọn */
.svl .svl-buy { padding: 0 16px 8px; }
.svl .svl-opt { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(min(75vw, 38vh) + 12px); }
.svl .svl-lab { font-size: 15px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.svl .svl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.svl .svl-pill { min-height: 46px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: 6px; font-size: 14.5px; font-weight: 500; color: #33322e; background: #fff; }
.svl .svl-pill[aria-pressed="true"] { background: var(--tan); border-color: var(--tan); color: #fff; font-weight: 600; }
.svl .svl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svl .svl-grid2 .svl-pill { padding: 0 8px; }
.svl .svl-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.svl .svl-sizes .svl-pill { padding: 0; }
.svl .svl-sizes.svl-flash .svl-pill { animation: svl-fl .9s ease; }
@keyframes svl-fl { 0% { background: #fde9cf; } 100% { background: #fff; } }
.svl .svl-hint { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-top: 10px; }
.svl .svl-err { font-size: 13px; color: #a8321f; font-weight: 600; margin-top: 8px; }
.svl .svl-price { font-size: 22px; font-weight: 700; color: var(--tan); letter-spacing: -.01em; line-height: 1.2; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.svl .svl-price.svl-pop { animation: svl-pop .35s ease; }
@keyframes svl-pop { 0% { opacity: .35; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
.svl .svl-sw { display: flex; gap: 16px; flex-wrap: wrap; }
.svl .svl-sw button { display: grid; justify-items: center; gap: 4px; min-width: 56px; }
.svl .svl-sw button i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid transparent; }
.svl .svl-sw button i b { width: 42px; height: 42px; border-radius: 50%; background: var(--sc); display: block; border: 1px solid var(--line-2); box-shadow: inset 0 0 0 3px #fff; }
.svl .svl-sw button[aria-pressed="true"] i { border-color: var(--tan); }
.svl .svl-sw button span { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.svl .svl-sw button[aria-pressed="true"] span { color: var(--ink); font-weight: 700; }
.svl .svl-picked { font-size: 14px; color: #55534e; background: var(--tan-bg); border-left: 3px solid var(--tan); padding: 10px 14px; margin-top: 14px; line-height: 1.6; }
.svl .svl-picked b { color: var(--ink); }
.svl .svl-picked small { font-size: 12.5px; color: var(--muted); }
.svl .svl-szinfo { margin-top: 12px; background: var(--tan-bg); border-left: 3px solid var(--tan); padding: 10px 14px; font-size: 14px; line-height: 1.5; color: #55534e; animation: svl-fl2 .35s ease; }
.svl .svl-szinfo div { display: flex; gap: 10px; align-items: baseline; }
.svl .svl-szinfo span { color: var(--muted); font-size: 13px; }
.svl .svl-szinfo b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes svl-fl2 { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Khắc tên */
.svl .svl-eg .svl-lab { margin-bottom: 4px; }
.svl .svl-sm { font-size: 13px; color: var(--muted); line-height: 1.65; }
.svl .svl-chk { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 15px; cursor: pointer; margin: 6px 0 0; font-weight: 400; color: var(--ink); }
.svl .svl-chk input { width: 20px; height: 20px; accent-color: var(--tan); flex-shrink: 0; margin: 0; }
.svl .svl-engbox { background: var(--tint); border: 1px solid var(--line); padding: 14px; margin-top: 6px; display: grid; gap: 14px; }
.svl .svl-feerow { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--text); }
.svl .svl-feerow b { font-size: 15px; }
.svl .svl-fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #55534e; }
.svl .svl-fld label { font-size: 13px; font-weight: 600; color: #55534e; margin: 0; }
.svl .svl-inp { width: 100%; min-height: 48px; height: auto; padding: 8px 12px; border: 1.5px solid var(--field); background: #fff; font-size: 16px; color: #111; border-radius: 6px; }
.svl .svl-inp:focus { border-color: var(--tan); outline: none; box-shadow: none; }
.svl textarea.svl-inp { min-height: 84px; padding-top: 10px; resize: vertical; line-height: 1.5; }
.svl .svl-cc { font-size: 12px; color: var(--dim); text-align: right; font-weight: 400; }
.svl .svl-fonts { display: grid; gap: 8px; }
.svl .svl-fonts button { min-height: 58px; border: 1.5px solid var(--field); border-radius: 6px; background: #fff; text-align: left; padding: 6px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.svl .svl-fonts button[aria-pressed="true"] { border-color: var(--tan); box-shadow: inset 0 0 0 1px var(--tan); background: var(--tan-bg); }
.svl .svl-ex { font-size: 20px; line-height: 1.2; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svl .svl-ex.font-classic { font-size: 22px; } .svl .svl-ex.font-script { font-size: 28px; }
.svl .svl-fn { font-size: 12.5px; color: var(--dim); flex-shrink: 0; font-weight: 400; }
/* Ô xem trước nằm sát ô nhập: bàn phím lên vẫn thấy chữ */
.svl .svl-engprev { display: flex; align-items: center; min-height: 64px; padding: 8px 16px; border-radius: 6px; background: #2b2927; overflow: hidden; }
.svl .svl-engprev.svl-c { justify-content: center; }
.svl .svl-engprev .svl-stamp { position: static; transform: none; max-width: 100%; }
.svl .svl-engprev .svl-stamp.font-modern { font-size: 20px; }
.svl .svl-engprev .svl-stamp.font-classic { font-size: 22px; }
.svl .svl-engprev .svl-stamp.font-script { font-size: 28px; }

.svl .svl-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 12px; }
.svl .svl-total span { font-size: 14px; color: var(--muted); }
.svl .svl-total b { font-size: 22px; color: var(--tan); font-variant-numeric: tabular-nums; }
.svl .svl-btn { height: 54px; width: 100%; border-radius: 4px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.svl .svl-btn:active { background: var(--tan); border-color: var(--tan); }
.svl .svl-btn:disabled { opacity: .6; }

/* Mục thu gọn (nội dung mượn từ tab / bảng size / hỏi đáp của bản desktop) */
.svl .svl-acc { padding: 28px 16px 8px; }
.svl .svl-acc > details { border-top: 1px solid var(--line); }
.svl .svl-acc > details:last-of-type { border-bottom: 1px solid var(--line); }
.svl .svl-acc > details > summary { list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 600; padding: 8px 0; color: var(--ink); }
.svl .svl-acc > details > summary::-webkit-details-marker { display: none; }
.svl .svl-acc > details > summary::after { content: "+"; font-size: 22px; color: var(--tan); font-weight: 400; line-height: 1; width: 24px; text-align: center; flex-shrink: 0; }
.svl .svl-acc > details[open] > summary::after { content: "−"; }
.svl .svl-ab { padding: 0 0 18px; font-size: 14px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.svl .svl-ab .svs-tab-panel, .svl .svl-ab .svs-seo-block { padding: 0; margin: 0; border: 0; background: none; max-width: none; }
.svl .svl-ab .svs-seo-h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* tiêu đề đã có ở dòng thu gọn; giữ H2 cho SEO */
.svl .svl-ab .svs-seo-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.svl .svl-ab table { width: 100%; border-collapse: collapse; font-size: 13px; }
.svl .svl-ab th, .svl .svl-ab td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.svl .svl-ab img { max-width: 100%; height: auto; }
.svl .svl-cross { padding: 18px 16px; font-size: 14px; color: var(--muted); }
.svl .svl-cross a { color: var(--tan); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-block; min-height: 44px; line-height: 44px; padding: 0 4px; }

/* Thanh dưới cùng */
.svl .svl-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 25; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(0, 0, 0, .08); display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.svl .svl-bar-p { flex: 1; min-width: 0; line-height: 1.3; }
.svl .svl-bar-p small { display: block; font-size: 11.5px; color: var(--dim); }
.svl .svl-bar-p b { font-size: 17px; color: var(--tan); font-variant-numeric: tabular-nums; white-space: nowrap; }
.svl .svl-bar .svl-btn { width: auto; height: 48px; padding: 0 22px; flex-shrink: 0; }

/* Màn hình đặt hàng: bước 2 (chọn máy) → bước 3 (nhận hàng) → thành công */
.svl .svl-sheet { position: fixed; inset: 0; z-index: 100000; background: #fff; overflow-y: auto; outline: none; -webkit-overflow-scrolling: touch; }
.svl .svl-sheet-in { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }
.svl .svl-sh-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); margin: 0 -16px 14px; padding: 0 6px; font-size: 13px; color: var(--dim); text-align: center; letter-spacing: .08em; text-transform: uppercase; }
.svl .svl-sh-top button { width: 44px; height: 44px; display: grid; place-items: center; font-size: 28px; line-height: 1; color: var(--ink); padding-bottom: 3px; }
.svl .svl-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 18px; }
.svl .svl-prog i { height: 3px; background: var(--line); } .svl .svl-prog i.svl-on { background: var(--tan); }
.svl .svl-sheet h2 { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 26px; line-height: 1.2; margin-bottom: 12px; color: var(--ink); }
.svl .svl-sheet .svl-picked { margin-top: 0; margin-bottom: 18px; }
.svl .svl-q { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.svl .svl-ttypes { display: grid; gap: 8px; }
.svl .svl-ttype { display: grid; gap: 2px; text-align: left; min-height: 64px; padding: 12px 16px; border: 1.5px solid var(--field); border-radius: 6px; background: #fff; }
.svl .svl-ttype b { font-size: 15px; font-weight: 600; color: var(--ink); }
.svl .svl-ttype span { font-size: 13px; color: var(--muted); }
.svl .svl-ttype:active { border-color: var(--tan); background: var(--tan-bg); }
.svl .svl-tdone { display: flex; justify-content: space-between; align-items: center; font-size: 15px; min-height: 48px; margin-bottom: 4px; }
.svl .svl-tdone button { color: var(--tan); font-weight: 700; font-size: 14px; min-height: 44px; min-width: 56px; text-align: right; }
.svl .svl-sopt { padding: 16px 0 4px; border-top: 1px solid var(--line); }
.svl .svl-sopt > strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.svl .svl-sopt .svl-mt { display: block; font-size: 15px; font-weight: 600; margin: 16px 0 10px; }
.svl .svl-how { border: 0; margin-top: 6px; }
.svl .svl-how summary { min-height: 44px; display: flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--tan); cursor: pointer; list-style: none; }
.svl .svl-how summary::-webkit-details-marker { display: none; }
.svl .svl-how p { font-size: 13.5px; color: var(--muted); line-height: 1.65; padding: 0 0 8px; }
.svl .svl-mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 6px; background: #fff; text-align: left; font-size: 14.5px; margin-bottom: 8px; color: var(--ink); }
.svl .svl-mrow[aria-pressed="true"] { background: var(--tan-bg); border-color: var(--tan); box-shadow: inset 3px 0 0 var(--tan); font-weight: 600; }
.svl .svl-mrow small { font-size: 12.5px; color: var(--dim); font-weight: 400; flex-shrink: 0; }
.svl .svl-combo { position: relative; }
.svl .svl-laplist { border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; max-height: 264px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.svl .svl-laplist h4 { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 10px 14px 4px; background: var(--tint); }
.svl .svl-laplist button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 14px; text-align: left; font-size: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.svl .svl-laplist button small { font-size: 12.5px; color: var(--dim); flex-shrink: 0; }
.svl .svl-lap-empty { font-size: 13.5px; color: var(--muted); padding: 12px 14px; }
.svl .svl-res { background: var(--tan-bg); border-left: 3px solid var(--tan); padding: 10px 14px; margin: 14px 0 4px; font-size: 14px; color: #55534e; line-height: 1.6; }
.svl .svl-res b { color: var(--ink); } .svl .svl-res small { color: var(--muted); font-size: 12.5px; }
.svl .svl-linkbtn { color: var(--tan); font-weight: 700; font-size: 14px; min-height: 48px; text-align: left; }
.svl .svl-linkbtn small { font-weight: 400; color: var(--dim); }
.svl .svl-altt { font-size: 14px; font-weight: 600; margin: 6px 0 12px; line-height: 1.5; }
.svl .svl-up { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 12px; padding: 0 14px; border: 1.5px dashed var(--line-2); border-radius: 6px; background: var(--tint); text-align: left; font-size: 14.5px; color: var(--ink); }
.svl .svl-up i { font-style: normal; font-size: 22px; color: var(--tan); line-height: 1; width: 20px; text-align: center; }
.svl .svl-up span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svl .svl-up.svl-has { border-style: solid; border-color: var(--tan); background: var(--tan-bg); }
.svl .svl-shfld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #55534e; margin: 12px 0 0; }
.svl .svl-shfld small { font-weight: 400; color: var(--dim); }
.svl .svl-shfld.svl-bad .svl-inp { border-color: #a8321f; }
.svl #svl-f-addr { min-height: 72px; }
.svl .svl-sheet .svl-err { margin-top: 12px; }
.svl .svl-go { margin-top: 18px; }
.svl .svl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.svl .svl-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--tan-bg); border: 1.5px solid var(--tan); color: var(--tan); display: grid; place-items: center; font-size: 26px; margin: 18px 0 14px; }
.svl .svl-stlist { list-style: none; counter-reset: svlst; display: grid; gap: 10px; margin: 0 0 16px; padding: 0; }
.svl .svl-stlist li { counter-increment: svlst; display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.svl .svl-stlist li::before { content: counter(svlst); width: 22px; height: 22px; border-radius: 50%; background: var(--tan-bg); border: 1px solid var(--tan); color: var(--tan); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.svl .svl-thanks { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 16px; }
/* Video hướng dẫn (đầu bước 2) */
.svl .svl-guide { margin: 0 0 14px; }
.svl .svl-guide-btn { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-align: left; font-size: 14px; color: var(--muted); }
.svl .svl-guide-btn i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; padding-left: 2px; flex-shrink: 0; }
.svl .svl-guide-btn b { color: var(--ink); font-weight: 600; }
.svl .svl-vid { position: relative; aspect-ratio: 16 / 9; background: #1d1a17; overflow: hidden; margin-top: 8px; }
.svl .svl-vid video, .svl .svl-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; border: 0; }
/* Liên hệ hỗ trợ: một hàng 3 nút */
.svl .svl-help { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.svl .svl-help-t { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.svl .svl-help-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svl .svl-help-b { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 1px solid var(--field); border-radius: 4px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.svl .svl-help-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svl .svl-help-b:active { border-color: var(--tan); color: var(--tan); }
}

/* 18/11/2026 — Khớp đúng file mẫu "Trang sản phẩm mobile Sovani (Basic + Premium).html ok1": ảnh dính chỉ bằng CSS (.gal{position:sticky;top:0}),
   header KHÔNG dính (cuộn đi mất như ở file mẫu), không transform/JS/biến lệch khung nhìn. Trên iOS, header dính + ảnh dính + html/body overflow-x:clip
   cùng lúc làm sticky bị Safari/Chrome iOS cập nhật sai nhịp (rung, header mất, thanh đáy lơ lửng khi thanh công cụ thu/hiện).
   File này chỉ nạp ở trang Basic/Premium bản mobile nên không ảnh hưởng trang khác. */
@media (max-width: 767px) {
  .svs-header { position: static !important; }
  html, body { overflow-x: visible !important; }
}

/* 18/11/2026 (2) — sticky vẫn rung trên iPhone dù đã giống hệt file mẫu → giữ mọi thứ như file mẫu, riêng ảnh ghim bằng position:fixed
   (bản fixed là bản duy nhất người dùng xác nhận hết rung). JS (pinUpdate) chỉ đổi 3 trạng thái: trong dòng → svl-pinned → svl-pinend.
   Không có JS thì .svl-gal vẫn sticky như file mẫu. */
@media (max-width: 767px) {
  .svl .svl-gal.svl-pinjs { position: static; }
  .svl .svl-stage.svl-pinned { position: fixed; top: var(--svl-fixt, 0px); left: 0; width: 100%; z-index: 20; }
  .svl .svl-stage.svl-pinend { position: absolute; left: 0; bottom: 0; width: 100%; z-index: 20; }
  /* Bù độ lệch khi thanh công cụ trình duyệt ẩn (đo bằng điểm mốc trong fixUpdate). Bằng 0 thì không đổi gì. */
  .svl .svl-bar { bottom: calc(0px - var(--svl-fixb, 0px)); }
  .svl .svl-sheet { top: var(--svl-fixt, 0px); bottom: calc(0px - var(--svl-fixb, 0px)); }
}

/* 30/11: chữ khắc xem trước trên ảnh: không nhỏ quá, da tối thì chữ sáng để thấy được; ẩn thanh dưới + nút hỗ trợ khi đang gõ */
@media (max-width: 767px) {
  .svl .svl-estamp[data-font="font-modern"] { font-size: max(2.6cqw, 9px); }
  .svl .svl-estamp[data-font="font-classic"] { font-size: max(2.44cqw, 10px); }
  .svl .svl-estamp[data-font="font-script"] { font-size: max(3.19cqw, 12px); }
  .svl .svl-estamp.svl-edk { color: rgba(255, 238, 214, .7); mix-blend-mode: normal; text-shadow: 0 -1px 0 rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.12); }
  body.svl-kb #svl-bar, body.svl-kb #svhFab { display: none !important; }
}

/* 30/11 tối (2): lưu ý cọc 2 dòng trong ô khắc tên; ô nhập chữ to hơn; thanh dưới chia đôi giá | nút, vuông, cố định */
@media (max-width: 767px) {
  .svl .svl-depnote { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fff7ee; border: 1px solid #e8c9a6; font-size: 14.5px; line-height: 1.55; color: #35302a; }
  .svl .svl-depnote p { margin: 0; }
  .svl .svl-depnote p + p { margin-top: 6px; }
  .svl .svl-depnote b { color: #9a4b12; }
  .svl #svl-eg-panel { grid-template-columns: minmax(0, 1fr); }
  .svl #svl-fonts button, .svl #svl-fonts .svl-ex { min-width: 0; }
  .svl #svl-eg-text { height: 54px; font-size: 18px; padding: 0 14px; }
  .svl .svl-bar { padding: 0 !important; gap: 0 !important; align-items: stretch; }
  .svl .svl-bar-p { flex: 1 1 50%; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: center; }
  .svl .svl-bar .svl-btn { flex: 1 1 50%; width: 50%; height: auto; min-height: 64px; padding: 0 10px calc(env(safe-area-inset-bottom, 0px)); border-radius: 0; font-size: 14px; letter-spacing: 0; }
}

/* 30/11 21h45: lưu ý khắc tên trên ô chọn; thanh dưới cố định chiều cao; ô Hỗ trợ đứng yên */
@media (max-width: 767px) {
  .svl .svl-depnote .svl-dn-h { font-weight: 700; color: #9a4b12; margin: 0 0 4px; }
  .svl .svl-depnote ol { margin: 0; padding-left: 20px; list-style: decimal; }
  .svl .svl-depnote li { display: list-item; margin: 0 0 6px; }
  .svl .svl-depnote li:last-child { margin: 0; }
  .svl .svl-bar { bottom: 0 !important; height: calc(60px + env(safe-area-inset-bottom, 0px)) !important; padding: 0 0 env(safe-area-inset-bottom, 0px) !important; align-items: stretch; }
  .svl .svl-bar-p { height: 60px; padding: 0 16px !important; }
  .svl .svl-bar .svl-btn { height: 60px !important; min-height: 60px !important; padding: 0 10px !important; }
  body.single-product #svhFab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; transform: none !important; transition: none !important; }
  #svTrustBuy p:last-child { display: none; }
}

/* 03/12: giá ở thanh dưới không bị cắt chữ trên điện thoại hẹp */
@media (max-width:767px){#svl-bar b{font-size:clamp(12px,3.9vw,17px);white-space:nowrap}}
@media (max-width:767px){#svl-fonts .svl-ex{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2}} /* 03/12: chữ mẫu khắc không bị cắt */
