/* teddy.vn: boutique quà tặng. Màu giữ nhận diện web cũ (hồng #f15f8e, tím #8357ae, tím đậm #4e2f68), Nunito. */
:root {
  --vt-nhan: #f15f8e; --vt-chu: #3b2a4a; --vt-vien: #ece5ef; --vt-phu: #7a6a86;
  --hong: #f15f8e;
  --hong-dam: #d9437a;
  --hong-nhat: #fdeef3;
  --tim: #8357ae;
  --tim-dam: #4e2f68;
  --tim-nhat: #f3eef8;
  --kem: #fbf8f5;
  --chu: #2d2433;
  --chu-phu: #6f6577;
  --vien: #ece5ef;
  --trang: #fff;
  --bo: 14px;
  --bong: 0 8px 28px rgba(78, 47, 104, .10);
  --chu-tieu-de: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 Nunito, system-ui, sans-serif; color: var(--chu); background: var(--kem); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.khung { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.khung-hep { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* Thanh trên + đầu trang */
.dai-tren { background: var(--tim-dam); color: #f2e9f8; font-size: 13px; }
.dai-tren .khung { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.dai-tren a { font-weight: 700; white-space: nowrap; }
.dau { background: var(--trang); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--vien); }
.dau-trong { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 46px; width: auto; }
.tim { flex: 1; display: flex; max-width: 520px; margin-left: auto; background: var(--kem); border: 1px solid var(--vien); border-radius: 999px; overflow: hidden; }
.tim input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 16px; outline: none; }
.tim button { border: 0; background: none; padding: 0 16px; color: var(--tim); cursor: pointer; }
.gio-nut { position: relative; color: var(--tim-dam); padding: 6px; }
.gio-nut b { position: absolute; top: -2px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--hong); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; }
.nut-menu { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.nut-menu span { display: block; width: 22px; height: 2px; background: var(--tim-dam); margin: 5px 0; border-radius: 2px; }

.menu { border-top: 1px solid var(--vien); }
.menu > ul { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0 auto; }
.menu > ul > li { position: relative; }
.menu > ul > li > a { display: block; padding: 12px 18px; font-weight: 700; color: var(--tim-dam); letter-spacing: .01em; }
.menu > ul > li > a:hover { color: var(--hong); }
.mega { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--trang); border-radius: 0 0 var(--bo) var(--bo); box-shadow: var(--bong); padding: 20px 24px; gap: 32px; min-width: 460px; }
.co-con:hover .mega, .co-con:focus-within .mega { display: flex; }
.cot { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.cot a { padding: 3px 0; color: var(--chu-phu); }
.cot a:hover { color: var(--hong); }
.cot .cot-tieu { font-family: var(--chu-tieu-de); color: var(--tim-dam); font-size: 17px; margin-bottom: 4px; }

.vun { font-size: 13px; color: var(--chu-phu); padding-top: 14px; padding-bottom: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.vun i { font-style: normal; opacity: .5; }
.vun a:hover { color: var(--hong); }

/* Nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 26px; border-radius: 999px; background: var(--hong); color: #fff; font-weight: 800; border: 2px solid var(--hong); cursor: pointer; transition: background .15s; }
.nut:hover { background: var(--hong-dam); border-color: var(--hong-dam); }
.nut-vien { background: transparent; color: var(--tim-dam); border-color: var(--tim-dam); }
.nut-vien:hover { background: var(--tim-dam); color: #fff; border-color: var(--tim-dam); }
.nut-chu { border: 0; background: none; color: var(--tim); font-weight: 700; cursor: pointer; padding: 6px 0; }

/* Hero = ảnh bìa: ảnh gấu chiếm nửa phải, hoà vào nền; dải cam kết dưới */
.hero { position: relative; background: var(--hong-nhat); overflow: hidden; }
/* Ảnh bìa ngang, neo phải, cao bằng khối hero: mép trái ảnh đã cùng màu nền nên không lộ đường nối */
.bia { position: absolute; top: 0; right: 0; height: calc(100% - 56px); width: auto; max-width: none; object-fit: cover; object-position: right center; }
/* Màn 761–1240px: ảnh 58% mờ mép trái, chữ hẹp 40% để gấu không bị chữ đè */
@media (min-width: 761px) and (max-width: 1240px) {
  .hero .bia { width: 58%; object-position: right center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); }
  .hero .hero-chu { max-width: 40%; }
  .hero .hero-chu h1 { font-size: clamp(28px, 3.6vw, 42px); }
}
.hero-trong { position: relative; min-height: 500px; display: flex; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-chu { max-width: 520px; }
.nho { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: var(--tim); margin: 0 0 12px; }
.hero h1 { font-family: var(--chu-tieu-de); font-size: clamp(32px, 5vw, 56px); color: var(--tim-dam); font-weight: 600; }
.hero-chu > p:not(.nho) { font-size: 18px; color: var(--chu-phu); }
.hero-nut { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cam-ket-dai { position: relative; background: var(--tim-dam); color: #efe5f6; font-size: 14px; }
.cam-ket-dai .khung { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.cam-ket-dai b { color: #fff; }
.cam-ket-dai a { text-decoration: underline; text-underline-offset: 3px; }

/* Khối chung */
.khoi { padding-top: 48px; padding-bottom: 8px; }
.khoi-dau { text-align: center; margin-bottom: 24px; }
.khoi-dau h2 { font-family: var(--chu-tieu-de); font-weight: 600; font-size: clamp(24px, 3.2vw, 34px); color: var(--tim-dam); margin: 0; }
.khoi-dau p { color: var(--chu-phu); margin: 8px 0 0; }
.khoi-dau-ngang { display: flex; justify-content: space-between; align-items: baseline; text-align: left; gap: 12px; }
.khoi-dau-ngang a { color: var(--hong); font-weight: 700; white-space: nowrap; }

/* Thước chiều cao */
.thuoc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; background: var(--trang); border-radius: 22px; padding: 28px 20px 22px; box-shadow: var(--bong); }
.thuoc-cot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: var(--bo); transition: background .15s; }
.thuoc-cot:hover { background: var(--hong-nhat); }
.thuoc-gau { height: 160px; display: flex; align-items: flex-end; justify-content: center; width: 100%; }
.thuoc-gau svg { height: var(--cao); width: auto; fill: var(--tim); opacity: .85; transition: fill .15s; }
.thuoc-cot:hover svg { fill: var(--hong); }
.thuoc-cot strong { font-size: 17px; color: var(--tim-dam); margin-top: 10px; }
.thuoc-cot small { color: var(--chu-phu); font-size: 13px; }
.thuoc-cot em { font-style: normal; font-size: 12px; color: var(--hong); font-weight: 700; }

/* Lưới SP */
.luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.luoi-noi-bat { grid-template-columns: repeat(4, 1fr); }
.luoi-noi-bat .the-lon { grid-column: span 2; grid-row: span 2; }
.the-sp { display: flex; flex-direction: column; background: var(--trang); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.the-sp:hover { transform: translateY(-3px); box-shadow: var(--bong); }
.the-anh { position: relative; aspect-ratio: 1; background: #f6f1f4; }
.the-anh img { width: 100%; height: 100%; object-fit: cover; }
.the-lon .the-anh { aspect-ratio: auto; flex: 1; }
.the-size { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); color: var(--tim-dam); font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.the-chu { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.the-ten { font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.the-lon .the-ten { font-family: var(--chu-tieu-de); font-size: 22px; font-weight: 600; }
.the-gia { color: var(--hong); font-weight: 800; }
.cuon-ngang { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.cuon-ngang > * { scroll-snap-align: start; }

/* Dịp */
.dip { background: var(--tim-dam); color: #fff; margin-top: 48px; padding-bottom: 48px; }
.dip .khoi-dau h2 { color: #fff; }
.dip-luoi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.dip-o { border: 1px solid rgba(255, 255, 255, .25); border-radius: 18px; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; transition: background .15s; min-height: 120px; justify-content: flex-end; }
.dip-o:hover { background: rgba(255, 255, 255, .08); border-color: var(--hong); }
.dip-o strong { font-family: var(--chu-tieu-de); font-size: 20px; font-weight: 600; }
.dip-o span { font-size: 13px; opacity: .8; }

/* Dịch vụ */
.dich-vu { background: var(--trang); margin-top: 48px; padding-bottom: 48px; }
.dv-luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dv-o { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: var(--kem); }
.dv-o:hover strong { color: var(--hong); }
.dv-so { font-family: var(--chu-tieu-de); color: var(--hong); font-size: 26px; }
.dv-o strong { font-size: 18px; color: var(--tim-dam); }
.dv-o span:last-child { color: var(--chu-phu); font-size: 14px; }

/* Bài */
.luoi-bai { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.the-bai { background: var(--trang); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.the-bai-anh { aspect-ratio: 3 / 2; background: #f6f1f4; }
.the-bai-anh img { width: 100%; height: 100%; object-fit: cover; }
.the-bai-chu { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.the-bai-chu small { color: var(--tim); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.the-bai-chu strong { line-height: 1.35; }
.the-bai-chu span { color: var(--chu-phu); font-size: 14px; }
.the-bai:hover strong { color: var(--hong); }

/* Danh mục */
.dm-dau { background: linear-gradient(120deg, var(--hong-nhat), var(--tim-nhat)); padding: 36px 0 28px; text-align: center; }
.dm-dau h1 { font-family: var(--chu-tieu-de); font-weight: 600; color: var(--tim-dam); font-size: clamp(28px, 4vw, 42px); margin: 0; }
.dm-dem { color: var(--chu-phu); margin: 6px 0 0; }
.chip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip a { background: var(--trang); border: 1px solid var(--vien); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 14px; color: var(--tim-dam); }
.chip a:hover { border-color: var(--hong); color: var(--hong); }
.dm-mo-ta { padding-top: 40px; }
.thu-gon { max-height: 220px; overflow: hidden; position: relative; }
.thu-gon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--kem)); }
.thu-gon.mo { max-height: none; }
.thu-gon.mo::after { display: none; }
.rong { color: var(--chu-phu); text-align: center; padding: 40px 0; grid-column: 1 / -1; }
.rong a { color: var(--hong); font-weight: 700; }
.phan-trang { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 0; }
.phan-trang a, .phan-trang span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; background: var(--trang); font-weight: 700; }
.phan-trang span { background: var(--tim-dam); color: #fff; }
.phan-trang a:hover { color: var(--hong); }
.phan-trang i { align-self: center; font-style: normal; color: var(--chu-phu); }

/* Trang SP */
.sp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 20px; padding-bottom: 20px; align-items: start; }
.sp > * { min-width: 0; }
.sp-anh { position: sticky; top: 140px; }
.sp-anh-chinh { border-radius: 22px; overflow: hidden; background: var(--trang); aspect-ratio: 1; }
.sp-anh-chinh img { width: 100%; height: 100%; object-fit: cover; }
.sp-anh-nho { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.sp-anh-nho button { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--trang); cursor: pointer; }
.sp-anh-nho button.dang { border-color: var(--hong); }
.sp-anh-nho img { width: 100%; height: 100%; object-fit: cover; }
.sp-dm { color: var(--tim); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.sp-chu h1 { font-family: var(--chu-tieu-de); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); color: var(--tim-dam); margin-top: 8px; }
.sp-gia { font-size: 28px; margin: 8px 0 20px; }
.sp-gia b { color: var(--hong); }
.sp-gia s { color: var(--chu-phu); font-size: 18px; margin-left: 8px; }
.sp-nhan { display: block; font-weight: 800; color: var(--tim-dam); margin-bottom: 10px; }
.szs { display: flex; flex-wrap: wrap; gap: 10px; }
.sz { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 10px 14px; border: 2px solid var(--vien); border-radius: 14px; background: var(--trang); cursor: pointer; }
.sz b { font-size: 16px; color: var(--tim-dam); }
.sz small { color: var(--chu-phu); font-size: 13px; }
.sz:hover, .sz.chon, .sz[aria-pressed="true"] { border-color: var(--hong); background: var(--hong-nhat); }
.sz:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.sp-meo { font-size: 14px; color: var(--chu-phu); background: var(--tim-nhat); border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; }
.sp-mua { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sp-mua .nut { flex: 1; min-width: 150px; }
.sl { display: flex; border: 2px solid var(--vien); border-radius: 999px; overflow: hidden; background: var(--trang); }
.sl button { width: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--tim-dam); }
.sl input { width: 44px; border: 0; text-align: center; -moz-appearance: textfield; background: none; }
.sl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sp-lien-he { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-weight: 700; }
.sp-lien-he a { color: var(--tim); border-bottom: 1px dashed currentColor; }
.sp-cam-ket { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--vien); display: grid; gap: 8px; color: var(--chu-phu); }
.sp-cam-ket li::before { content: "♥"; color: var(--hong); margin-right: 10px; }
.sp-cam-ket b { color: var(--chu); }
.sp-ngan { color: var(--chu-phu); }
.sp-mo-ta { padding-top: 40px; max-width: 900px; }
.sp-mo-ta h2 { font-family: var(--chu-tieu-de); font-weight: 600; color: var(--tim-dam); }

/* Nội dung HTML từ sao lưu */
.noi-dung { background: var(--trang); border-radius: 18px; padding: 24px; overflow-wrap: anywhere; }
.noi-dung img { border-radius: 12px; margin: 12px auto; }
.noi-dung table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.noi-dung td, .noi-dung th { border: 1px solid var(--vien); padding: 8px 10px; }
.noi-dung a { color: var(--tim); text-decoration: underline; }
.noi-dung h2, .noi-dung h3 { color: var(--tim-dam); margin-top: 1.2em; }
.noi-dung figure { margin: 16px 0; }
.noi-dung figcaption { text-align: center; color: var(--chu-phu); font-size: 14px; }
.noi-dung iframe { max-width: 100%; }

/* Bài viết */
.bai { padding-top: 24px; }
.bai h1 { font-family: var(--chu-tieu-de); font-weight: 600; font-size: clamp(28px, 4vw, 42px); color: var(--tim-dam); margin-top: 8px; }
.bai-ngay { color: var(--chu-phu); font-size: 14px; }
.bai-anh { border-radius: 22px; margin: 16px 0 24px; width: 100%; }
.bai .noi-dung { font-size: 17px; line-height: 1.75; }

/* 404 */
.trang-404 { text-align: center; padding-bottom: 60px; }
.so-404 { font-family: var(--chu-tieu-de); font-size: 96px; color: var(--hong); margin: 0; line-height: 1; }
.trang-404 h1 { font-family: var(--chu-tieu-de); font-weight: 600; color: var(--tim-dam); }
.tim-lon { margin: 24px auto; max-width: 480px; background: var(--trang); }
.tim-lon button { font-weight: 800; }

/* Chân trang */
.chan { background: var(--tim-dam); color: #e7dcef; margin-top: 64px; padding: 48px 0 20px; }
.chan-luoi { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.chan img { filter: brightness(0) invert(1); opacity: .95; height: 46px; width: auto; margin-bottom: 12px; }
.chan h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }
.chan-luoi > div { display: flex; flex-direction: column; gap: 6px; }
.chan a:hover { color: #fff; }
.chan p { margin: 0 0 8px; }
.ban-quyen { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; margin-top: 32px; font-size: 13px; opacity: .8; }

/* Nút nổi */
.noi { position: fixed; right: 16px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 40; }
.noi a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-weight: 800; font-size: 13px; }
.noi-zalo { background: #0068ff; color: #fff; }
.noi-goi { background: var(--hong); color: #fff; animation: rung 2.4s infinite; }
@keyframes rung { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-14deg); } 94% { transform: rotate(14deg); } 97% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .noi-goi { animation: none; } .the-sp, .the-sp:hover { transition: none; transform: none; } }

/* Máy tính bảng */
@media (max-width: 1024px) {
  .luoi, .luoi-noi-bat { grid-template-columns: repeat(3, 1fr); }
  .cuon-ngang { grid-auto-columns: calc((100% - 40px) / 3); }
  .dip-luoi { grid-template-columns: repeat(3, 1fr); }
  .dv-luoi { grid-template-columns: repeat(2, 1fr); }
  .sp { gap: 28px; }
}

/* Điện thoại */
@media (max-width: 760px) {
  .dai-tren span { display: none; }
  .dai-tren .khung { justify-content: center; }
  .dau-trong { flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 10px; }
  .nut-menu { display: block; order: 0; }
  .logo { order: 1; margin-right: auto; }
  .logo img { height: 38px; }
  .gio-nut { order: 2; }
  .tim { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .menu { display: none; max-height: calc(100vh - 120px); overflow-y: auto; }
  .menu.mo { display: block; }
  .menu > ul { flex-direction: column; gap: 0; padding: 0 16px 12px; }
  .menu > ul > li > a { padding: 12px 0; border-bottom: 1px solid var(--vien); }
  .mega { position: static; transform: none; display: flex; flex-direction: column; box-shadow: none; padding: 8px 0 12px 12px; min-width: 0; gap: 12px; border-radius: 0; }
  .cot { min-width: 0; }
  .bia { position: static; width: 100%; height: auto; aspect-ratio: 5 / 4; object-position: right center; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
  .hero-trong { min-height: 0; padding-top: 4px; padding-bottom: 28px; }
  .hero-chu > p:not(.nho) { font-size: 16px; }
  .cam-ket-dai .khung { display: grid; grid-template-columns: 1fr 1fr; font-size: 13px; }
  .khoi { padding-top: 36px; }
  .thuoc { grid-template-columns: repeat(5, minmax(90px, 1fr)); overflow-x: auto; padding: 20px 12px 16px; gap: 6px; }
  .thuoc-gau { height: 110px; }
  .luoi, .luoi-noi-bat { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .luoi-noi-bat .the-lon { grid-column: span 2; grid-row: auto; }
  .the-lon .the-anh { aspect-ratio: 1; }
  .cuon-ngang { grid-auto-columns: 44%; }
  .the-chu { padding: 10px 12px 12px; font-size: 14px; }
  .the-lon .the-ten { font-size: 19px; }
  .dip-luoi { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dip-o { min-height: 96px; padding: 16px 14px; }
  .dv-luoi { grid-template-columns: 1fr; gap: 12px; }
  .luoi-bai { grid-template-columns: 1fr; }
  .sp { grid-template-columns: 1fr; gap: 20px; }
  .sp-anh { position: static; }
  .sp-anh-nho button { flex-basis: 60px; height: 60px; }
  .sp-mua { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sp-mua .sl { grid-column: 1 / -1; justify-self: start; }
  .sp-mua .nut { min-width: 0; padding: 12px 10px; }
  .noi-dung { padding: 16px; }
  .chan-luoi { grid-template-columns: 1fr 1fr; gap: 24px; }
  .chan-luoi > div:first-child { grid-column: 1 / -1; }
  .noi { right: 12px; bottom: 14px; }
  .noi a { width: 48px; height: 48px; }
}

/* Cam kết đầu chân trang */
.chan-cam-ket { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.chan-cam-ket a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.chan-cam-ket a:hover { background: rgba(255, 255, 255, .12); }
.chan-cam-ket b { color: #fff; font-size: 16px; }
.chan-cam-ket span { font-size: 13px; opacity: .85; }
@media (max-width: 1000px) { .chan-cam-ket { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .chan-cam-ket { grid-template-columns: 1fr 1fr; gap: 10px; } .chan-cam-ket a:last-child { grid-column: 1 / -1; } .chan-cam-ket a { padding: 12px 14px; } }

/* Chủ sở hữu + logo Bộ Công Thương (bắt buộc pháp lý) */
.chu-so-huu { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 16px; font-size: 12px; line-height: 1.6; opacity: .9; }
.chu-so-huu p { margin: 0; }
.chan .chu-so-huu img.bct { filter: none; opacity: 1; width: 150px; height: auto; margin: 0; }
.chu-so-huu + .ban-quyen { margin-top: 16px; }
.chu-so-huu { padding-right: 76px; }
.dm-mo-dau{max-width:760px;margin:.5rem 0 0;color:#5a4a66;line-height:1.6}
.dm-mo-dau p{margin:.3rem 0}

/* b15 bảng kích thước – giá (lõi _bang-size.html), ngay dưới H1 */
.bang-size { width: 100%; max-width: 420px; margin: 6px 0 14px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--vien); border-radius: 14px; overflow: hidden; font-size: 15px; background: var(--trang); }
.bang-size th { text-align: left; padding: 9px 14px; background: var(--hong-nhat); color: var(--tim-dam); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.bang-size td { padding: 9px 14px; border-top: 1px solid var(--vien); }
.bang-size td:first-child { font-weight: 700; color: var(--tim-dam); width: 30%; }
.bang-size tbody tr { cursor: pointer; }
.bang-size tbody tr:hover { background: var(--hong-nhat); }
.bang-size tr.chon { background: var(--hong-nhat); box-shadow: inset 4px 0 0 var(--hong); }
.bang-size td b { color: var(--hong); }
.bang-size s { color: var(--chu-phu); font-size: 13px; margin-left: 4px; }
.bang-size tr.het { opacity: .5; cursor: not-allowed; }
.bang-size tr.het td b { text-decoration: line-through; }
.bang-size .tt { font-size: 13px; font-weight: 600; color: #2e8b57; white-space: nowrap; }
.bang-size tr.it .tt { color: #d9822b; }
.bang-size tr.het .tt { color: var(--chu-phu); }
@media (max-width: 760px) { .bang-size { max-width: none; font-size: 14px; } }

/* b17 thẻ cam kết dưới nút mua (lõi _cam-ket.html) */
.cam-ket-the { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--vien); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam-ket-the li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--hong-nhat); }
.cam-ket-the .bt { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--trang); color: var(--hong); font-weight: 800; }
.cam-ket-the b { display: block; color: var(--tim-dam); font-size: 14px; }
.cam-ket-the small { display: block; color: var(--chu-phu); font-size: 12.5px; line-height: 1.4; }
.cam-ket-the li:first-child { grid-column: 1 / -1; }
@media (max-width: 420px) { .cam-ket-the { grid-template-columns: 1fr; } }
/* b16 ô gọi lại + b18 link chọn size */
#datNhanh .loi-dat-nhanh { max-width: none; border-radius: 14px; background: var(--trang); }
.do-size { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--hong); text-decoration: underline; }

/* Soát điện thoại 20/11 (CEO): link chân trang cao 26px, sát nhau → thưa ra cho dễ bấm; số hotline trên dải tím 21px → vùng bấm cao hơn */
@media (max-width: 760px) {
  .chan-luoi > div a { padding: 7px 0; }
  .dai-tren a, .thanh-tren a { display: inline-block; padding: 6px 0; }
}

/* Trang SP điện thoại (CEO chốt 20/11): tên + giá phải thấy ngay màn hình đầu (trước: dòng giá đầu ở y≈908/812).
   .sp-chu "tan" vào lưới (display:contents) để đưa nhóm, tên, giá lên TRÊN ảnh — kiểu Amazon; ảnh, ảnh nhỏ, bảng size, nút mua giữ thứ tự cũ bên dưới. */
@media (max-width: 760px) {
  .sp { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .sp-chu { display: contents; }
  .sp-chu > .sp-dm { order: -4; }
  .sp-chu > h1 { order: -3; font-size: 26px; margin: 4px 0 0; }
  .sp-chu > .sp-gia { order: -2; font-size: 24px; margin: 4px 0 14px; }
  .sp-anh { order: -1; margin-bottom: 20px; }
}

/* 20/11 CEO: chọn theo mục đích tặng (ảnh SP thật, bỏ icon gấu), logo chân trang, nút Zalo/Gọi theo màu web */
.md-luoi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.md-o { display: flex; flex-direction: column; background: var(--trang); border-radius: 18px; overflow: hidden; box-shadow: var(--bong); transition: transform .15s; }
.md-o:hover { transform: translateY(-3px); }
.md-anh { aspect-ratio: 1/1; background: var(--hong-nhat); }
.md-anh img { width: 100%; height: 100%; object-fit: cover; }
.md-chu { display: grid; gap: 2px; padding: 10px 12px 14px; }
.md-chu strong { color: var(--tim-dam); font-size: 15px; line-height: 1.3; }
.md-chu small { color: var(--chu-phu); font-size: 13px; }
.chan img.logo-chan { align-self: flex-start; justify-self: start; object-fit: contain; filter: none; opacity: 1; width: auto; max-width: none; height: 64px; background: var(--trang); border-radius: 14px; padding: 6px 12px; margin-bottom: 12px; }
.noi { right: 18px; bottom: 56px; gap: 12px; align-items: flex-end; }
.noi a { width: auto; height: 52px; border-radius: 999px; padding: 0 18px 0 10px; gap: 8px; font-size: 14px; font-weight: 800; animation: none; }
.noi-zalo { background: var(--trang); color: var(--tim); border: 2px solid var(--tim); --zalo-chu: #fff; }
.noi-zalo svg { color: var(--tim); }
.noi-goi { background: var(--hong); color: #fff; box-shadow: 0 6px 18px rgba(241, 95, 142, .35); }
.noi-goi svg { background: rgba(255,255,255,.22); border-radius: 50%; padding: 5px; width: 34px; height: 34px; }
@media (max-width: 1000px) { .md-luoi { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .md-luoi { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .md-chu strong { font-size: 14px; }
  body { padding-bottom: 64px; }
  .noi { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: var(--trang); box-shadow: 0 -4px 16px rgba(78, 47, 104, .12); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .noi a { flex: 1; height: 46px; justify-content: center; padding: 0 10px; font-size: 14px; box-shadow: none; }
  .noi a + a { margin-left: 8px; }
  .noi-goi span { white-space: nowrap; }
  body .loi-bao-thu { bottom: 62px; font-size: 11px; padding: 3px 8px; }
}
/* 20/11 CEO: máy tính không cần nút Gọi nổi, điện thoại giữ đủ */
.noi a.noi-goi { display: none; }
@media (max-width: 760px) { .noi a.noi-goi { display: flex; } }

/* 20/11 CEO: điện thoại đầu trang 1 dòng ☰ · logo · tìm · giỏ (trước ô tìm rơi xuống dòng 2, trống nhiều) */
@media (max-width: 760px) {
  .dau-trong { flex-wrap: nowrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .nut-menu { padding: 6px; margin-left: -6px; flex: none; }
  .logo { margin-right: 0; flex: none; }
  .logo img { height: 34px; }
  .tim { order: 2; flex: 1 1 auto; min-width: 0; margin: 0; }
  .tim input { padding: 8px 4px 8px 12px; font-size: 16px; }
  .tim button { padding: 0 10px; }
  .gio-nut { order: 3; flex: none; }
}

/* 20/11 CEO: điện thoại bỏ dải hotline trên cùng (đã có nút Gọi ở thanh dưới) */
@media (max-width: 760px) { .dai-tren { display: none; } }
