/* Chép từ kyma-next/app/globals.css */

/* Roboto tự host (wwwroot/fonts, từ bản Google Fonts v51). Từ 24/11: mỗi độ đậm MỘT file chứa đủ chữ Latin + tiếng Việt
   (roboto-vi-{400..800}.woff2, tạo bằng tools/font/build-roboto.py — nét giống bản biến thiên cũ ở cùng độ đậm). Trước đó là font biến thiên
   chia 3 file theo unicode-range: chữ tiếng Việt nhảy qua lại giữa 3 file (a / ả / ơ ở 3 file khác nhau) làm trình duyệt dựng chữ rất chậm
   — đo điện thoại: bố cục trang SP −435 ms, LCP −280 ms. Chữ Latin mở rộng hiếm gặp (Ba Lan, Séc…: Ł, č, ő) là HỌ FONT RIÊNG "Roboto Ext"
   (file biến thiên cũ, unicode-range = phần build-roboto.py in ra) đứng sau Roboto trong font-family của body: chỉ tải khi trang có chữ đó.
   KHÔNG khai file này chung họ "Roboto" kèm unicode-range: đo 24/11 trình duyệt dò từng ký tự qua các khoảng, bố cục chậm thêm ~150 ms.
   ?v= để giữ cache 1 năm; đổi file font thì tăng v (và preload trong _Layout). Trang quản trị (admin.css) vẫn dùng 3 file cũ. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/roboto-vi-400.woff2?v=1) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/roboto-vi-500.woff2?v=1) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/roboto-vi-600.woff2?v=1) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/roboto-vi-700.woff2?v=1) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/roboto-vi-800.woff2?v=1) format("woff2"); }
@font-face { font-family: "Roboto Ext"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/roboto-latin-ext.woff2?v=51) format("woff2"); unicode-range: U+0100-0101, U+0104-010F, U+0112-0127, U+012A-0130, U+0132-0151, U+0154-0167, U+016A-017F, U+018F, U+0192, U+01F0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+02C7, U+02C9, U+02DD, U+02F3, U+1E00-1E01, U+1E3E-1E3F, U+1E80-1E85, U+1E9E, U+2020, U+20A3-20A4, U+20A6-20AA, U+20B1, U+20B9-20BA, U+20BC-20BD, U+2113; }
/* Font dự phòng trong lúc chờ Roboto: Arial chỉnh cho bằng khổ chữ Roboto -> đổi font không làm chữ / header xê dịch */
@font-face { font-family: "Roboto Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 100.3%; ascent-override: 92.49%; descent-override: 24.34%; line-gap-override: 0%; }
:root {
  --brand: #d83b00;       /* màu chính (đủ tương phản 4.5:1 với chữ trắng / nền trắng - WCAG AA) */
  --brand-dark: #b83200;
  --brand-soft: #fff1ea;  /* nền nhạt cùng tông */
  --orange: var(--brand);
  --red: #c81e16;
  --blue: #1763c4;
  --link: #1763c4;
  --text: #222;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #f4f5f7;
  --card: #fff;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; } /* điện thoại: bỏ lớp mờ khi chạm link / nút */
/* Safari iPhone (04/12): chạm nhanh hai lần vào nút / link (mũi tên thanh trượt, tăng giảm số lượng…) không phóng to trang;
   vẫn cuộn và chụm hai ngón để phóng to như thường */
a, button, summary, label, input, select, textarea, [role="button"] { touch-action: manipulation; }
body { margin: 0; font-family: Roboto, "Roboto Ext", "Roboto Fallback", Arial, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
/* Nội dung rộng đúng 1200px (1232 - 2 x 16px lề) */
.container { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.link { color: var(--link); }
.price { color: var(--red); font-weight: 700; }
s { color: var(--muted); font-size: 12px; }
.icon { flex: none; vertical-align: middle; }
.link-btn { display: block; background: none; border: 0; color: var(--link); font-size: 13px; padding: 10px 0 0; }
.link-btn.center { margin: 0 auto; text-align: center; }
.btn-primary { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 6px; padding: 8px 18px; font-weight: 500; font-size: 13px; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Thumb placeholder ---------- */
.thumb { display: block; width: 100%; height: 100%; object-fit: contain; }
.thumb--placeholder { display: flex; align-items: center; justify-content: center; background: #fafafa; }
.thumb--placeholder svg { width: 62%; max-width: 90px; fill: #2b2b2b; }
.thumb--placeholder .lens { fill: #555; }
.thumb--placeholder .glass { fill: #6b5bd6; }

/* ---------- Header ---------- */
/* ---------- Header (cài đặt tại /admin/header: --hd-bg = màu menu danh mục, --hd-fg = chữ trên menu) ---------- */
.site-header { --hd-bg: var(--brand); --hd-fg: #fff; }
/* Dải trên: điện thoại + link nhanh */
.topbar { background: #f7f7f7; border-bottom: 1px solid #ececec; font-size: 13px; color: #222; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar__text { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #222; min-width: 0; }
.topbar__text span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__text:hover { color: #000; }
.topbar__phone { width: 16px; height: 16px; flex: none; border-radius: 50%; background: #f7941d; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.topbar__links { display: flex; gap: 16px; flex: none; }
.topbar__links a { color: #222; font-weight: 500; }
.topbar__links a:hover { color: var(--brand-dark); }
/* Hàng chính nền trắng (bám đầu trang khi cuộn cùng menu) */
.headbar { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 #eee; }
.headmain__row { display: flex; align-items: center; gap: 28px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; flex: none; color: #222; }
.logo__img { width: 72px; height: 72px; display: block; object-fit: contain; }
.logo__text { font-weight: 800; font-size: 26px; font-style: italic; letter-spacing: -.5px; line-height: 1; }
/* Logo header không nháy (04/12, người dùng: "thi thoảng logo bị nháy"): /logo.png là file riêng — lúc ảnh về chậm một nhịp (hỏi lại máy chủ,
   đọc từ đĩa) thì ô logo trống (điện thoại: vòng tròn trắng) rồi logo mới hiện. Nhúng SẴN chính file đó làm nền của thẻ <img>: CSS chặn vẽ
   nên logo có ngay từ lần vẽ đầu, ảnh thật về thì vẽ chồng lên y hệt. Chỉ gắn class logo-kyma khi dùng logo mặc định (_Header / _NewsHeader);
   logo đặt riêng ở Quản trị › Header không dùng. ĐỔI wwwroot/logo.png thì phải tạo lại chuỗi này: tools\logo-css.ps1 */
img.logo-kyma { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAABUDSURBVHhe7Z0JfBRF1sBfVc+ZBJJACCA35kYMcimXEBQ8UPGCkHCtiOj6ibcrsCLgrXisq+KKisqNQRAF5RKBIAiIXCGBBJVwCuGYnHN0d9VX1SmjIZNkZpKZacD/7wf0e93DTNfrOl7Vq9cILlBo376GwhZnGyguR4gkYaNZwrSUEFlS5dK18GvJ0AxQxaUXFLo2CB3XJaSosKQTxTQZAU6kQGPYL27NfnRzCigSYYzAaKYgGfh9UFBlAJcLUUIIu+4MonCcAuRjDHnss9mUot3hMt6LMrJd5d+gP3RlEDI+xlx01tAXExhAEfRjhdkJN2sjSW0SALeIAXYMOOoywJHRgBpEArKEIkDn3QJlRV9WTEnRWaDnTgIpOAbk93wgRw+Cmp8D5PQJJ0J0O7tyvUrp6kgleQvKyNBNbQq6QXJvjDE3a2y4mRKaygr3ZtwyJsxwZW+Qkq4GQ+xVCIWFiyvrB2IroOqBHaDs2wrKnkxusDOsbn0lIbTgWznn+2A3dUEzSGFqQhxriv7JDkdKbRMbG3veQo3dByIc3ar8ggChHj5A5W2rkbJ5OZCTh4+wGjbLQGFm6MIDx8UlASXgBilKj+sFgJ+m5pBBxj63YVP/VOBNUvChoOzfAfJ3i8C1daUMirxQovjVBgtz9okLAkLADGJLi+3OOuYXUXjU9aabRoHp+mGAQhqKs/qCnDsFrpWzwbV2IQF7SQYQ9Gz4ov254rRf8btBTg+PaSkR6TUcGj7MfNt9YBo4HCGzVZzVN7TYBs7lH1LXqrkKdbnepybzlMjPdtvEab/gN4PQISAVmRLGA5KeN16XGmq5ezzroCPE2QsLcvo4OOZPp8rWlafY6O+xiHn7F4hT9Y5fDGIbkRQDRJ0ttU26xjr2eZDadQh4X+UPlD2bqH3WVEROHVsmSa5xDeb+ekqc0i+FaQmjCkd0KLYvfodQRaYXG8ReSss+mkwK0xNO2IYlDBC3rT/okCTTubT4D4rG96PygR1E/P6LFte21aRwbDfFlh7/DHNg660FqJf/qCgtLoogvNSQ1L1XyPi3EGrYSJy5uCEn86HszfFAjuZlNHCVjMaLj9rFKZ+ps0Fs6bHtmV+x0pQyNMZ6z7MIJIM4c2lA7aVgf+dxUHdv3Exc+NaIxdlnxSmfqJNBioYnJbFWdY357vGXme94UGgvQVQV7B8/C/KGL7IkozQg7LPs38UZr/HZIMXDEjuomK6zjpoUbbphpNBewlAKjjkvg3PlnAMGE+7nq1F8Mggf1iJCN1pGTWpuumGE0P4NxzHnJe7lZ4GE+oXP2X9GqD3Ga4P8PuyKpmakbLamPtrePPh+ob10yM/Phy1btrAKQVitAOjcpQvEx8eLswxWU+wfPgOuDV9saegqva4+OvpqoaPbWGxp8T+WfTLtoh/Wng8hhC5YMJ+uXrWKynK5f6WqKs3MzKSzZs2q0GkoCi19bRy1pSVkeDsklsS/HvFYh2YfG5J73xzy4GsIEBbaS4OlS5dC927doaCgANasWQ3bt2+H4uIi6NcvBVq1agVLliyB5OTk8osxBkPn/qDs/D7J3hqrr2Sd3lh+onY8LlXmAD2Ao1uPCnnoDQTYKzte8JSWloIsu6BN27awfv16sFpDID4uDjIyFsOqVasgKioKoqOj4fjxP5dQkDUUQh5/F1Bog6m24QkDhbpWPDJI8YiEK5DB9GbIw2+xL6jfFbwLgd27d0P37lcLCaBr165w/YAB0L9/fzj022+ark+fPrBt2zbt+A9w09ZgHfciYn3N7GLW9wp1jdRqED4lQlSYax76qEVq10FoLy140xQe/ufazeTJz8DQoUNYM7YEbr/jDk0XGhoKdnuZdvxXjN0GIFP/1GiKlZlCVSO1dji29IQphvjOU0Inz/G533B+/hYbCs4RUvWw6g1h72wQku+QgqNQ+mwq+2IvBzhmK4Q+twhwk5ZCUU529j5W2A7owkZUEydMgNRh7P9mRff669Nh9uw5rMvAcPToUcjLy4OUlJTyD/0F6iiDkomDgZw8MiJiwYF5Qu2WGku4YHh8PGuqJlrGvlCnTpyNOoCywqn9j0N8og4QAvb3JwDlUSduv6P6P+YhD1cxBicxMQl+/nmHkFihsT60U6dOrDNvDcuWfanp1q37Dnr06KEdnw+yhIB1zDQKCL1pS+8YKdRuqbGUTRT9x3TLGJN0WTuh0T/O5R8BjyrxFkPnFODr++5ACEHPnr20JuqJJ5+o8DsmT57MjNBTM0ZMTCxYLBZN7w5Dx57IeM1NTRC4nhMqt1RrEOZv3IAio2803zbO5+mVQKMe2gfOL94Vkueg8MZgve95IbmnQ4cOkJTUAb788kvYsGEDZO3dC1u3boUVK5ZDRHgEM1hPcWX1WNKfQmC03F/IWh6hqoJbg3Bnhj0UL5nvGk8vlPVvcDnAPuNfAIosFJ5jve8FQA0bC6l6eM0YO/Y+rbliZQRxbOh7771jNW/dE3Dj5mC6caQBKKrW+m4NYkuLG4ybtulsuvaOC6Z2OBa8DuTYr0LyHNN1qWC4qp+QPIP7HB07doQWLVoIjeeYbxmLwBp615n0+I5CVQm3BsEITTTdNo758ReGA6js2QSuNfOF5Dm4eVswD39aSIGBR2KaBqRjAyC3X1zFIGfT4nqjiOjupt63CY2+oSU2sM+cxA54I+IFkgGsD74GwWiSteUKg3EoD5ESqgqqGERC6P94NWYfEBp94/h4CtBzBULyHPOdD4LU3m2r4XdwRBNgIy6jkRiqTJdXMsixtLgowIY7jClDhEbfyBuXgrxttZA8R4q7CtjoUUjBwcgfegT30CFDKvULlQwSinCq4cpeZh7ur3e4N+6Y/aKQPAdZQsH6z1fZnQe3fzTEdeZ9WItCw57rhUqjcpNFIc3Y81YvG+MgQFTmjT+tBRh4i2XUJAh0hH118Ih/DGiYEDUqDHJqeEJzZDT1YB6r7oe65d74z0LyHGO3AWDse6eQgo/h6huYS0Jvo1P6VoTqVBjEQtHNUlJ3xOfx9Yz6G/fG3xOS5yDWkVrunSYkfSC1iEGoaZvIc7knewnVnwahQAcakvsISZ9Q7o2/74M3jpgvdv9L2jY4vcHLXEJQsYClGYRPlbBhfD9Dh2s0pV5x+uqNDxwOfJucHjEkXc0rQ8WcvWaQgtSEWBTWsInUMla3/YfP3niLy8Ey7Akh6Q8pvgsb/aLOv41uo00VawYxYdpNan+FVrX1CC0+B/YPfPDGmXPLvXEwVT8tHmxww0YINWlpauQM0SIkNINghJKlNon8UJc4ZjFv3OaDN373eJDaJglJv0htE4HvxefHmkEI0CTcMpYf6o5yb3yNkDxHSugK5kH3Cknf4JYx/B/tydEMwojlm/L1hs/eeEgD4Y3/cXv6Bjdry/6mWo3AfITFvJM2uIn3c/t+pQ7eOP9M6ZRhUDo1Dewz/60NBsgRvolWn5MQvOxZ763VCFw0MqERMhjMODxKVz2682vfvHENyhph1ueoebtA3rAEHJ8+DyUTBkPJw/3BMfdlnixAXKgPtLlDCpdpx0ghTVBYBI+I0E7qAc0bX+K9N14b5Mzv4Pp2NpROvB3KXhgFStYWcSa48B1nFKEIPoWCKcYRKLShbqyheeM+ro17g5KzHcpeHgNlr44FcuKQ0AYHZA5BCEuoOPdEBMYqCeEBYnpB88aPe++N+4qy5wcoYTXG9e2n7GkIUh/DWydmA4PBEIJV5jaBZNBFb0ftJT5543VGdrK+5VUoe+sh7TcEA2QwUhdlPrqQ9QHhm2CC92woO9ZB2XPDgZ4LfD6AP+4aA5YUNsTU1QgrmKiHc6H0uRFsAHBCaAKEqgCVVQUVjojviZvHbAp7bbnfjOKYPx1cK2YJqX7gjqwhsTvgtola2D8PdEMmc/mNlRQCOX1MK1w1dweov2Rpfo038BCh0GfnaSOgQFA0qiNzCsuaIr6bljaO3tvg3fW6NwhPXmNKuQuMfW7XUv55Cg+8ln/8hqdbAnLsF6GtHSkmGUKf+QzAyAztR/jIsvieq+DkWcXC+hDpNC05J07pEx49bh7yCIS9/R2Yhz3plTE4/Ck3DRwBYa9+DdaH32I1yrM1dfXgbrAzp9Lf0OJzvAspjlt50InD1KzTVHaqpMSmi5HW+Riu6AGhry0H8+0PaIapE2x4abz6Rs0wpkFjNLk25PVfsNr1rZD8A0+YRoFqnRZGGcB6dHSUFhzTTuoJboSQCR9pQcr1CmuCLOlPQcgTMwBZw4SyevjUC1+T8Rf09HFAFA7z4/JhL6UHyUlN1gfsybWMmao1U/7c7cuDrENYH1HbWjs3hjPjbSHVPzyNLbvRg/y4/G4RylGParIusIycoEWlBwK+gBXy9Ie1Noeu9YtZwflnikXlAw1Ec/ixZhBCYQ85vJ8fBh1uCNMNo4QUGPhmVm39pKY+RVW1GWh/QPJzmD3Qbn6sGcQoqdvVX/byw6DCV84sIycKKbAYul6vZUqtCXnzcqClhUKqH/hUjXriN+LCyk4uawYJdXbKIucKSsipI8EbabGn08oD2fw85q8J87AnANUU1+xygrylfkdcat5uigjJipp3sIjLmkG03OeIZirZW7kYFHiYpxTXWUjBgQdiW+4eLyT3KNu9j7avCV7mlELFXvDyTp2BEFrDY5+ChamOmYX4CxGKi4tBURSh8Q1tFqBRMyFVRdn/E/Os6y/Bj7J3E28cKqI4KgwCBK1Q9vyAqJ8XhtzBpyh8DdfZu3cvPPXUk9CvX1/o3z8FevfuBffc8w9YsWIFe/J8aIElAxhT7hKCG1j5kHrqb/kEJjmUY28YFrpOqP40SPiCnDxaVpyl7N0c8H7E2ONmceQdn3wyC8aOvVdLCGO3lz+1KhsNZWVlwdSpU+Cxxx4Fh8P7ZATGHoPEkXvUQ9oItc7I29dwD301mrmjIifHnzWEg2CRssV/s77VYUi+Vhx5zldffQUzZszQmqrq+OGHH2DatKlC8hzcvB3g6KoZHf6gvpZ8lc0rQAK8UIgalQxCVZgrb19LWE0RGv/DvWQ+1e0NZWVl8Pbb/xFSzaxdu1bLbeUtUuxV4qgq5Gzd10q4M6j8sqcw1FX8lVBpVDJI5KIDh8BpXytvqnSNX5HKo/a8IjMzE4qKtFGiR/BsC96CW1UfycmT9NcVed3nPCBu3vkpACs3WQyE6AxtXTtAS6nIh4nDvFzv3hyR6+X1nBonNF11S5JDHaXg2riUKgp6X6gqqGKQlXLucnLsl4PyzvVC419QqPfvEJG9HNrKsvdD4Zp+l0+jt7/g+j4DoLRoTePP92cJVQVVDMLfwUQRmu5a9j+h8TM+7IZt2bL6DtcdrVp5d72Gn3bpUtkJrhWfAEbwilBVoopBOOEy/lTJ253PaknwplJqgKfTk7xI+9Gvn3e5TPyJ67tFlJw9mdlg/oHvhaoSbg3C3/NHEUx1LnoTeRscEAiaNWsGd95Zg/P2F9q1awc33eSbn1Pf8NGr88v/sUKnk4SqCm4NwomIPTBbPZy7y7Xuc13WkkceeQS6desmJPfwbKHTp08Ho1EfaUKcS2dQWnR2acMFudXOUdXoBBalxfWmYZEbw15fgbAH+aSqQ83bybxb9+stUpt4nycV+bwV99bnz58PJSV/Rhzy5uy6667XPPWoqCZC6x08MFv52W2romX08XZ2QT2SC6X/vrPM5FI6WLl7UQ21euW2tPiPjD0HjdHy9eoUp9MJ+/bt05Ich4WFapnfIiN1tAWaNfslU9OpenDPpIgF+9125h5DRydH2NISjrp+XHnJpRevLxzLPiC29ISf+AuVRbFWS7V9yB8g/po4DGPsH0+hAQ+vvAhQf90LzsXv2BWER6ENG2p1iGo1CCdi3v7VtLTwDfs7j1N/79u4mODLvWX/fRyoqjwWNS87W6hrxCODcMJjm05Scndm2me/pMtRl+5g/UbZu09SUnBkdsT8/R5lteZ4bBA0bYMiSfIQ19oFh12r5vxtlFpwzH2Fqns2bS9ylT4gVB7hsUE4/EWKqopuccx5pVDetkpo/+Z8nMs/BtequfmSjAe39vKFLl4ZhMMnxBClg+3vPWXn7yP/m8owR5pvyzsFiN4YluH7y8G8pjA97qbC0ckOeXemGNz9jfO7RbRweMKZkhGx4s0uAUYzyqiOZa6tq8RPunRxfPMJtaUnnipJT+okiic4FKUnXls4POmcc+WcS9NxJCq1z32FFKbF559Oja1zBp96mQ7hb+Bhv2u5cUBaa+uoSQikCyPnb13hYaD2Gf+i8s/rdikucmvU4rw67+mot/mp4hFXRhPVmSHFd+5jfehNhBtXH2x2McAnC+1vPwrkxG+fl2HTmOZz93iflMXf/DSui9GWljC9aNzVKutXLs4mjBDqWDWX2EYnOwuHJTzKbrteJ139MoPL3z0CCM0y9hzU3Dpy0kXz9mhy6gjYP3qWqllbcghGIyPn7fcxO071+G1KvfzVPvIbKCz8H5ahj4EpZQi6UPJXnU/5Ovgs6vzyA4XIjjdsRse0dp/l18P7mariN4P8wVk2CpMo/S9uE59sTn2cGjtd6/fvrDcIAdfm5dSZ8TYiBce/V1V42F2kSH0SkMKhQ0CymeJHYwJTpLirWptufwCMPHzUg12wQUFVtH3tzmUzgRw7mMVK6d/h8w4EJHowoCWSe2OMObqRdA+i6Cnc8vL2PJ+usdetHu2EDQS06Ay41i8B19oFQE4f3yVR/HJYfM5iNA2qDyCuZ4LyiGo1xpgwGFN4ECzWFGP3gZhHnPM96Xw7QCDhr8tTdm3UtqspO9fLoMhfY0rfa7Awt2KLQCAJepthS49tz6wwEiik4rCGidKVvSnPQs0zPuOoy/zw+yioxw9RNftHUHZnlmeVczp+YlVgoUvB85sGckLQDbpqxIvS4hIoQoMIhYHsh/XCjZuHSJd3BKlNgpZOgyecYUbiWUdr/92UAiktpDwhAt/OzLd9k0M5wDe30uIzPAvARuZVrCaKYUWjjGzdbNLXlUH+Cs8/WJh3Mpk1H12ZkZLZg51IAWLYL26OzFbMtzFwwyCThYLBWH4fikyps0wLSKNFZxG4nDK7xaME0YMIUDYCugsTvJ31CzmB7Be8QbcGqQ4+G9C2tLCpRFEUpVI4psSKEDLysH2GTAguM0rEhoxSwTdl2QU8Vll89AIA4P8B4hooJ5Y6xxwAAAAASUVORK5CYII=); background-size: contain; background-position: center; background-repeat: no-repeat; }
/* Ô tìm kiếm: viền xám, kính lúp bên phải */
.search { flex: 1 1 360px; max-width: 560px; position: relative; display: flex; align-items: center; height: 50px; background: #fff; border: 1px solid #c9c9c9; border-radius: 8px; padding: 0 6px 0 16px; color: #333; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; font: inherit; font-size: 16px; outline: none; background: none; color: #222; }
.search input::placeholder { color: #999; }
.search__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 0; background: none; color: #888; cursor: pointer; }
.search__icon:hover { color: #333; }
.search:focus-within { border-color: var(--hd-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hd-bg) 18%, transparent); }
/* Mã giảm giá | FlashSale · Tài khoản · Giỏ hàng */
.headmain__actions { display: flex; align-items: center; gap: 26px; margin-left: auto; color: #333; }
.headmain__actions a { color: #333; white-space: nowrap; }
.headmain__actions a:hover { color: #000; }
.hd-two { display: flex; flex-direction: column; line-height: 1.25; }
.hd-two small { font-size: 12px; color: #666; }
.hd-two b { font-size: 15px; font-weight: 500; }
.hd-coupon { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.hd-coupon b { font-size: 14px; color: #555; }
.hd-coupon span { font-size: 12px; color: #c2410c; font-weight: 600; } /* cam đậm: tương phản 5.2:1 */
.hd-sep { width: 1px; height: 40px; background: #d9d9d9; margin: 0 -8px; }
.hd-flash { display: flex; align-items: center; gap: 6px; }
.hd-flash__icon { color: #ff3b30; display: inline-flex; transform: rotate(-20deg); }
.hd-flash__icon .icon { fill: #ff4d4f; stroke: #fff; }
.hd-flash b { color: #d70015; font-weight: 700; font-size: 14px; } /* đỏ đậm: tương phản 5.4:1 (WCAG AA) */
.hd-account, .hd-action { display: flex; align-items: center; gap: 8px; }
/* Tên khách do site.js điền sau khi trang hiện: giữ cố định độ rộng để FlashSale / giỏ hàng không bị đẩy (nháy) */
/* 19/11: tên được vẽ ngay từ đầu (view.js) nên ô co giãn theo tên: tối thiểu 112px (như cũ khi chưa đăng nhập), tối đa 172px */
.hd-account .hd-two { width: max-content; min-width: 112px; max-width: 172px; }
.hd-account [data-account-name] { display: inline-block; max-width: 152px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* Khách đã đăng nhập: view.js (trong <head>) đặt html.has-acc + --acc-name -> vẽ tên ngay, ẩn chữ mặc định; site.js điền chữ thật rồi bỏ lớp này */
html.has-acc .hd-account [data-account-name] { font-size: 0; }
html.has-acc .hd-account [data-account-name]::after { content: var(--acc-name); display: inline-block; max-width: 152px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-size: 15px; }
.hd-account__icon { color: #666; display: inline-flex; }
.hd-account__icon .icon { fill: #666; stroke: #fff; }
.hd-cart { display: flex; align-items: flex-end; gap: 6px; }
.hd-cart__icon { position: relative; display: inline-flex; color: #666; }
.hd-cart__label { font-size: 15px; padding-bottom: 2px; }
.hd-caret { font-size: 11px; color: #777; }
.hd-badge { position: absolute; top: -8px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f7941d; color: #fff; border: 2px solid #fff; font-style: normal; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.hd-badge[hidden] { display: none; }
/* Số trên giỏ hàng hiện NGAY từ lần vẽ đầu (29/11; trước đây site.js cuối trang mới bỏ hidden -> số bật ra sau một nhịp):
   có JS (html.js) thì vẽ luôn số "0" in sẵn trong HTML; giỏ có hàng thì view.js (trong <head>) đặt html.has-cart + --cart-n -> vẽ số thật
   bằng ::after. site.js điền chữ thật rồi bỏ hidden, các quy tắc [hidden] này thôi áp dụng. */
html.js .hd-badge[data-cart-count][hidden] { display: block; }
html.has-cart .hd-badge[data-cart-count][hidden] { font-size: 0; }
html.has-cart .hd-badge[data-cart-count][hidden]::after { content: var(--cart-n); font-size: 11px; }
.headbar a.hd-cart, .headbar a.hd-account { color: #333; }
/* Menu danh mục (màu thương hiệu) */
.mainnav { background: var(--hd-bg); }
/* Menu danh mục: icon + mũi tên, menu con khi rê chuột */
.mainnav ul { display: flex; gap: 2px; }
.mainnav > ul > li { position: relative; }
.mainnav > ul > li > a { display: flex; align-items: center; gap: 6px; color: var(--hd-fg); padding: 7px 10px 9px; font-size: 14px; white-space: nowrap; border-radius: 6px 6px 0 0; }
.mainnav > ul > li > a:hover, .mainnav > ul > li:focus-within > a { background: rgba(0,0,0,.12); }
.mainnav__caret { display: inline-flex; opacity: .85; transition: transform .15s; }
.mainnav__sub { position: absolute; left: 0; top: 100%; z-index: 30; min-width: 260px; max-width: 560px; padding: 10px; background: #fff; color: var(--text); border-radius: 0 10px 10px 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.mainnav__sub ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px; width: max-content; max-width: 540px; }
.mainnav__sub a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 13.5px; white-space: normal; }
.mainnav__sub a:hover { background: #fff3ee; color: var(--brand-dark); }
.mainnav__sub img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.mainnav__all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 !important; justify-content: center; color: var(--link) !important; font-weight: 500; }
.mainnav li.has-sub:hover .mainnav__sub, .mainnav li.has-sub:focus-within .mainnav__sub { visibility: visible; opacity: 1; transform: none; }.mainnav li.has-sub:hover .mainnav__caret { transform: rotate(180deg); }
/* Menu con của các mục nửa sau hàng mở sang trái để không tràn màn hình (màn hình ~1280px) */
.mainnav > ul > li:nth-last-child(-n+5) .mainnav__sub { left: auto; right: 0; border-radius: 10px 0 10px 10px; }
/* Màn hình hẹp (~1280px): thu khoảng đệm để cả hàng danh mục vừa màn hình */
@media (max-width: 1300px) and (min-width: 1025px) {
  .mainnav > ul > li > a { padding-left: 7px; padding-right: 7px; }
}
/* Phòng hờ: menu con (kể cả lúc đang ẩn) không làm trang rộng hơn màn hình */
.headbar { overflow-x: clip; }

/* ---------- Layout ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; font-size: 12px; color: var(--link); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
/* Trang sản phẩm: cột trái = ảnh, liên quan, cam kết, tab nội dung / thông số, hỏi đáp — chạy dọc cả 2 hàng;
   cột phải = khung mua (hàng 1, .pdp__right) + phụ kiện, khuyến mãi, đánh giá, tin (hàng 2, .pdp__right2 — HTML nằm SAU cột trái
   để điện thoại vẽ ảnh trước, không bị đẩy). Hàng 2 là 1fr: phần cột trái cao hơn dồn hết vào hàng 2, khối phụ kiện luôn sát dưới khung mua */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto 1fr; gap: 16px 20px; align-items: start; }
.pdp__left, .pdp__right, .pdp__main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pdp__left { grid-column: 1; grid-row: 1 / span 2; }
.pdp__right { grid-column: 2; grid-row: 1; }
.pdp__right2 { grid-row: 2; }
.pdp__main { grid-column: 1; grid-row: 2; }
.pdp section, .gallery, .buy { background: var(--card); border-radius: var(--radius); padding: 16px; }
.pdp h2 { font-size: 17px; margin-bottom: 12px; }

/* ---------- Gallery ---------- */
.gallery__bar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.gallery__actions { display: flex; flex-wrap: wrap; align-items: center; }
.gallery__actions a, .gallery__actions button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--link); font-size: 14px; font-weight: 500; padding: 2px 14px; }
.gallery__actions > * + * { border-left: 1px solid #ccc !important; }
.gallery__actions > :first-child { padding-left: 0; }
.gallery__actions button.is-active .icon { fill: var(--red); stroke: var(--red); }
.gallery__stage { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; touch-action: pan-y pinch-zoom; user-select: none; }
.gallery__stage img { -webkit-user-drag: none; pointer-events: none; }
.gallery__stage { cursor: grab; }
.gallery__stage.is-dragging { cursor: grabbing; }
.gallery__track { height: 100%; display: flex; transition: transform 280ms cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.gallery__stage.is-dragging .gallery__track { transition: none; }
.gallery__slide { flex: 0 0 100%; height: 100%; min-width: 0; border-radius: 14px; overflow: hidden; }
.gallery__video-wrap { position: relative; height: 100%; }
/* Lớp phủ để kéo/vuốt trên video: chừa dải trên (tiêu đề, tắt/bật tiếng, phụ đề, cài đặt)
   và dải dưới (thanh tua, toàn màn hình) để bấm được nút của YouTube */
.gallery__video-overlay { position: absolute; left: 0; right: 0; top: 72px; bottom: 72px; z-index: 1; }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 56px; border: 0; background: rgba(0,0,0,.28); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.stage-nav:hover { background: rgba(0,0,0,.5); }
.stage-nav--prev { left: 0; border-radius: 0 8px 8px 0; }
.stage-nav--next { right: 0; border-radius: 8px 0 0 8px; }
.stage-nav:disabled, .strip-nav:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .gallery__track { transition: none; } }
/* Màn hình cảm ứng (product.js thêm .is-native): hàng slide cuộn ngang gốc, mỗi lần vuốt dừng đúng 1 ảnh */
.gallery__stage.is-native { touch-action: auto; cursor: auto; }
.gallery__stage.is-native .gallery__track { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; transition: none; will-change: auto; }
.gallery__stage.is-native .gallery__track::-webkit-scrollbar { display: none; }
.gallery__stage.is-native .gallery__slide { scroll-snap-align: start; scroll-snap-stop: always; }
.gallery__stage.is-native.is-dragging .gallery__track { scroll-snap-type: none; }
.feature-slide { height: 100%; display: flex; align-items: center; justify-content: center; padding: 6% 8%; background: linear-gradient(110deg, #b03a66 0%, #b4475e 50%, #a8552c 100%); color: #fff; }
.feature-slide__text { width: 100%; max-width: 560px; }
.feature-slide__title { text-align: center; text-transform: uppercase; font-size: 24px !important; margin-bottom: 18px !important; letter-spacing: .5px; }
.feature-slide__text li { position: relative; padding-left: 16px; font-size: 16px; font-weight: 500; line-height: 1.45; margin-bottom: 10px; }
.feature-slide__text li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .85; }
.gallery__video { width: 100%; height: 100%; display: block; background: #000; }
.gallery__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery__video-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Video YouTube trong bài viết: ảnh xem trước + nút phát, bấm mới tải trình phát (site.js) */
.yt-facade { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; margin: 12px auto; background: #000; border-radius: 8px; overflow: hidden; cursor: pointer; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.yt-facade__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 14px; background: rgba(33, 33, 33, .8); transition: background .15s; }
.yt-facade__play::before { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-facade:hover .yt-facade__play, .yt-facade:focus-visible .yt-facade__play { background: #f00; }
.yt-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.feature-slide__inbox { columns: 2; column-gap: 28px; }
.feature-slide__inbox li { break-inside: avoid; }
.gallery__main { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.gallery__main .thumb--placeholder { background: #fff; }
.gallery__main .thumb--placeholder svg { max-width: 240px; }
.gallery__count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.gallery__strip-wrap { position: relative; margin-top: 12px; }
.gallery__strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 2px; overscroll-behavior-x: contain; cursor: grab; }
.gallery__strip.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none !important; }
.gallery__strip.is-dragging .strip-item { pointer-events: none; }
.gallery__strip::-webkit-scrollbar { display: none; }
.strip-item { flex: none; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; overflow: hidden; }
.strip-item.is-active { border-color: var(--red); }
.strip-item--label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; line-height: 1.2; color: #444; text-align: center; }
.strip-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; }
.strip-nav--prev { left: -6px; }
.strip-nav--next { right: -6px; }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 12px; }
.trust__ic { color: var(--brand); display: flex; }
.trust b { display: block; color: #1f2937; font-size: 13px; font-weight: 600; }
.trust small { color: #666; font-size: 12px; }

/* ---------- Related list (3 cột) ---------- */
.pdp .related-list h2 { font-size: 18px; }
.slider { position: relative; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; align-content: start; gap: 12px; padding: 2px; }
.rel-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; background: #fff; }
.rel-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.rel-card__img { width: 64px; height: 84px; flex: none; display: block; }
.rel-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rel-card__name { font-size: 14px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.rel-card.is-current .rel-card__name, .rel-card__name:hover { color: var(--link); }
.rel-card__price { color: var(--red); font-size: 16px; }
.rel-card__gift { margin-top: -4px; padding-top: 0; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; color: #333; }
.slider__nav--prev { left: -10px; }
.slider__nav--next { right: -10px; }
/* Chấm trang: vạch 12×3px nhưng vùng bấm 24×24px (đích chạm tối thiểu WCAG 2.2) — vạch vẽ bằng ::before */
.slider__dots { display: flex; justify-content: center; gap: 0; margin-top: 2px; }
.slider__dots button { position: relative; width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; }
.slider__dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 3px; transform: translate(-50%, -50%); border-radius: 2px; background: #ddd; }
.slider__dots button.is-active::before { width: 18px; background: var(--red); }

/* ---------- Highlights + article ---------- */
.article__body { max-height: 900px; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px 8px; }
.article.is-expanded .article__body { max-height: none; }
.article:not(.is-expanded) .article__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background: linear-gradient(transparent, #fff); }
.toc { background: #f4f4f5; border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.toc__head { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; background: #ececee; padding: 10px 16px; font-size: 15px; font-weight: 500; color: #222; }
.toc__list { list-style: none; padding: 12px 16px 14px; margin: 0; font-size: 14px; line-height: 1.5; }
.toc__list > li { margin-bottom: 6px; }
.toc__list ol { list-style: none; padding: 2px 0 0 18px; margin: 0; }
.toc__list ol li { margin-bottom: 2px; }
.toc__list a { color: #333; }
.toc__list a:hover { color: var(--brand); }
.article article { scroll-margin-top: 120px; }
.article article h2 { font-size: 18px; margin: 22px 0 10px; scroll-margin-top: 120px; }
.article article h3 { font-size: 16px; margin: 16px 0 8px; scroll-margin-top: 120px; }
.article article h4 { font-size: 15px; margin: 14px 0 6px; }
.article article h5 { font-size: 14px; margin: 10px 0 4px; }
.article [data-num]::before { content: attr(data-num) " "; }
.article article p { margin: 0 0 10px; line-height: 1.7; }
.article article ul { list-style: disc; padding-left: 22px; margin: 0 0 12px; line-height: 1.7; }
.article .table-wrap { overflow-x: auto; margin: 0 0 12px; }
.article table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article thead th { background: var(--brand-soft); color: var(--brand-dark); }
.article tbody th { background: #fafafa; font-weight: 500; width: 26%; }
.btn-more { display: block; margin: 12px auto 0; border: 1px solid var(--link); color: var(--link); background: #fff; border-radius: 6px; padding: 7px 28px; }

/* ---------- Buy panel ---------- */
.buy { padding: 0 0 16px; overflow: hidden; }
.buy > *:not(.flash) { margin-left: 16px; margin-right: 16px; }
.flash { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, var(--red), var(--brand)); color: #fff; padding: 8px 14px; margin-bottom: 12px; }
.flash__title b { font-style: italic; font-size: 17px; margin-right: 8px; }
.flash__title { font-size: 12px; }
.flash__time { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; }
/* min-width (02/12): giữ sẵn bề rộng của "00 : 00 : 00" — ô không nở / nhảy khi JS điền số thay "--:--:--" (view.js điền trước lần vẽ đầu) */
.countdown { background: #fff; color: var(--red); font-weight: 700; border-radius: 4px; padding: 1px 8px; font-size: 13px; font-variant-numeric: tabular-nums; box-sizing: border-box; min-width: 81px; text-align: center; white-space: nowrap; }
.buy__title { font-size: 19px; line-height: 1.35; margin-bottom: 6px; }
.buy__brand { font-size: 12px; color: #555; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; }
.buy__brand a { color: var(--link); }
/* Điện thoại: "Thương hiệu | Mã SP | đánh giá" luôn 1 hàng (chữ nhỏ hơn, vạch ngăn sát hơn; quá dài thì vuốt ngang) */
@media (max-width: 768px) {
  .buy__brand { flex-wrap: nowrap; gap: 3px; font-size: 11.5px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .buy__brand::-webkit-scrollbar { display: none; }
  .buy__brand .sep { margin: 0 2px; }
  .buy__brand > * { flex: none; }
}
.sep { color: #ccc; margin: 0 4px; }
.sep::before { content: "|"; } /* ký tự trang trí bằng CSS: trình đọc màn hình bỏ qua, không tính tương phản */
.buy__price { display: flex; align-items: center; gap: 8px; }
.buy__label { color: #555; }
.buy__price strong { color: var(--red); font-size: 26px; }
.vat { background: var(--red); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.buy__old { font-size: 12px; color: #555; margin: 2px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pct { color: var(--red); }
.save { color: var(--brand-dark); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.variant { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 6px 12px 6px 6px; font-size: 12px; text-align: left; position: relative; }
.variant b { display: block; color: var(--red); }
.variant__img { width: 32px; height: 32px; display: block; }
.variant.is-active { border-color: var(--red); }
/* Nhóm màu: mỗi màu là link sang sản phẩm khác */
a.variant { color: inherit; text-decoration: none; }
a.variant:hover { border-color: var(--red); }
.variant.is-active::after { content: "✓"; position: absolute; top: -1px; left: -1px; background: var(--red); color: #fff; font-size: 9px; width: 14px; height: 14px; border-radius: 6px 0 6px 0; display: flex; align-items: center; justify-content: center; }
.policy { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--brand-soft); border-radius: 6px; padding: 8px 4px; margin-bottom: 12px; text-align: center; font-size: 11px; color: #555; }
.policy li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.policy .icon { color: var(--brand); }
.policy b { color: var(--text); font-weight: 500; }
.pdp .gifts { padding: 0; margin-bottom: 12px; }
.pdp .gifts__title { font-size: 13px; text-transform: uppercase; margin-bottom: 8px; }
.gifts li { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.gifts__img { width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px; display: block; }
.gifts__link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.gifts__link:hover .gifts__name, .gifts__link:focus-visible .gifts__name { color: var(--link); text-decoration: underline; }
/* "Được tặng kèm khi mua các sản phẩm sau": danh sách dài -> khung cuộn, mỗi dòng 1 tên + giá */
.gifts--hosts ul { max-height: 240px; overflow-y: auto; padding-right: 6px; }
.gifts--hosts .gifts__name { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.gifts__price { display: block; color: var(--red); font-weight: 600; font-size: 12px; }
.gifts__total { text-transform: none; color: var(--red); font-weight: 600; }
.cart-gifts__name a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.buy__actions { display: flex; gap: 8px; margin-bottom: 8px; }
.buy__stock { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: #1b7a3d; }
.buy__stock.is-out { color: var(--red); }
.btn-buy--out { background: #6b7280; text-align: center; }
.btn-buy { flex: 1.4; border: 0; border-radius: 6px; background: var(--red); color: #fff; padding: 8px; font-weight: 700; text-transform: uppercase; font-size: 15px; display: flex; flex-direction: column; align-items: center; }
.btn-buy small, .btn-installment small { font-weight: 400; text-transform: none; font-size: 11px; }
.btn-cart { flex: none; width: 76px; border: 1px solid var(--red); color: var(--red); background: #fff; border-radius: 6px; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.btn-cart small { font-size: 10px; line-height: 1.2; white-space: nowrap; }
.btn-cart:hover { background: #fff5f5; }
.btn-installment { flex: 1; min-width: 0; border: 0; background: var(--brand); color: #fff; border-radius: 6px; padding: 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; }
.btn-buy:hover, .btn-installment:hover { filter: brightness(1.05); }
.contacts { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.contacts__head { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); color: #fff; padding: 8px 12px; }
.contacts__title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.contacts__title:hover { color: #fff; opacity: .9; }
.share { display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: none; color: #fff; font-size: 12px; padding: 2px 10px; }
.share:hover { background: rgba(255,255,255,.15); }
.contacts__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
.contact { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.contact__region { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.contact__region .icon { color: var(--orange); }
.contact__addr { font-size: 12px; color: #555; line-height: 1.45; margin-bottom: 8px; }
.contact__region + .contact__chips { margin-top: 6px; }
.contact__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.contact__chat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.contact__chat a { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px; font-size: 13px; }
.contact__chat a:hover { border-color: #0068ff; color: #0068ff; }
.ic-mess { width: 18px; height: 18px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #0099ff, #a033ff 60%, #ff5280); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid #ddd; border-radius: 14px; font-size: 12px; color: #444; white-space: nowrap; }
.chip:hover { border-color: #999; color: #222; }
/* Số điện thoại: chữ xám đậm, icon cam thương hiệu (giá đỏ nổi bật hơn) */
.chip--phone { border-color: #e2e5ea; color: #1f2937; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip--phone .icon { color: var(--brand); }
.chip--phone:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Accessories ---------- */
.accessories__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pdp .accessories__head h2 { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.accessories__for { color: var(--link); }
.btn-outline { flex: none; border: 1px solid var(--orange); color: var(--orange); border-radius: 4px; padding: 5px 12px; font-size: 13px; }
.btn-outline:hover { background: var(--orange); color: #fff; }
.accessories__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rel-card--compact { align-items: flex-start; gap: 8px; padding: 10px; }
.rel-card--compact .rel-card__img { width: 48px; height: 64px; }
.rel-card--compact .rel-card__body { gap: 4px; align-items: flex-start; }
.rel-card--compact .rel-card__name { font-size: 13px; }
.rel-card--compact .rel-card__price { font-size: 14px; }
.btn-add { display: inline-flex; align-items: center; gap: 4px; background: #fde8ea; color: var(--red); border-radius: 14px; padding: 3px 10px; font-size: 12px; white-space: nowrap; margin-top: 2px; }
.btn-add span { font-size: 15px; line-height: 1; }
.btn-add:hover { background: var(--red); color: #fff; }

/* "Phụ kiện mua cùng" (cột phải, dưới "Nhấn số để gọi"): lưới 2 cột ảnh + tên + giá + nút thêm giỏ */
.pdp .buy-with__title { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.buy-with__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.buy-with__item { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.buy-with__item[hidden] { display: none; }
.buy-with__img { width: 72px; height: 88px; flex: none; display: flex; align-items: center; justify-content: center; }
.buy-with__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.buy-with__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* max-width + overflow-wrap: tên dài không có chỗ ngắt (vd mã sản phẩm liền) không được đẩy trang rộng hơn màn hình —
   trang tràn ngang làm Android thu nhỏ / cuộn lệch, header hết dính */
.buy-with__name { max-width: 100%; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.buy-with__name:hover { color: var(--link); }
.buy-with__price { color: var(--red); font-size: 14px; font-weight: 600; }
/* Nút thêm giỏ: viên thuốc nhỏ 1 hàng (icon giỏ màu thương hiệu + chữ xám đậm), viền xám nhạt — cùng kiểu số điện thoại;
   rê / bấm: viền và chữ màu thương hiệu (máy tính + điện thoại) */
.btn-cart.buy-with__add { width: auto; flex-direction: row; gap: 5px; margin-top: 4px; padding: 3px 10px 3px 8px; border: 1px solid #e2e5ea; border-radius: 999px; background: #fff; color: #374151; }
.btn-cart.buy-with__add .icon { width: 15px; height: 15px; color: var(--brand); }
.btn-cart.buy-with__add small { font-size: 12px; font-weight: 500; }
.btn-cart.buy-with__add:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
@media (max-width: 560px) {
  .buy-with__grid { gap: 14px 8px; }
  .buy-with__img { width: 52px; height: 64px; }
}
.buy-with__add.is-busy { opacity: .5; pointer-events: none; }
/* Tiêu đề + nút ‹ › (nút chỉ hiện ở máy tính khi khối trượt ngang) */
.buy-with__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pdp .buy-with__head .buy-with__title { margin: 0; }
.buy-with__nav { display: none; align-items: center; gap: 6px; }
.buy-with__page { font-size: 13px; color: var(--muted); margin-right: 4px; }
.buy-with__arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.buy-with__arrow:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); }
.buy-with__arrow:disabled { opacity: .35; cursor: default; }
/* Máy tính: 2 cột × 4 hàng mỗi trang, các món còn lại nằm ở trang kế — trượt ngang (thay nút "Xem thêm") */
@media (min-width: 1025px) {
  .buy-with--slide .buy-with__nav { display: flex; }
  .buy-with--slide .buy-with__grid { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-auto-columns: calc((100% - 12px) / 2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .buy-with--slide .buy-with__grid::-webkit-scrollbar { display: none; }
  .buy-with--slide .buy-with__item { scroll-snap-align: start; }
  .buy-with--slide .buy-with__item[hidden] { display: flex; }
  .buy-with--slide .buy-with__more { display: none; }
}
.buy-with__more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 14px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px; font: inherit; font-size: 13px; color: var(--link); cursor: pointer; }
.buy-with__more:hover { background: #f5f8ff; }

/* ---------- Khung tab "Nội dung chính" / "Thông số kỹ thuật" (cột phải) ---------- */
.info-tabs { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 120px; }
.info-tabs__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.info-tabs__bar button { border: 1px solid #d9dde3; background: #fff; border-radius: 8px; padding: 11px 8px; font: inherit; font-size: 15px; font-weight: 700; color: #222; cursor: pointer; }
.info-tabs__bar button.is-active { border-color: #9ec5fe; background: #eef5ff; color: #1559c2; }
.info-tabs__bar button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[data-info-panel][hidden] { display: none; }
/* Khung con (bài viết, thông số) nằm trong khung tab: bỏ nền / viền riêng */
.pdp .info-tabs section { padding: 0; background: none; border-radius: 0; }

/* Tab "Thông số kỹ thuật": nhóm xổ xuống */
.spec-box { display: flex; flex-direction: column; gap: 10px; }
.spec-group { border-radius: 8px; overflow: hidden; }
.spec-group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #f2f3f5; padding: 12px; font-size: 14px; font-weight: 500; color: #222; cursor: pointer; border-radius: 8px; }
.spec-group > summary::-webkit-details-marker { display: none; }
.spec-group > summary .icon { flex: none; transition: transform .15s; }
.spec-group[open] > summary { border-radius: 8px 8px 0 0; }
.spec-group[open] > summary .icon { transform: rotate(180deg); }
.spec-group table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-group th, .spec-group td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #eceef1; line-height: 1.45; }
.spec-group tr:last-child th, .spec-group tr:last-child td { border-bottom: 0; }
.spec-group th { width: 42%; font-weight: 600; color: #333; }
.spec-group td { color: #444; overflow-wrap: anywhere; }

/* ---------- News ---------- */
.news h2 { font-size: 18px; }
.news li + li { margin-top: 12px; }
.news a { display: flex; gap: 10px; }
.news__img { width: 120px; aspect-ratio: 16 / 10; flex: none; border-radius: 6px; overflow: hidden; background: #e9eef6; }
.news__img .thumb--placeholder { background: #e9eef6; }
.news b { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; margin-bottom: 4px; }
.news small { display: block; font-size: 11px; }
/* Cột phải trang sản phẩm: "Sản phẩm khuyến mãi" — ảnh sản phẩm vuông, nền trắng, tên tối đa 2 dòng + giá */
.sale-side .news__img { width: 72px; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); padding: 4px; }
.sale-side .news__img img { object-fit: contain; }
.sale-side b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sale-side a:hover b { color: var(--link); }
.sale-side__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 12px; }
.sale-side__price strong { color: var(--red); font-size: 14px; }
.sale-side__price s { color: var(--muted); }

/* ---------- Reviews ---------- */
.pdp .reviews { background: #ececee; padding: 14px; }
.pdp .reviews__title { font-size: 17px; margin-bottom: 10px; }
.reviews__card { background: #fff; border-radius: 12px; padding: 16px 18px; }
.reviews__card + .reviews__card { margin-top: 14px; }
.reviews__summary { display: flex; gap: 40px; align-items: center; }
.reviews__avg { flex: none; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: #444; }
.reviews__avg strong { font-size: 40px; font-weight: 700; line-height: 1; color: #111; }
.reviews__avg small { font-size: 22px; font-weight: 400; color: var(--muted); }
.reviews__avg .stars { font-size: 16px; letter-spacing: 3px; }
.btn-review { margin-top: 8px; background: var(--red); color: #fff; border-radius: 6px; padding: 7px 14px; font-weight: 500; }
.btn-review:hover { color: #fff; filter: brightness(1.08); }
.reviews__bars { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.reviews__bars li { display: flex; align-items: center; gap: 12px; }
.reviews__star { width: 24px; }
.reviews__bars .star { color: #f5b400; }
.star::before { content: "★"; }
.reviews__n { width: 70px; flex: none; text-align: right; color: var(--muted); font-size: 11px; }
.bar { flex: 1; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--red); border-radius: 3px; }
.reviews__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.reviews__filter > span { font-size: 16px; font-weight: 500; margin-right: 4px; }
.reviews__filter button { border: 1px solid #ddd; background: #f3f3f3; border-radius: 14px; padding: 3px 11px; font-size: 12px; color: #333; }
.reviews__filter button.is-active { background: #eaf2ff; border-color: var(--link); color: var(--link); }
.reviews__list li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reviews__list li:last-child { border-bottom: 0; }
.review__author { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.review__avatar { width: 26px; height: 26px; flex: none; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.review__body { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.review__rating { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.review__rating .stars { font-size: 13px; }
.review__verified { display: flex; align-items: center; gap: 4px; color: #1a9b4b; font-size: 12px; }
.review__time { display: flex; align-items: center; gap: 4px; color: #6b6b6b; font-size: 12px; }
.reviews__empty { padding: 16px 0; font-size: 13px; }
.reviews__more { display: flex; align-items: center; gap: 6px; margin: 10px auto 0; border: 0; background: #f0f0f0; border-radius: 8px; padding: 8px 40px; font-weight: 500; font-size: 13px; }
.reviews__more:hover { background: #e4e4e4; }
.reviews__more[hidden] { display: none; }
.review__criteria { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #555; font-size: 12px; margin: 0; }
.review__criteria b { font-weight: 600; color: #333; }
.review__images { display: flex; flex-wrap: wrap; gap: 6px; }
.review__images a { width: 72px; height: 72px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); display: block; }
.review__images img { width: 100%; height: 100%; object-fit: cover; }

/* Viết đánh giá: popup trang sản phẩm + trang /viet-danh-gia.html (Views/Review/_ReviewForm.cshtml, js/review-form.js) */
.rv-dialog { border: 0; border-radius: 12px; padding: 0; width: min(600px, 96vw); max-height: 92vh; overflow: hidden; }
.rv-dialog[open] { display: flex; flex-direction: column; }
.rv-dialog::backdrop { background: rgba(0,0,0,.5); }
.rv-dialog__head { display: flex; justify-content: space-between; align-items: center; background: #f3f4f6; padding: 12px 16px; }
.rv-dialog__title { margin: 0; font-size: 20px; font-weight: 600; }
.rv-dialog__head button { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.rv-dialog__body { overflow-y: auto; }
.rv-page { padding-bottom: 24px; }
.rv-page__box { background: #fff; border-radius: 10px; max-width: 640px; margin: 0 auto; overflow: hidden; }
.rv-page__box h1 { font-size: 20px; margin: 0; padding: 14px 16px; background: #f3f4f6; }
.rv-page__box > .rv-msg { margin: 12px 16px 0; }
.rv-form { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 0; }
.rv-form__product { display: flex; align-items: center; gap: 16px; }
.rv-form__img { width: 88px; height: 88px; flex: none; display: block; }
.rv-form__img img { width: 100%; height: 100%; object-fit: contain; }
.rv-form__product b { font-size: 18px; font-weight: 500; color: #444; }
.rv-group { border: 0; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.rv-group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rv-group legend { font-size: 16px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.rv-form input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-star { display: inline-flex; color: #d9d9d9; transition: color .1s, transform .1s; }
.rv-star .icon { fill: currentColor; stroke: currentColor; }
label.is-on .rv-star { color: #f5b301; }
label:hover > .rv-star { transform: scale(1.12); }
.rv-form label:has(input:focus-visible) .rv-star { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.rv-overall { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; }
.rv-overall label { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; position: relative; font-size: 13px; color: #555; }
.rv-criterion { display: grid; grid-template-columns: minmax(0, 1fr) auto 130px; gap: 12px; align-items: center; font-size: 13px; padding: 6px 4px; }
.rv-criterion__stars { display: flex; gap: 6px; }
.rv-criterion__stars label { cursor: pointer; position: relative; display: flex; }
.rv-criterion__level { color: #444; }
.rv-form textarea { width: 100%; border: 1px solid #d6d9de; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.rv-form textarea:focus, .rv-contact input:focus { outline: 0; border-color: var(--link); }
.rv-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-upload { width: 118px; height: 74px; border: 1px dashed #cfd3d8; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #555; font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
.rv-upload[hidden] { display: none; }
.rv-upload:hover { border-color: var(--link); color: var(--link); }
.rv-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-photos__list { display: contents; list-style: none; }
.rv-photos__list li { position: relative; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.rv-photos__list img { width: 100%; height: 100%; object-fit: cover; }
.rv-photos__list button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; cursor: pointer; }
.rv-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-contact input { border: 1px solid #d6d9de; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; min-width: 0; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rv-msg { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #b42318; font-size: 14px; }
.rv-msg.is-ok { background: #e8f6ee; color: #146c3c; }
/* Ô xác minh Cloudflare Turnstile trong form đánh giá / hỏi đáp: không chiếm chỗ, chỉ hiện khi Cloudflare cần khách bấm xác nhận */
.ts-box { max-width: 100%; }
.ts-box.is-shown { margin: 4px 0; }
.ts-msg { margin: 6px 0; }
.rv-submit { position: sticky; bottom: 0; background: #fff; padding: 12px 0 16px; box-shadow: 0 -8px 12px -10px rgba(0,0,0,.15); }
.rv-submit__btn { width: 100%; border: 0; border-radius: 8px; background: #d70018; color: #fff; font-size: 16px; font-weight: 700; padding: 13px; cursor: pointer; }
.rv-submit__btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 560px) {
  .rv-overall small { font-size: 11px; }
  .rv-criterion { grid-template-columns: 1fr auto; }
  .rv-criterion__level { grid-column: 1 / -1; color: #777; font-size: 12px; margin-top: -6px; }
  .rv-contact { grid-template-columns: 1fr; }
}
.stars { position: relative; display: inline-block; font-size: 15px; letter-spacing: 1px; line-height: 1; }
.stars__bg { color: #ddd; }
.stars__bg::before, .stars__fg::before { content: "★★★★★"; } /* sao trang trí; điểm số đọc qua aria-label của .stars */
.stars__fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f5a623; }

/* ---------- Product cards ---------- */
.cards__row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; background: #fff; }
.card:hover { border-color: var(--brand); color: inherit; }
.card__img { aspect-ratio: 1 / 1; display: block; margin-bottom: 4px; }
.card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card .price { font-size: 15px; }
.pct-text { color: var(--red); font-size: 12px; }
.card__badge { align-self: flex-start; background: #fff3e8; color: var(--orange); font-size: 11px; padding: 1px 6px; border-radius: 4px; }

/* ---------- Q&A ---------- */
/* Ô đặt câu hỏi: logo + tiêu đề + ô nhập + nút đỏ */
.qna__ask { display: flex; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 14px; }
.qna__mascot { width: 96px; height: 96px; object-fit: contain; flex: none; }
.qna__form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.qna__ask-title { font-size: 17px; font-weight: 600; margin: 0; }
.qna__ask-text { font-size: 13px; color: #555; margin: 0 0 4px; line-height: 1.5; }
.qna__ask-row { display: flex; gap: 12px; align-items: flex-start; }
.qna__form textarea, .qna-reply-form textarea { flex: 1; width: 100%; border: 1px solid #cfd3d8; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; resize: none; min-height: 42px; }
.qna__form textarea:focus, .qna-reply-form textarea:focus, .qna__row input:not([type="radio"]):focus { outline: 0; border-color: var(--link); }
.qna__send { flex: none; border: 0; border-radius: 8px; background: #d70018; color: #fff; font-weight: 600; font-size: 14px; padding: 11px 18px; cursor: pointer; white-space: nowrap; }
.qna__send:disabled { opacity: .6; cursor: wait; }
.qna__send--sm { padding: 7px 14px; font-size: 13px; }
.qna__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
.qna__row input:not([type="radio"]) { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font: inherit; width: 190px; }
.qna__row label { display: flex; align-items: center; gap: 4px; }
/* Danh sách hỏi đáp: câu hỏi + phản hồi lùi vào, có đường kẻ nối */
.qna__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 20px 14px; }
.qna__threads { list-style: none; margin: 0; padding: 0; }
.qna-thread { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qna-thread:last-child { border-bottom: 0; }
.qna-post { display: flex; gap: 10px; }
.qna-post__avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.qna-post__avatar--brand { background: #fff; object-fit: contain; border: 1px solid var(--line); }
.qna-post__avatar--q { background: #e5e7eb; color: #555; }
.qna-post__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qna-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.qna-post__head b { font-size: 15px; }
.qna-post__time { display: inline-flex; align-items: center; gap: 3px; color: #6e6e6e; font-size: 12px; }
.qna-post__content { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
/* Câu hỏi là thẻ h3 (cấu trúc hỏi – đáp cho Google / AI) nhưng hiển thị như chữ thường */
.qna-post__question { font-weight: 500; color: #222; }
.reviews__summary-text { margin: 10px 2px; font-size: 13px; color: #555; line-height: 1.5; }
.reviews__summary-text b { color: #222; }
.qna-post__reply, .qna-post__toggle { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.qna-post__reply { color: var(--red); }
.qna-post__toggle { color: #333; font-size: 12px; }
.qna-replies { list-style: none; margin: 12px 0 0 44px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.qna-replies[hidden] { display: none; }
.qna-post--admin .qna-post__head .tag-admin { background: var(--red); }
.qna-thread--faq .qna-replies .qna-post__body { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.qna-reply-form { margin: 12px 0 0 44px; display: flex; flex-direction: column; gap: 8px; }
.qna-reply-form__cancel { border: 0; background: none; color: #666; cursor: pointer; font-size: 13px; }
.qna__card .reviews__more { margin-top: 12px; }
/* Máy tính: đánh giá + hỏi đáp ở cột phải hẹp (440px, Detail.cshtml) — xếp dọc gọn */
.pdp__right .reviews { padding: 12px; }
.pdp__right .reviews__card { padding: 12px; }
.pdp__right .reviews__summary { flex-direction: column; align-items: stretch; gap: 12px; }
.pdp__right .reviews__avg { width: auto; }
.pdp__right .reviews__list li { grid-template-columns: 1fr; gap: 6px; }
.pdp__right .reviews__more { padding: 8px 24px; }
.pdp__right .qna__ask { flex-direction: column; align-items: stretch; padding: 14px; gap: 10px; }
.pdp__right .qna__mascot { display: none; }
.pdp__right .qna__ask-row { flex-direction: column; align-items: stretch; }
.pdp__right .qna__row input:not([type="radio"]) { width: 100%; }
.pdp__right .qna__card { padding: 4px 14px 12px; }
.pdp__right .qna-replies, .pdp__right .qna-reply-form { margin-left: 22px; }
@media (max-width: 640px) {
  .qna__ask { flex-direction: column; align-items: stretch; padding: 14px; gap: 10px; }
  .qna__mascot { display: none; }
  .qna__ask-row { flex-direction: column; align-items: stretch; }
  .qna-replies, .qna-reply-form { margin-left: 22px; }
}
.avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #ddd; color: #555; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar--brand { background: var(--brand); color: #fff; font-style: italic; }
.tag-admin { background: var(--brand); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; }

/* ---------- Showrooms ---------- */
.showrooms { margin-top: 24px; margin-bottom: 30px; }
.showrooms__head { margin-bottom: 12px; }
.showrooms h2 { font-size: 20px; }
.showrooms__head .muted { font-size: 13px; }
.showrooms__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.showroom { background: #fff; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 42% 1fr; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.showroom__img { min-height: 200px; background: #eee; margin: 10px 0 10px 10px; border-radius: 10px; overflow: hidden; }
.showroom__img .thumb { object-fit: cover; }
.showroom__img--map { position: relative; }
.showroom__img--map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showroom__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: #444; }
.showroom h3 { color: var(--brand); font-size: 17px; font-weight: 700; }
.showroom a { color: var(--link); }
.showroom__hours { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: #666; }
.showroom__hours svg { flex: none; margin-top: 2px; }
.showroom__hours dl { margin: 0; display: grid; gap: 2px; }
.showroom__hours dl div { display: flex; gap: 6px; }
.showroom__hours dt { min-width: 92px; color: #6b6b6b; } /* #888 chỉ đạt 3.54:1; #6b6b6b = 5.33:1 (WCAG AA) */
.showroom__hours dd { margin: 0; color: #444; font-weight: 500; }
.showroom__addr { font-style: normal; }
/* Link bản đồ nằm trong dòng chữ: gạch chân để không chỉ phân biệt bằng màu */
.showroom__addr a { text-decoration: underline; text-underline-offset: 2px; }
.showroom__phones { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-weight: 700; margin-top: auto; }
.showroom__phones .icon { color: var(--link); margin-right: 4px; }
.ic-zalo { background: #0068ff; color: #fff; font-size: 8px; font-weight: 700; padding: 2px 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 0 16px; font-size: 13px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.site-footer .logo { color: var(--brand); margin-bottom: 6px; }
.site-footer__brand p { margin-bottom: 6px; }
.site-footer__hotline a { font-size: 18px; font-weight: 700; }
.site-footer a:hover { color: var(--brand); }
.site-footer__title { font-size: 12px; text-transform: uppercase; margin-bottom: 10px; color: #333; }
.site-footer li { margin-bottom: 6px; color: #444; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: #555; }
.site-footer__legal { font-size: 11px; color: #5f5f5f; text-align: center; margin-top: 10px; }
.site-footer__grid { grid-template-columns: 1.3fr repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer__phones li { margin-bottom: 3px; color: #222; }
/* Chân trang kiểu kyma.vn (/admin/footer → "Giống kyma.vn"): nền xanh đậm, cột link (có thể chia 2 cột) + khối liên hệ có icon */
.site-footer--kyma { background: #252f3f; color: #e6ebf2; border-top: 0; }
.site-footer--kyma .site-footer__grid { display: flex; gap: 32px; align-items: flex-start; }
.site-footer--kyma .site-footer__col { flex: 1 1 0; min-width: 0; }
.site-footer--kyma .site-footer__col--two { flex: 1.5 1 0; }
.site-footer--kyma .site-footer__title { text-transform: none; font-size: 14px; font-weight: 500; color: #fff; }
.site-footer--kyma li { color: #fff; list-style: disc; margin-left: 16px; line-height: 1.5; }
.site-footer--kyma li::marker { color: #fff; font-size: 11px; }
.site-footer--kyma a { color: #fff; }
.site-footer--kyma a:hover { color: #ffb38a; }
.site-footer__col--two ul { columns: 2; column-gap: 28px; }
.site-footer__col--two li { break-inside: avoid; }
/* Khối liên hệ: 2 cột (showroom cạnh nhau), khối lẻ cuối (Head Office) trải hết hàng; mỗi thông tin một dòng */
.site-footer__contacts { flex: 2 1 0; min-width: 0; font-style: normal; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.site-footer__contacts .ft-contact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ft-contact__row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 6px; line-height: 1.55; }
.ft-contact__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ft-contact__name { color: #fff; font-size: 14px; }
.ft-contact__note { color: #aeb8c6; font-size: 12.5px; }
.ft-contact__addr { color: #e6ebf2; }
.ft-contact__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ft-contact__ico--pin { width: 30px; height: 30px; border-radius: 50%; background: #e2662f; }
/* Điện thoại / email thẳng hàng với chữ (lùi bằng icon vị trí) */
.ft-contact__row--sub { align-items: center; margin: 0 0 4px 40px; gap: 8px; }
.ft-contact__ico--sm { width: 18px; height: 18px; border-radius: 50%; background: #3d7be0; }
.ft-contact__hl { color: #ff6f61; } /* trên nền #252f3f: #ff5a4a chỉ 4.38:1; #ff6f61 = 4.94:1 (WCAG AA) */
.site-footer--kyma .site-footer__bottom { border-top-color: rgba(255,255,255,.14); color: #c9d1dc; }
.site-footer--kyma .site-footer__legal { color: #aeb8c6; }
.site-footer--kyma .badge:not(.badge--blue) { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
@media (max-width: 900px) {
  .site-footer--kyma .site-footer__grid { flex-direction: column; gap: 0; }
  .site-footer--kyma .site-footer__col, .site-footer__contacts { width: 100%; }
  .site-footer__contacts { padding-top: 14px; grid-template-columns: 1fr; }
}
/* Máy tính (20/11): khối liên hệ lên trên thành các thẻ ngang hàng; cột link bên dưới, tiêu đề có gạch cam, link có mũi tên, tự chia cột */
@media (min-width: 901px) {
  .site-footer--kyma { padding: 34px 0 18px; }
  .site-footer--kyma .site-footer__grid { flex-wrap: wrap; gap: 26px 32px; }
  .site-footer__contacts { order: -1; flex: 1 1 100%; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
  .site-footer__contacts .ft-contact:last-child:nth-child(odd) { grid-column: auto; }
  .ft-contact { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 16px 18px 12px; }
  .ft-contact__name { font-size: 15px; }
  .ft-contact__row--sub a { font-size: 14px; }
  .site-footer--kyma .site-footer__title { display: block; position: relative; text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-footer--kyma .site-footer__title::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; background: #e2662f; }
  .site-footer--kyma li { list-style: none; margin-left: 0; margin-bottom: 8px; }
  .site-footer--kyma li a { display: inline-block; position: relative; padding-left: 14px; color: #dfe5ee; }
  .site-footer--kyma li a::before { content: "\203A"; position: absolute; left: 0; top: -1px; color: #e2662f; font-weight: 700; }
  .site-footer--kyma li a:hover { color: #fff; }
  .site-footer__col--two ul { columns: 240px; column-gap: 32px; }
  .site-footer--kyma .site-footer__bottom { margin-top: 22px; }
}

/* "Tìm kiếm nhiều" — cuối trang chủ (/admin/search-trends) */
.search-trends { background: #fff; border-radius: 10px; padding: 18px 20px 16px; margin-top: 16px; margin-bottom: 16px; }
.search-trends__title { font-size: 20px; margin: 0 0 12px; }
.search-trends__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.search-trends__list a { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: #f1f3f5; color: #333; font-size: 13px; transition: background .15s, color .15s; }
.search-trends__list a:hover { background: #fff1ea; color: var(--brand-dark); }
/* Nút "Xem thêm / Thu gọn" (chỉ hiện trên điện thoại khi danh sách bị thu gọn — home.js) */
.search-trends__more { display: flex; align-items: center; justify-content: center; margin: 12px auto 0; border: 1px solid #b8d2f4; background: #fff; color: var(--link); border-radius: 8px; padding: 7px 20px; font: inherit; font-size: 14px; cursor: pointer; }
.search-trends__more[hidden] { display: none; }
.search-trends__more-close, .search-trends.is-open .search-trends__more-open { display: none; }
.search-trends.is-open .search-trends__more-close { display: inline; }
@media (max-width: 768px) {
  /* Thu gọn còn 5 hàng từ khoá (mỗi hàng 30px + khoảng cách 8px), mép dưới mờ dần */
  .search-trends__list { max-height: 182px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .search-trends.is-open .search-trends__list { max-height: none; -webkit-mask-image: none; mask-image: none; }
}
.site-footer .badge { color: #333; }
.site-footer .badge--blue { color: #fff; }
.site-footer a.badge:hover { opacity: .85; }
.badge-img { display: inline-flex; }
.badge-img img { height: 28px; width: auto; }
.socials { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.social { width: 24px; height: 24px; border-radius: 50%; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; background: #1463cc; }
.social--tiktok { background: #000; } .social--instagram { background: #c72a5f; } .social--youtube { background: #cc0000; }
.social--telegram { background: #1a7bb0; } .social--zalo { background: #0058d6; } .social--linkedin { background: #0a66c2; } .social--twitter { background: #0f6fae; }
.badge { border: 1px solid #ccc; font-size: 9px; padding: 3px 6px; font-weight: 700; border-radius: 3px; }
.badge--blue { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .pdp__left, .pdp__right, .pdp__main { grid-column: 1; grid-row: auto; }
  /* Một cột (điện thoại / máy tính bảng dọc): gỡ 3 cột, xếp lại từng khối — ảnh → khung mua + "Nhấn số để gọi" → cam kết →
     sản phẩm liên quan → thông tin / thông số → phụ kiện mua cùng → sản phẩm khuyến mãi → đánh giá → hỏi đáp.
     HTML giữ thứ tự cũ (tên sản phẩm H1 trong khung mua đứng đầu cho SEO) */
  .pdp__left, .pdp__right, .pdp__main { display: contents; }
  .pdp > * > .gallery { order: 1; }
  .pdp > * > .buy { order: 2; }
  .pdp > * > .related-list { order: 3; }
  .pdp > * > .trust { order: 4; }
  .pdp > * > .viewed--pdp { order: 5; } /* "Sản phẩm đã xem": ngay trên khung thông tin */
  .pdp > * > .info-tabs { order: 6; }
  .pdp > * > .buy-with { order: 7; }
  .pdp > * > .sale-side { order: 8; }
  .pdp > * > .reviews { order: 9; }
  .pdp > * > .qna { order: 10; }
  .pdp > * > .tag-news { order: 11; }
  /* Màn hình vừa: gọn header (ẩn chữ phụ, mã giảm giá), menu vuốt ngang, không mở menu con */
  .headmain__row { gap: 16px; }
  .logo__img { width: 56px; height: 56px; }
  .headmain__actions { gap: 16px; }
  .hd-coupon, .hd-sep { display: none; }
  /* Chữ "Xin chào, …" / "Giỏ hàng": ẩn khỏi mắt nhưng trình đọc màn hình vẫn đọc — display:none làm link tài khoản không có tên (Lighthouse link-name) */
  .hd-account .hd-two, .hd-cart__label { position: absolute; width: 1px; height: 1px; min-width: 0; max-width: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .topbar__links { display: none; }
  .mainnav ul { overflow-x: auto; scrollbar-width: none; }
  .mainnav__sub, .mainnav__caret { display: none !important; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cards__row { grid-auto-columns: calc((100% - 20px) / 3); }
  .showroom { grid-template-columns: 1fr; }
  .showroom__img { aspect-ratio: 16 / 10; min-height: 0; margin: 10px 10px 0; }
}
@media (max-width: 680px) {
  /* Điện thoại: ảnh showroom vuông (ảnh mặt tiền chụp gần vuông — khung 16:10 cắt mất biển hiệu) */
  .showroom__img { aspect-ratio: 1 / 1; }
  .headmain__row { flex-wrap: wrap; gap: 8px 14px; padding-top: 8px; padding-bottom: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
  .logo__img { width: 44px; height: 44px; }
  .logo__text { font-size: 22px; }
  .hd-flash .hd-two small { display: none; }
  .topbar { font-size: 11.5px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .gallery__stage { aspect-ratio: auto; }
  .feature-slide { padding: 20px 16px; }
  .feature-slide__title { font-size: 18px !important; }
  .feature-slide__text li { font-size: 14px; }
  .gallery__video { aspect-ratio: 16 / 10; height: auto; }
  .gallery__actions a, .gallery__actions button { padding: 2px 8px; font-size: 13px; }
  /* Sản phẩm liên quan: 1 cột danh sách gọn như "Sản phẩm tặng kèm" — ảnh nhỏ 40px trái, tên + giá (+ quà) phải;
     mỗi trang 6 dòng, vuốt ngang / nút ‹ › (2 góc dưới, ngang hàng chấm trang) sang trang kế */
  .related-list .slider__page { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 0; }
  .related-list .rel-card { flex-direction: row; align-items: center; gap: 10px; padding: 8px 0; border: 0; border-bottom: 1px solid #f0f1f3; border-radius: 0; background: none; }
  .related-list .rel-card:last-child { border-bottom: 0; }
  .related-list .rel-card:hover { box-shadow: none; }
  .related-list .rel-card__img { width: 40px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .related-list .rel-card__body { gap: 2px; }
  .related-list .rel-card__name { font-size: 13px; font-weight: 400; line-height: 1.4; min-height: 0; }
  .related-list .rel-card__price { font-size: 12.5px; font-weight: 700; }
  .related-list .rel-card__gift { margin-top: 0; font-size: 11px; }
  .related-list .slider__nav { top: 100%; transform: none; margin-top: 2px; width: 26px; height: 26px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
  .related-list .slider__nav--prev { left: 0; }
  .related-list .slider__nav--next { right: 0; }
  .slider__page { grid-template-columns: minmax(0, 1fr); }
  .slider__nav { display: none; }
  .related-list .slider__nav { display: flex; }
  /* Khối chọn màu (02/12, người dùng: "bản mobile chỉnh chỗ màu sắc hiển thị cho đẹp"): 2 cột đều kín chiều ngang (trước: thẻ co theo chữ,
     hở lề phải), thẻ cùng hàng cao bằng nhau, ảnh màu to hơn, màu đang xem nền đỏ nhạt */
  .variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .variant { min-width: 0; gap: 9px; padding: 7px 10px 7px 7px; border-radius: 8px; font-size: 13px; line-height: 1.3; }
  .variant > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .variant b { margin-top: 1px; font-size: 13.5px; }
  .variant__img { width: 40px; height: 40px; flex: none; }
  .variant__img img { width: 100%; height: 100%; object-fit: contain; }
  .variant.is-active { background: #fff5f5; box-shadow: inset 0 0 0 1px var(--red); }
  .variant.is-active .variant__img img { mix-blend-mode: multiply; } /* ảnh nền trắng không thành ô trắng trên nền đỏ nhạt */
  .variant.is-active::after { width: 16px; height: 16px; font-size: 10px; border-radius: 8px 0 8px 0; }
  /* Ô chính sách gọn 1 hàng 4 ô: icon cạnh tên, giá trị in đậm dòng dưới, vạch ngăn giữa các ô */
  .policy { gap: 0; padding: 7px 2px; font-size: 11px; line-height: 1.3; }
  .policy li { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 3px; row-gap: 3px; padding: 0 3px; }
  .policy li + li { border-left: 1px solid rgba(0,0,0,.08); }
  .policy .icon { width: 12px; height: 12px; flex: none; }
  .policy b { flex-basis: 100%; text-align: center; font-size: 12px; font-weight: 600; }
  .cards__row { grid-auto-columns: 46%; }
  .showrooms__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .reviews__summary { flex-direction: column; align-items: stretch; gap: 16px; }
  .reviews__avg { width: auto; }
  .reviews__list li { grid-template-columns: 1fr; gap: 6px; }
  .qna__row input:not([type="radio"]) { width: 100%; }
}

/* ---------- Bổ sung cho bản ASP.NET Core (dữ liệu nhập từ kyma.vn) ---------- */
.flash-spacer { height: 14px; }
.article article img { max-width: 100%; height: auto; display: block; margin: 10px auto; border-radius: 6px; }
.article article iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; margin: 10px 0; display: block; }
.article article figure { margin: 12px 0; text-align: center; }
/* Ảnh đã chỉnh cỡ trong trình soạn thảo quản trị (style="width:NN%"): theo căn lề của đoạn chứa ảnh — 2 ảnh 50% cùng đoạn nằm cạnh nhau */
.article article img[style*="width"], .news-content img[style*="width"], .cat-desc img[style*="width"] { display: inline-block; vertical-align: top; margin: 6px 0; }
.article article figcaption { text-align: center; font-size: 12px; color: #666; font-style: italic; }
/* ---------- Trang nhập sản phẩm /admin/import ---------- */
.admin-import { padding: 24px 16px 40px; }
.admin-import h1 { font-size: 22px; margin-bottom: 6px; }
.admin-import h2 { font-size: 17px; margin: 24px 0 10px; }
.admin-import__form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-width: 760px; }
.admin-import__form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; }
.admin-import__form .btn-primary { align-self: flex-start; }
.admin-import__results { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.admin-import__results li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; background: #fff; border-radius: 8px; padding: 8px 12px; border-left: 4px solid #1a9b4b; }
.admin-import__results li.err { border-left-color: var(--red); }
.admin-import__results small { color: #555; }
.admin-import__table { width: 100%; max-width: 900px; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: 14px; }
.admin-import__table th, .admin-import__table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.admin-import__table a { color: var(--link); }
/* ---------- Trang danh mục /{slug}.html ---------- */
/* left: 0 — không để vị trí ngang theo chỗ đứng: trong hàng cuộn ngang (logo hãng…) chữ ẩn nằm ngoài khung cuộn sẽ nới rộng
   cả trang trên điện thoại (trang /may-quay rộng 1043px, bảng Menu rộng theo, chỉ thấy 1 cột) */
.sr-only { position: absolute; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cat-page { padding-bottom: 24px; }
.breadcrumb li[aria-current] { color: var(--muted); }
.cat-head { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.cat-head__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cat-head__logo { align-self: center; height: 32px; width: auto; max-width: 120px; object-fit: contain; }
.cat-head h1 { font-size: 22px; line-height: 1.3; }
.cat-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cat-sub__item { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; background: #fff; }
.cat-sub__item span { background: var(--bg); color: var(--muted); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.cat-sub__item:hover { border-color: var(--brand); color: var(--brand); }

/* Danh mục con trên trang danh mục cha — loại "theo hãng": ô logo */
.sub-brands ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; padding: 0; list-style: none; }
.sub-brand { display: flex; align-items: center; justify-content: center; width: 134px; height: 38px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sub-brand:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sub-brand img { max-width: 100%; max-height: 28px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.sub-brand span { font-weight: 700; font-size: 14px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-brand .sub-brand__text { font-size: 16px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }

/* Loại "theo tính năng / loại sản phẩm": ảnh tròn + tên */
.sub-features ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 8px; margin: 8px 0 16px; padding: 0; list-style: none; }
.sub-feature { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #222; font-size: 12px; line-height: 1.35; }
.sub-feature__img { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #eef0f2; overflow: hidden; transition: box-shadow .15s; }
.sub-feature__img img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.sub-feature:hover { color: var(--brand); }
.sub-feature:hover .sub-feature__img { box-shadow: 0 0 0 2px var(--brand); }

/* Danh mục đang xem trong hàng cùng cấp */
/* Ô đang chọn: chỉ viền cam, giữ nền trắng — logo có nền trắng (Canon…) không lộ khung trắng trên nền màu */
.sub-brand.is-current { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #fff; }
.sub-feature.is-current { color: var(--brand-dark); font-weight: 600; }
.sub-feature.is-current .sub-feature__img { box-shadow: 0 0 0 2px var(--brand); background: #fff1ea; }
/* Hàng danh mục con (cấp dưới) khi phía trên đã có hàng cùng cấp: khung trắng riêng cho dễ phân biệt */
.sub--children { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 4px; margin-bottom: 14px; }
.sub--children ul { margin-top: 0; }
.sub-brands.sub--children ul { margin-bottom: 8px; }
.cat { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.cat-filter { background: var(--card); border-radius: var(--radius); padding: 14px 16px; position: sticky; top: 12px; }
.cat-filter summary { list-style: none; display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.cat-filter summary::-webkit-details-marker { display: none; }
.cat-filter summary em { font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; }
.cat-filter__group { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.cat-filter__group h2 { font-size: 14px; margin-bottom: 8px; }
.cat-filter__group ul { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.check i { flex: none; width: 16px; height: 16px; border: 1.5px solid #bbb; border-radius: 4px; position: relative; background: #fff; }
.check--radio i { border-radius: 50%; }
.check:hover i { border-color: var(--brand); }
.check.is-on { color: var(--brand); font-weight: 500; }
.check.is-on i { border-color: var(--brand); background: var(--brand); }
.check.is-on i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check--radio.is-on i { background: #fff; }
.check--radio.is-on i::after { left: 3px; top: 3px; width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--brand); transform: none; }
.cat-filter__clear { display: block; margin-top: 12px; text-align: center; border: 1px solid var(--brand); color: var(--brand); border-radius: 6px; padding: 7px; font-size: 13px; }
.cat-filter__clear:hover { background: var(--brand); color: #fff; }
.cat-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cat-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--card); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; }
.cat-sort__item { border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; background: #fff; }
.cat-sort__item:hover { border-color: var(--brand); color: var(--brand); }
.cat-sort__item.is-on { border-color: var(--brand-dark); background: #fff3ee; color: var(--brand-dark); font-weight: 500; }
.cat-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.cat-active a { background: #fff3ee; color: var(--brand-dark); border: 1px solid #ffd2bf; border-radius: 999px; padding: 3px 10px; }
.cat-empty { background: var(--card); border-radius: var(--radius); padding: 40px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pcard { height: 100%; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid transparent; border-radius: var(--radius); padding: 12px; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { color: inherit; border-color: var(--brand); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.pcard__img { position: relative; display: block; aspect-ratio: 1 / 1; margin-bottom: 4px; }
.pcard__pct { position: absolute; left: 0; top: 0; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; border-radius: 4px; padding: 1px 6px; }
.pcard__name { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pcard:hover .pcard__name { color: var(--brand); }
.pcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pcard__price .price { font-size: 16px; }
.pcard__rating { display: flex; align-items: center; gap: 4px; font-size: 12px; }
/* Nhãn trạng thái góc trên phải ảnh (Flash Sale / Hot Trend) + dòng lý do dưới giá — cùng màu tab khối Flash Sale trang chủ */
.pcard__tags { position: absolute; right: 0; top: 0; display: flex; gap: 4px; }
.pcard__tag { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.pcard__tag .icon { width: 13px; height: 13px; flex: none; }
/* Thuộc cả Flash Sale và Hot Trend: chỉ biểu tượng, ô tròn */
.pcard__tag--icon { width: 20px; height: 20px; padding: 0; justify-content: center; }
.pcard__meta { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__meta .icon { width: 13px; height: 13px; flex: none; }
.pcard__meta--flash { color: var(--red); font-weight: 500; }
.pcard__gift { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 4px; color: var(--brand); font-size: 12px; }
.pcard__gift b { color: var(--red); font-weight: 700; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-size: 14px; padding: 0 8px; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .pager__gap { border: 0; background: none; }
/* Trang không có cột bộ lọc (danh mục, thương hiệu, Flash Sale): danh sách rộng cả trang, 5 sản phẩm một hàng */
.cat--nofilter { grid-template-columns: minmax(0, 1fr); }
.cat--nofilter .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .pgrid, .cat--nofilter .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .cat { grid-template-columns: minmax(0, 1fr); }
  .cat-filter { position: static; }
  .cat-filter:not([open]) { padding: 10px 14px; }
  /* Bộ lọc gập sẵn ngay lần vẽ đầu: HTML để open (máy tính, không có JS), site.js gỡ open trên điện thoại rồi gắn is-ready. Trước 24/11
     điện thoại vẽ bộ lọc đang mở rồi mới gập lại -> danh sách sản phẩm nhảy lên (CLS 0,6). html.js do view.js gắn trong <head> */
  html.js .cat-filter:not(.is-ready) { padding: 10px 14px; }
  html.js .cat-filter:not(.is-ready) > :not(summary) { display: none; }
  .cat-head h1 { font-size: 19px; }
  .cat-sub { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .cat-sub__item { flex: none; }
  /* Điện thoại: hàng logo / ảnh tròn vuốt ngang */
  .sub-brands ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .sub-brand { flex: none; width: 112px; }
  /* Chừa 4px quanh hàng cuộn để viền tròn của ô đang chọn / rê chuột (box-shadow 2px) không bị cắt khuyết */
  .sub-features ul { display: flex; overflow-x: auto; gap: 6px; padding: 4px 4px 6px; margin-left: -4px; margin-right: -4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .sub-features ul::-webkit-scrollbar { display: none; }
  .sub-features li { flex: 0 0 84px; }
  /* Nhiều danh mục: 2 hàng, xếp theo cột, vuốt ngang */
  .sub-features--2rows ul { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 84px; grid-template-columns: none; row-gap: 12px; }
  .cat-sort { flex-wrap: nowrap; overflow-x: auto; }
  .cat-sort__item { flex: none; }
  .pgrid, .cat--nofilter .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcard { padding: 10px; }
}
.cat-sort > .muted, .cat-sort__opts > .muted { flex: none; white-space: nowrap; }
/* Trang danh mục: tên danh mục bên trái, "Sắp xếp theo" bên phải cùng một hàng */
.cat-sort--head { gap: 8px 16px; }
.cat-sort--head h1 { font-size: 22px; line-height: 1.3; }
.cat-sort__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 768px) {
  /* Tên danh mục 1 dòng, các nút sắp xếp xuống dòng dưới và vuốt ngang */
  .cat-sort--head { flex-wrap: wrap; overflow: visible; }
  .cat-sort--head h1 { font-size: 19px; }
  .cat-sort__opts { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin-left: 0; scrollbar-width: none; }
}

/* ---------- Trang chủ (Views/Home/Index.cshtml) ---------- */
.home { display: flex; flex-direction: column; gap: 20px; padding: 16px 0 8px; }
.home > .container { width: 100%; }
.home-title { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; }
.home-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; color: #333; }
.home-arrow:hover { color: var(--brand); border-color: var(--brand); }
.home-arrow--prev { left: -6px; }
.home-arrow--next { right: -6px; }
.home-arrow[hidden] { display: none; }

/* Banner lớn */
.home-hero { position: relative; overflow: hidden; border-radius: 12px; padding: 0; }
.home-hero__track { display: flex; transition: transform .45s ease; }
.home-hero__slide { flex: 0 0 100%; display: block; aspect-ratio: 1090 / 486; background: #eee; }
.home-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero__text { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 24px; text-align: center; font-size: 28px; font-weight: 700; color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-dark)); }
.home-hero .home-arrow--prev { left: 12px; }
.home-hero .home-arrow--next { right: 12px; }
.home-hero__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.home-hero__dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.6); cursor: pointer; transition: width .2s; }
.home-hero__dots button.is-active { width: 22px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .home-hero__track { transition: none; } }

/* Ô danh mục */
.home-cats { background: var(--card); border-radius: 12px; padding: 16px; }
.home-cats .home-title { margin-bottom: 12px; }
.home-cats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 14px 10px; }
.home-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.35; }
/* Ô danh mục: ảnh không nền (bỏ khung xám); multiply làm nền trắng của ảnh sản phẩm hoà vào nền thẻ */
.home-cat__img { position: relative; width: 76px; height: 76px; transition: transform .15s; }
.home-cat__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.home-cat:hover .home-cat__img { transform: translateY(-3px); }
.home-cat:hover { color: var(--brand); }
.home-cat__badge { position: absolute; top: -6px; right: -10px; background: var(--red); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; }

/* Hàng trượt ngang */
.hslider { position: relative; }
.hslider__track { --cols: 5; --gap: 10px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.hslider__track::-webkit-scrollbar { display: none; }
.hslider__track > li { scroll-snap-align: start; min-width: 0; }
.hslider .pcard { border-color: var(--line); }
.hslider--posts .hslider__track { --cols: 4; }

/* Flash Sale */
.flash-box { background: linear-gradient(180deg, #c81e16, #d83b00); border-radius: 12px; padding: 14px 16px 16px; }
.flash-box__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; color: #fff; }
.flash-box__title { font-size: 26px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .5px; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.flash-box__timer { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.flash-box__timer span { margin-right: 4px; }
.flash-box__timer b { min-width: 30px; text-align: center; background: #fff; color: var(--red); border-radius: 6px; padding: 3px 4px; font-size: 15px; }
.flash-box__timer i { font-style: normal; margin-right: 4px; }
.flash-box__timer [hidden] { display: none; }
.flash-item { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); }
.flash-item .pcard { flex: 1; border: 0; }
.flash-item__bar { position: relative; display: block; margin: 0 10px 10px; height: 18px; border-radius: 999px; background: #ffe2d6; overflow: hidden; }
.flash-item__bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffb37a, var(--brand)); border-radius: 999px; }
.flash-item__bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: 11px; line-height: 18px; color: #7a2400; font-weight: 500; }

/* Khối sản phẩm có tab */
.home-block { display: flex; flex-direction: column; gap: 12px; }
.home-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.home-tabs button { border: 0; background: #eceef1; color: #333; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.home-tabs button:hover { color: var(--brand); }
.home-tabs button.is-active { background: var(--red); color: #fff; font-weight: 500; }
/* Hàng tab dài hơn khung (điện thoại): mép mờ ở phía còn tab để biết vuốt được (home.js gắn class) */
.home-tabs.is-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.home-tabs.is-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
.home-tabs.is-more-left.is-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.home-more { align-self: center; display: inline-flex; margin: 12px auto 0; border: 1px solid #b8d2f4; color: var(--link); background: #fff; border-radius: 8px; padding: 6px 16px; font-size: 13px; }
.home-more:hover { border-color: var(--link); color: var(--link); }
[data-panel] { display: flex; flex-direction: column; }
[data-panel][hidden] { display: none; }

/* Hàng banner ảnh */
.home-banners { display: grid; gap: 12px; }
.home-banners--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-banners--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-banners--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-banner { display: block; border-radius: 12px; overflow: hidden; background: #eee; min-height: 120px; }
.home-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.home-banner:hover img { transform: scale(1.02); }

/* Logo thương hiệu */
.home-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.home-logo { display: flex; align-items: center; justify-content: center; height: 64px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; font-size: 15px; color: #333; text-align: center; letter-spacing: .3px; }
.home-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Sản phẩm đã xem (trang chủ) */
.viewed { background: #fff; border-radius: 12px; padding: 16px 18px; }
.viewed[hidden] { display: none; }
/* view.js (trong <head>) bật html.has-viewed trước khi vẽ nếu có sản phẩm đã xem: hiện sẵn khối với chiều cao cố định
   (hàng 112px, ô 108px, ẩn thanh cuộn) -> site.js điền danh sách sau mà khối Flash Sale bên dưới không bị đẩy */
html.has-viewed .viewed[hidden] { display: flex; } /* đúng kiểu hiển thị của .home-block (flex + gap) */
/* Trang sản phẩm (khối ngay trên "Thông tin sản phẩm"): bỏ qua sản phẩm đang xem nên chỉ giữ chỗ khi có sản phẩm khác (view.js: has-viewed-other) */
html.has-viewed .viewed--pdp[hidden] { display: none; }
html.has-viewed-other .viewed--pdp[hidden] { display: block; }
.viewed__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.viewed__head .home-title { margin: 0; text-transform: none; }
.viewed__clear { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.viewed__clear:hover { color: var(--red); }
/* Nút ‹ › trượt ngang: chỉ ở máy tính, và chỉ khi danh sách dài hơn khung (site.js bỏ hidden) */
.viewed__tools { display: flex; align-items: center; gap: 12px; }
.viewed__nav { display: none; align-items: center; gap: 6px; }
@media (min-width: 1025px) { .viewed__nav:not([hidden]) { display: flex; } }
.viewed__arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.viewed__arrow:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); }
.viewed__arrow:disabled { opacity: .35; cursor: default; }
.viewed__list { display: flex; gap: 12px; overflow-x: auto; list-style: none; margin: 0; padding: 0 0 4px; scroll-snap-type: x mandatory; min-height: 112px; scrollbar-width: none; }
.viewed__list::-webkit-scrollbar { display: none; }
.viewed__item { position: relative; flex: 0 0 280px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.viewed__item:hover { border-color: var(--brand); }
.viewed__link { display: flex; gap: 10px; min-height: 106px; padding: 10px 30px 10px 10px; color: inherit; }
.viewed__img { flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.viewed__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewed__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.viewed__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.viewed__price { color: var(--red); font-size: 15px; }
.viewed__old { color: var(--muted); font-size: 12px; }
.viewed__remove { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #6b7280; color: #fff; font-size: 14px; line-height: 20px; padding: 0; cursor: pointer; }
.viewed__remove:hover { background: var(--red); }
@media (max-width: 640px) { .viewed__item { flex-basis: 78%; } }
.brand-index { margin-top: 12px; }
.brand-index .home-logo { height: 72px; }
.brand-index__count { display: block; font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; }
/* Ô có logo: logo ở trên, số sản phẩm ở dưới */
.brand-index .home-logo.has-logo { flex-direction: column; gap: 4px; height: 84px; }
.brand-index .home-logo.has-logo img { max-height: 44px; }
.home-logo:hover { border-color: var(--brand); color: var(--brand); }

/* Tin tức / công trình */
.home-post { display: flex; flex-direction: column; gap: 8px; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.home-post:hover { border-color: var(--brand); color: inherit; }
.home-post__img { display: block; aspect-ratio: 16 / 9; background: #f0f2f5; }
.home-post__img .thumb { object-fit: cover; }
.home-post__title { padding: 0 10px 12px; font-size: 13px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-post:hover .home-post__title { color: var(--brand); }

.home .showrooms { margin-top: 0; }

/* Khối Flash Sale 3 tab (Flash Sale / Nổi bật / Khuyến mãi): mỗi trang 2 hàng × 6 sản phẩm, ‹ › sang trang kế */
.deal-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.deal-tabs button { border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; border-radius: 999px; padding: 7px 18px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: .3px; }
.deal-tabs button:hover { background: rgba(255,255,255,.15); }
.deal-tabs button.is-active { background: #fff; color: var(--red); border-color: #fff; }
.deal-box .flash-box__timer[hidden] { display: none; }
.deal-track { --cols: 1; }
.deal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.deal-grid .flash-item { min-width: 0; }
.deal-more { display: table; margin: 12px auto 0; color: #fff; font-weight: 500; font-size: 14px; }
.deal-more:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .hslider__track { --cols: 4; }
  .hslider--posts .hslider__track { --cols: 3; }
  .deal-track { --cols: 1; }
  .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .home { gap: 14px; padding-top: 10px; }
  .home-title { font-size: 17px; }
  .home-hero { border-radius: 8px; }
  .home-hero .home-arrow { display: none; }
  .hslider__track { --cols: 2; --gap: 8px; } /* đúng 2 sản phẩm vừa khít bề ngang, vuốt / ‹ › sang 2 sản phẩm kế */
  /* Khối "… bán chạy": 2 sản phẩm một hàng, cách mép màn hình 10px, giữa 2 ô 10px;
     vuốt dừng đúng mép 10px. Tiêu đề, tab, nút "Xem tất cả" giữ lề 16px */
  .home-block .hslider { margin-left: -16px; margin-right: -16px; }
  .home-block .hslider__track { --gap: 10px; padding: 2px 10px; scroll-padding-inline: 10px; }
  .home-block .hslider .home-arrow--prev { left: 4px; }
  .home-block .hslider .home-arrow--next { right: 4px; }
  .hslider--posts .hslider__track { --cols: 1.4; }
  /* Nút ‹ › trượt ngang: tròn trắng sát 2 mép, nằm giữa phần ảnh sản phẩm (ẩn khi đã ở đầu / cuối hàng — home.js) */
  .hslider .home-arrow { width: 34px; height: 34px; top: 36%; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
  .hslider .home-arrow--prev { left: -4px; }
  .hslider .home-arrow--next { right: -4px; }
  .home-cats__grid { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 84px; overflow-x: auto; scrollbar-width: none; }
  .home-cat__img { width: 64px; height: 64px; }
  .flash-box { padding: 12px 10px; }
  .flash-box__title { font-size: 21px; }
  .home-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .home-tabs button { flex: none; }
  /* Điện thoại: bỏ chia trang, 2 hàng × 2 cột = thấy 4 sản phẩm, trượt ngang xem tiếp (thanh trượt bên dưới) */
  .deal-track { --cols: 2; grid-template-rows: repeat(2, auto); }
  .deal-page, .deal-grid { display: contents; }
  .deal-track .flash-item { scroll-snap-align: start; } /* vuốt dừng đúng mép từng sản phẩm */
  /* Các nút tab chia đều một hàng (thấy đủ cả 4 nút, không phải vuốt) */
  .deal-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; width: 100%; }
  .deal-tabs button { font-size: 12px; padding: 6px 4px; line-height: 1.25; letter-spacing: 0; white-space: normal; }
  .home-banners--3, .home-banners--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Điện thoại ----------
   Đầu trang 1 thanh màu thương hiệu (logo · tìm kiếm · tài khoản · giỏ · Menu), menu danh mục trượt từ trái,
   banner tràn 2 mép, danh mục 1 hàng icon tròn vuốt ngang, chân trang gập theo cột */
.hd-menu, .hd-menu__close, .mcat, .nav-backdrop, .hscroll-bar { display: none; }
/* Đang giữ chuột kéo hàng trượt ngang (home.js dragScroll) */
.is-dragging { cursor: grabbing; user-select: none; }
/* Nút đổi giao diện điện thoại ⇄ máy tính (chân trang, chỉ hiện trên thiết bị màn hình nhỏ — site.js) */
.view-switch-wrap { display: flex; justify-content: center; padding: 4px 16px 16px; }
.view-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; color: #333; border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 14px; cursor: pointer; }
.view-switch[hidden] { display: none; }
.view-switch span { display: inline-flex; align-items: center; gap: 8px; }
.view-switch .icon { color: var(--hd-bg, var(--brand)); }
.view-switch__mob, .view-desktop .view-switch__desk { display: none !important; }
.view-desktop .view-switch__mob { display: inline-flex !important; }
/* Đang xem giao diện máy tính trên điện thoại: nút to hơn cho dễ bấm khi trang bị thu nhỏ */
.view-desktop .view-switch { font-size: 22px; padding: 14px 32px; }
.view-desktop .view-switch .icon { width: 30px; height: 30px; }
summary.site-footer__title { list-style: none; pointer-events: none; }
summary.site-footer__title::-webkit-details-marker { display: none; }
@media (max-width: 768px) {
  .topbar { display: none; }
  /* Header ghim trên cùng (04/12): .site-header chỉ GIỮ CHỖ (cao đúng bằng thanh), thanh bên trong (.headbar / .news-bar) mới
     position: fixed. KHÔNG dùng sticky: Safari iPhone khi vuốt quay lại (trang lấy từ bộ nhớ) báo vị trí cuộn = 0 trong ~0,45 giây
     rồi mới trả về chỗ cũ — phần tử sticky lúc đó nằm ở đầu trang (ngoài màn hình) nên header mất một nhịp, lộ nội dung bên dưới;
     fixed bám theo khung nhìn nên không mất (đo bằng máy thật iOS 18.7 + người dùng thử). --hd-m PHẢI bằng chiều cao thật của
     thanh (hàng logo 42px + đệm 7px × 2; thanh tin tức cũng 56px) — đổi chiều cao thanh thì đổi cả biến này.
     Bản trước: backup\truoc-header-nhay-safari-20261204 */
  .site-header { --hd-m: 56px; height: var(--hd-m); }
  .headbar, .news-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; min-height: var(--hd-m); }
  .headbar { background: var(--hd-bg); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
  /* Safari iPhone (04/12): ô nhập có chữ < 16px thì Safari TỰ PHÓNG TO cả trang khi chạm vào ô (form đặt hàng, trả góp, tài khoản,
     đánh giá, hỏi đáp, tìm kiếm tin, tra bảo hành đều 12–14px). Ép mọi ô nhập trên điện thoại 16px — !important có chủ ý: phải thắng
     mọi kiểu riêng của từng form (.field input, .rv-form textarea…), form mới thêm sau cũng tự đúng. Không áp cho nút bấm. */
  input:not([type="submit"]):not([type="button"]):not([type="reset"]), select, textarea { font-size: 16px !important; }
  .headmain__row { flex-wrap: nowrap; gap: 8px; padding: 7px 10px 7px 8px; }
  .logo__img { width: 42px; height: 42px; background: #fff; border-radius: 50%; }
  .logo__text { display: none; }
  .search { order: 0; flex: 1 1 auto; min-width: 0; max-width: none; height: 38px; border: 0; border-radius: 6px; padding: 0 2px 0 10px; }
  .search input { font-size: 16px; } /* ≥ 16px: iPhone không tự phóng to trang khi bấm vào ô */
  /* Gợi ý tìm kiếm: rộng hết màn hình ngay dưới thanh đầu trang (site.js đặt --sg-top), phần trang bên dưới tối lại */
  .search .suggest { position: fixed; left: 0; right: 0; top: var(--sg-top, 56px); max-height: calc(100vh - var(--sg-top, 56px)); max-height: calc(100dvh - var(--sg-top, 56px)); /* dvh: iPhone tính 100vh cả phần bị thanh công cụ Safari che */ border-radius: 0; padding: 4px 0; box-shadow: 0 100vh 0 100vh rgba(0,0,0,.45); overscroll-behavior: contain; }
  .search .suggest__cats { padding: 8px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .search .suggest__cats a { flex: none; font-size: 13px; padding: 5px 12px; }
  /* Mỗi sản phẩm: ảnh trái, tên đủ 2 dòng, giá + giá cũ ngay dưới tên */
  .search .suggest__item { grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 3px; padding: 8px 12px; border-bottom: 1px solid #f0f1f3; font-size: 14px; }
  .search .suggest__img { grid-row: 1 / span 2; width: 56px; height: 56px; }
  /* Cho xuống dòng: giá + giá cũ + quà không vừa một hàng trên màn hình hẹp (trước đây số tiền quà bị cắt) */
  .search .suggest__price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; white-space: normal; min-width: 0; }
  .search .suggest__price b { font-size: 15px; }
  .search .suggest__gift { flex: 0 0 100%; } /* quà nằm riêng một dòng dưới giá, hiện đủ số tiền */
  .search .suggest__gift b { font-size: 12px; }
  .search .suggest__price s { font-size: 12px; color: var(--muted); }
  .search .suggest__all { padding: 12px; font-size: 14px; }
  .search__icon { width: 34px; height: 34px; }
  .headmain__actions { gap: 10px; margin-left: 0; }
  .hd-flash, .hd-action { display: none; }
  .headbar a.hd-account, .headbar a.hd-cart, .hd-cart__icon { color: #fff; }
  .hd-account__icon .icon { fill: #fff; stroke: var(--hd-bg); }
  .hd-account__icon svg, .hd-cart__icon svg { width: 26px; height: 26px; }
  .hd-badge { border-color: var(--hd-bg); top: -6px; right: -8px; min-width: 18px; height: 18px; line-height: 14px; font-size: 10px; }
  html.has-cart .hd-badge[data-cart-count][hidden]::after { font-size: 10px; } /* số vẽ sớm (view.js) cùng cỡ chữ với số thật ở trên */
  .hd-menu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 46px; align-self: stretch; margin: -7px -10px -7px 0; padding: 0 8px; border: 0; background: none; color: #fff; font: inherit; font-size: 11px; line-height: 1.1; cursor: pointer; }
  .hd-menu__bars { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 3px 2px; }
  .hd-menu__bars i { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  /* ===== Bố cục cân với tai thỏ iPhone (04/12, người dùng chốt thứ tự): logo · đăng nhập · Ô TÌM · giỏ hàng · menu =====
     Trước đây: logo · ô tìm · đăng nhập · giỏ · menu — trái 1 nút, phải 3 nút nên tâm ô tìm lệch trái 36px so với tai thỏ (ở giữa màn hình).
     Giờ mỗi bên hai nút trong hai cột RỘNG BẰNG NHAU (88px) -> ô tìm nằm chính giữa. KHÔNG đổi HTML (máy tính giữ nguyên): hàng thành lưới 3 cột,
     khối .headmain__actions "tan" ra (display: contents) để từng nút tự vào cột. Kích thước logo / icon / nút Menu giữ nguyên như trước.
     Demo + số đo: wwwroot/demo/header-mobile.html. Bản trước: backup\truoc-header-mobile-can-tai-tho-20261204-1022 */
  .headmain__row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; column-gap: 10px; align-items: center; padding: 7px 8px; }
  .headmain__actions { display: contents; }
  .headmain__row > .logo { grid-area: 1 / 1; justify-self: start; }
  .headmain__actions > .hd-account { grid-area: 1 / 1; justify-self: start; margin-left: 54px; padding: 8px 0; }
  .headmain__row > .search { grid-area: 1 / 2; border-radius: 19px; padding: 0 2px 0 14px; }
  .headmain__row > .search input { text-overflow: ellipsis; } /* ô tìm hẹp hơn trước: chữ gợi ý dài thì "…" thay vì cắt ngang chữ */
  /* Chữ gợi ý trên ĐIỆN THOẠI = "Tìm kiếm" (04/12, người dùng: câu dài "Bạn tìm máy ảnh, ống kính gì?" không vừa ô hẹp). Thuộc tính placeholder
     không đổi theo cỡ màn hình được nên: làm trong suốt chữ gợi ý thật, vẽ chữ ngắn chồng lên khi ô còn trống. Máy tính vẫn dùng câu ở
     Quản trị › Header. Trình duyệt chưa có :has() thì giữ câu dài như cũ. */
  @supports selector(:has(a)) {
    .headmain__row > .search input::placeholder { color: transparent; }
    .headmain__row > .search:has(input:placeholder-shown)::before { content: "Tìm kiếm"; position: absolute; left: 14px; top: 0; line-height: 38px; font-size: 16px; color: #999; pointer-events: none; white-space: nowrap; }
  }
  .headmain__actions > .hd-cart { grid-area: 1 / 3; justify-self: end; margin-right: 54px; padding: 8px 0; }
  .headmain__actions > .hd-menu { grid-area: 1 / 3; justify-self: end; align-self: stretch; margin: -7px 0; padding: 0; }
  /* Menu: bảng "Danh mục sản phẩm" toàn màn hình thay cho thanh menu máy tính */
  .mainnav { display: none; }
  html.nav-open { overflow: hidden; }
  .mcat { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 90; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  html.nav-open .mcat { transform: none; visibility: visible; }
  .mcat__head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 12px 0 14px; border-bottom: 1px solid #e5e7eb; }
  .mcat__head b { font-size: 16px; font-weight: 600; color: #1f2937; }
  .mcat__close { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #6b7280; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
  .mcat__body { flex: 1 1 auto; display: flex; flex-direction: row-reverse; min-height: 0; }
  /* Cột phải (gần nút Menu): danh mục chính, mục đang chọn nền trắng chữ màu thương hiệu, vạch phải */
  .mcat__tabs { flex: none; width: 88px; overflow-y: auto; overscroll-behavior: contain; background: #f3f4f6; scrollbar-width: none; }
  .mcat__tabs button { position: relative; display: block; width: 100%; min-height: 56px; padding: 10px 8px; border: 0; border-bottom: 1px solid #e5e7eb; background: none; color: #374151; font: inherit; font-size: 13px; line-height: 1.35; text-align: left; cursor: pointer; }
  .mcat__tabs button[aria-selected="true"] { background: #fff; color: var(--hd-bg); font-weight: 600; }
  .mcat__tabs button[aria-selected="true"]::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--hd-bg); }
  /* Bên trái: lưới 3 cột danh mục con, ảnh trong ô vuông xám nhạt, tên bên dưới */
  .mcat__panes { flex: 1 1 auto; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 24px; }
  .mcat__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 2px 8px; }
  .mcat__title b { font-size: 14px; font-weight: 600; color: #1f2937; }
  .mcat__title a { flex: none; font-size: 12.5px; color: var(--link); }
  .mcat__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
  .mcat__grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #1f2937; font-size: 12.5px; line-height: 1.3; text-align: center; }
  .mcat__grid a > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mcat__img { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 6px; border-radius: 12px; background: #f3f4f6; color: var(--hd-bg); }
  .mcat__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
  .mcat__img--icon .icon { width: 28px; height: 28px; }
  .mcat__phones li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; padding: 8px 2px; border-bottom: 1px solid #f0f1f3; font-size: 13.5px; }
  .mcat__phones a { display: flex; align-items: center; gap: 8px; color: #374151; }
  .mcat__phones a .icon { color: var(--hd-bg); }
  .mcat__phones a b { color: #1a73e8; font-weight: 600; }
  .mcat__phones small { font-size: 12px; color: #6b7280; }
  .nav-backdrop { display: none !important; }
  /* Trang chủ */
  .home { padding-top: 0; }
  .home > .home-hero { border-radius: 0; }
  .home-cats { border-radius: 0; padding: 12px 0 8px; }
  .home-cats .home-title { padding: 0 12px; }
  .home-cats__grid { grid-template-rows: none; grid-auto-flow: column; grid-auto-columns: 82px; gap: 8px; padding: 2px 12px 4px; }
  .home-cat { font-size: 12.5px; gap: 6px; }
  .home-cat__img { width: 68px; height: 68px; padding: 10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.14); }
  .home-cat__img img { mix-blend-mode: normal; }
  /* Thanh chỉ vị trí khi vuốt hàng ngang (home.js): vạch xám mảnh, đoạn đậm = phần đang thấy */
  .hscroll-bar { display: block; position: relative; height: 3px; margin: 6px 12px 0; border-radius: 3px; background: #e6e6e6; overflow: hidden; }
  /* Ẩn bằng visibility (vẫn giữ chỗ 9px): home.js bật thanh sau khi vẽ, nếu ẩn bằng display:none thì khối bên dưới
     (Flash Sale…) bị đẩy xuống khi thanh hiện ra */
  .hscroll-bar[hidden] { visibility: hidden; }
  .hscroll-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #9a9a9a; will-change: transform; }
  /* Đoạn đậm chạy theo hàng vuốt bằng scroll-driven animation (không qua JS -> không giật): hàng [data-hscroll] đặt tên dòng thời gian
     --hs, khối cha mở phạm vi (timeline-scope) để thanh — là phần tử anh em — dùng được. Quãng đi --hs-end do home.js tính. */
  @supports (timeline-scope: --hs) and (animation-timeline: --hs) {
    :has(> [data-hscroll]) { timeline-scope: --hs; }
    [data-hscroll] { scroll-timeline: --hs x; }
    /* .is-css do home.js bản mới gắn: home.js bản cũ còn trong cache trình duyệt (không đặt --hs-end) thì vẫn dời bằng JS như trước */
    .hscroll-bar.is-css i { animation: hscroll-bar-move linear both; animation-timeline: --hs; }
  }
  @keyframes hscroll-bar-move { from { transform: translateX(0); } to { transform: translateX(var(--hs-end, 0%)); } }
  /* Trên nền đỏ Flash Sale: vạch trắng */
  .hscroll-bar--light { margin: 10px 0 0; background: rgba(255,255,255,.3); }
  .hscroll-bar--light i { background: #fff; }
  .home-logos { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 16px) / 3.3); gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .home-logo { height: 48px; font-size: 14px; }
  /* Chân trang: cột link gập lại, bấm tiêu đề để mở */
  .site-footer__col { border-bottom: 1px solid var(--line); }
  summary.site-footer__title { pointer-events: auto; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 12px 0; font-size: 13px; cursor: pointer; }
  summary.site-footer__title::after { content: "▾"; font-size: 14px; color: var(--muted); transition: transform .2s; }
  .site-footer__col[open] > summary.site-footer__title::after { transform: rotate(180deg); }
  .site-footer__col nav { padding-bottom: 8px; }
  .site-footer__grid { gap: 0; }
  .site-footer__brand { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  /* Trang sản phẩm — ảnh đại diện bản điện thoại: khung ảnh vuông cố định (không nhảy khi chuyển ảnh ⇄ video),
     viền xám mảnh bo 15px; dải ảnh nhỏ 64px ngay dưới; "Yêu thích · Hỏi đáp · Thông số · So sánh" chuyển xuống dưới dải ảnh */
  /* Lề 2 bên tối thiểu: các khối trắng tràn sát mép màn hình, không bo góc; chữ trong khối cách mép 10px */
  .product-page.container { padding-left: 0; padding-right: 0; }
  .product-page .breadcrumb { padding: 0 10px; }
  .pdp { gap: 8px; }
  .pdp section, .pdp .buy { border-radius: 0; }
  .pdp section { padding: 12px 10px; }
  .buy > *:not(.flash) { margin-left: 10px; margin-right: 10px; }
  .pdp .trust { padding: 0 10px; } /* 4 ô cam kết là ô nhỏ bo góc: thẳng hàng với chữ, cách mép 10px */
  .pdp .gallery { display: flex; flex-direction: column; padding: 0; margin: 0 10px; background: none; } /* khung ảnh cách mép màn hình 10px */
  .pdp .gallery__stage { order: 1; aspect-ratio: 1 / 1; border: 1px solid #d1d5db; border-radius: 15px; background: #fff; }
  /* Video 16:9 nằm giữa khung vuông, trên/dưới nền trắng như khung ảnh */
  .pdp .gallery__video-wrap { display: flex; align-items: center; overflow: hidden; background: #fff; }
  .pdp .gallery__video { position: relative; aspect-ratio: 16 / 9; height: auto; }
  /* Lớp phủ kéo/vuốt chỉ trong vùng video, chừa 48px trên/dưới cho nút YouTube: video bắt đầu cách mép trên 7/32 khung */
  .pdp .gallery__video-overlay { top: calc(21.875% + 48px); bottom: calc(21.875% + 48px); }
  /* Màn hình cảm ứng: nút YouTube (âm thanh, toàn màn hình, sao chép liên kết, thanh thời gian) rải khắp khung video
     -> bỏ lớp phủ để bấm được; chuyển ảnh bằng vuốt vùng trắng trên/dưới video hoặc dải ảnh nhỏ */
  @media (pointer: coarse) { .pdp .gallery__video-overlay { display: none; } }
  .pdp .gallery__slide { border-radius: 0; }
  .pdp .gallery__main { border: 0; border-radius: 0; }
  .pdp .gallery__strip-wrap { order: 2; margin-top: 10px; }
  /* Dải ảnh nhỏ: vuốt ngang, dừng gọn ở mép ảnh (đang kéo chuột thì tắt để không giật) */
  .pdp .gallery__strip { gap: 10px; scroll-snap-type: x proximity; scroll-padding-inline: 2px; -webkit-overflow-scrolling: touch; }
  .pdp .strip-item { scroll-snap-align: start; }
  .pdp .gallery__bar { order: 3; margin: 10px 0 0; }
  /* Giữ chỗ khi trình duyệt vẽ lúc HTML mới đọc được một phần (02/12, người dùng: thanh FLASH SALE "giật giật" trên điện thoại): khung mua
     đứng TRƯỚC khung ảnh trong HTML (H1 đầu tiên cho SEO) nhưng hiện SAU -> vẽ sớm thì khung mua nằm trên cùng rồi bị khung ảnh chen lên
     đẩy xuống ~500px; tương tự thanh Yêu thích / Hỏi đáp (đầu khung ảnh trong HTML, hiện cuối) bị ảnh lớn / dải ảnh nhỏ đẩy xuống.
     Phần chưa đọc tới được thay bằng ô trống cùng kích thước: khung ảnh = ảnh vuông + dải ảnh nhỏ (10 + 64) + thanh nút (10 + 23).
     Đổi chiều cao dải ảnh nhỏ / thanh nút thì sửa số ở đây. Đo: tools/toc-do/dong-ho-giat.js (cột top). */
  .pdp:not(:has(.gallery))::before { content: ""; order: 1; height: calc(100vw - 20px + 107px); }
  .pdp .gallery:not(:has(.gallery__stage))::before { content: ""; order: 1; aspect-ratio: 1 / 1; }
  .pdp .gallery:not(:has(.gallery__strip-wrap))::after { content: ""; order: 2; height: 64px; margin-top: 10px; }
  /* Yêu thích · Hỏi đáp · Thông số · So sánh: luôn 1 hàng, chia đều bề ngang (Android 360px vẫn vừa) */
  .pdp .gallery__actions { flex-wrap: nowrap; justify-content: space-between; }
  .pdp .gallery__actions a, .pdp .gallery__actions button { flex: 0 1 auto; min-width: 0; gap: 4px; font-size: 12.5px; padding: 2px 6px; white-space: nowrap; }
  .pdp .gallery__actions > :last-child { padding-right: 0; }
  .pdp .gallery__actions .icon { width: 15px; height: 15px; flex: none; }
  /* Tab "Thông tin sản phẩm | Thông số kỹ thuật": chữ 1 dòng (Android 360px); chỉ có 1 tab thì ẩn thanh tab */
  .info-tabs__bar { gap: 8px; }
  .info-tabs__bar button { padding: 10px 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .info-tabs__bar--single { display: none; }
  /* Cam kết (chính hãng, showroom, trả góp, giao hàng): dưới "Sản phẩm liên quan", ô thấp gọn — tiêu đề tối đa 2 dòng, mô tả 1 dòng */
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .trust li { gap: 8px; padding: 8px 10px; border-radius: 10px; }
  .trust__ic svg { width: 18px; height: 18px; }
  .trust li > span:last-child { min-width: 0; }
  .trust b { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .trust small { display: block; font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Đường dẫn trang: 1 hàng, vuốt ngang khi dài (site.js cuộn sẵn tới mục cuối) */
  .breadcrumb ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .breadcrumb ol::-webkit-scrollbar { display: none; }
  .breadcrumb li { flex: none; }
  /* Điện thoại: bỏ 4 nút mũi tên (ảnh lớn + dải ảnh nhỏ) — vuốt ngang để chuyển ảnh */
  .pdp .stage-nav, .pdp .strip-nav { display: none; }
  /* Nút mua thấp gọn: chữ phụ 1 dòng, cao ~46px (vẫn đủ lớn để bấm) */
  .buy__actions { gap: 6px; }
  .btn-buy, .btn-installment { justify-content: center; min-width: 0; min-height: 46px; padding: 4px 6px; line-height: 1.2; }
  .btn-buy { font-size: 14px; }
  .btn-installment { font-size: 12.5px; }
  .btn-buy small, .btn-installment small { display: block; max-width: 100%; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .btn-cart { width: 62px; padding: 3px 2px; }
  /* "Thêm giỏ hàng" không vừa 1 dòng trong nút 62px: cho xuống 2 dòng, không tràn ra ngoài khung */
  .btn-cart small { white-space: normal; text-align: center; line-height: 1.15; }
  .btn-cart svg { width: 18px; height: 18px; }
  /* "Nhấn số để gọi" gọn: "Bản đồ" lên góc phải cạnh tên chi nhánh, số điện thoại xếp lưới đều, nút chat thấp */
  /* Bỏ khung viền lớn bao cả khối: dải cam bo góc riêng, các chi nhánh thẳng mép với nội dung khung mua */
  .contacts { margin-top: 12px; border: 0; border-radius: 0; overflow: visible; }
  .contacts__head { border-radius: 8px; }
  .contacts__list { gap: 8px; padding: 8px 0 0; }
  .contact { position: relative; padding: 8px 10px 10px; border-radius: 8px; }
  .contact__region { margin-bottom: 2px; padding-right: 76px; font-size: 13.5px; }
  .contact__addr { margin-bottom: 7px; font-size: 11.5px; line-height: 1.4; color: #666; }
  .contact__region + .contact__chips { margin-top: 6px; }
  .contact__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  /* Số điện thoại: bỏ khung viền quanh từng số, chỉ còn icon + số (vẫn bấm để gọi) */
  .contact__chips { gap: 2px 6px; }
  .contact__chips .chip--phone { justify-content: flex-start; height: 28px; padding: 0; font-size: 13px; border: 0; border-radius: 0; background: none; }
  .contact__chips .chip--phone:hover { background: none; color: var(--brand-dark); }
  .contact__chips .chip--map { position: absolute; top: 7px; right: 8px; height: auto; padding: 2px 0; border: 0; border-radius: 0; background: none; color: var(--link); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
  /* 2 nút chat: icon nhỏ trên dòng tên chi nhánh, bên trái "Bản đồ" (không có địa chỉ thì sát phải) */
  .contact__chat { position: absolute; top: 4px; right: 8px; display: flex; gap: 5px; margin: 0; }
  .contact:has(.chip--map) .contact__chat { right: 62px; }
  .contact:has(.chip--map) .contact__region { padding-right: 186px; }
  .contact__region { padding-right: 128px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .contact__chips .chip--map { font-size: 11.5px; gap: 3px; }
  .contact__chat a { min-width: 30px; height: 26px; min-height: 0; padding: 0 6px; gap: 4px; border-radius: 6px; font-size: 11.5px; white-space: nowrap; }
  /* Zalo: huy hiệu đã có chữ "Zalo"; Messenger: hiện chữ "Messenger" cạnh icon (chữ "Chat" ẩn, trình đọc màn hình vẫn đọc) */
  .contact__chat-label { font-size: 0; }
  .contact__chat-name { font-size: 11.5px; font-weight: 500; }
  .contact__chat a:first-child .contact__chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.btn-buy__short { display: none; }
@media (max-width: 399px) {
  .btn-buy__long { display: none; }
  .btn-buy__short { display: inline; }
  /* "Bản đồ" chỉ còn icon ghim để tên chi nhánh + 2 nút chat vừa một dòng (chữ ẩn, trình đọc màn hình vẫn đọc) */
  .contact__chips .chip--map-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .contact:has(.chip--map) .contact__chat { right: 30px; }
  .contact:has(.chip--map) .contact__region { padding-right: 154px; }
}
@media (max-width: 768px) {
  /* Slide "Tính năng nổi bật" / "Hộp sản phẩm" trong khung thấp: chữ nhỏ lại, dài thì cuộn trong khung */
  .pdp .feature-slide { align-items: flex-start; padding: 12px 16px; overflow-y: auto; }
  .pdp .feature-slide__title { font-size: 16px !important; margin-bottom: 8px !important; }
  .pdp .feature-slide__text li { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
}

/* Đoạn giới thiệu danh mục */
.cat-desc { margin-top: 10px; font-size: 14px; line-height: 1.6; color: #444; }
.cat-desc p + p { margin-top: 6px; }
/* Nút "Xem thêm N sản phẩm" (tải thêm, không phân trang) */
.cat-more-wrap { display: flex; justify-content: center; margin: 16px 0 4px; }
.cat-more { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #eaf2ff; color: #2f6fe4; font-size: 15px; font-weight: 500; padding: 12px 40px; border-radius: 10px; cursor: pointer; white-space: nowrap; max-width: 100%; }
@media (max-width: 480px) { .cat-more { padding: 12px 20px; font-size: 14px; } }
.cat-more:hover { background: #dce9ff; }
.cat-more svg { width: 18px; height: 18px; }
.cat-more.is-loading { opacity: .6; cursor: progress; }
a.cat-more { text-decoration: none; }
/* Phân trang ngầm: link ?trang=N có sẵn trong HTML cho Google đi theo, không hiện trên giao diện (người dùng dùng "Xem thêm") */
.cat-pager { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Bài giới thiệu danh mục dưới danh sách sản phẩm: thu gọn ~320px, nút Xem thêm (site.js) */
.cat-desc-box { background: var(--card); border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; }
.cat-desc-box .cat-desc { margin-top: 0; position: relative; overflow-wrap: anywhere; }
.cat-desc-box.is-collapsible:not(.is-expanded) .cat-desc { max-height: 320px; overflow: hidden; }
.cat-desc-box.is-collapsible:not(.is-expanded) .cat-desc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--card)); }
.cat-desc h2 { font-size: 18px; margin: 18px 0 8px; line-height: 1.4; }
.cat-desc h3 { font-size: 16px; margin: 14px 0 6px; }
.cat-desc > div > h2:first-child, .cat-desc > h2:first-child { margin-top: 0; }
.cat-desc p { margin: 0 0 10px; }
.cat-desc ul, .cat-desc ol { padding-left: 22px; margin: 0 0 12px; }
.cat-desc ul { list-style: disc; }
.cat-desc ol { list-style: decimal; }
.cat-desc li p { margin: 0 0 4px; }
.cat-desc img { max-width: 100%; height: auto; display: block; margin: 10px auto; border-radius: 6px; }
.cat-desc table { border-collapse: collapse; width: 100%; margin: 0 0 12px; }
.cat-desc td, .cat-desc th { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.cat-desc-box .btn-more { margin-top: 12px; }

/* ---------- Giỏ hàng & đặt hàng (Views/Cart) ---------- */
.cart-page { max-width: 640px; padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 12px; }
.cart-box { background: var(--card); border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.cart-head { position: relative; text-align: center; padding: 2px 0 12px; border-bottom: 1px solid var(--line); margin: 0 -16px 4px; }
.cart-head h1 { font-size: 15px; font-weight: 600; }
.cart-head__back { position: absolute; left: 12px; top: 0; display: flex; padding: 2px; color: #555; }
.cart-items { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity .15s; }
.cart-item.is-busy { opacity: .5; pointer-events: none; }
.cart-item__img { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.cart-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; }
.cart-item__name { font-weight: 500; line-height: 1.4; }
.cart-item__name:hover { color: var(--brand); }
.cart-item__stock { color: var(--red); font-size: 12px; font-weight: 500; }
.cart-alert { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: #fdecec; color: #b3261e; font-size: 14px; }
.cart-alert--limit { margin: 12px 0 0; } /* vượt tổng đơn tối đa (/admin/cart-settings) — nằm dưới dòng Tạm tính */
.cart-alert--limit a { color: inherit; font-weight: 700; white-space: nowrap; }
.cart-item__color { color: var(--muted); font-size: 12px; }
.cart-item__remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.cart-item__remove:hover { color: var(--red); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.cart-item__side .price { font-size: 15px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; margin-top: 4px; }
.qty button { width: 28px; height: 26px; border: 0; background: none; font-size: 16px; cursor: pointer; color: #333; }
.qty button:hover { color: var(--brand); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 0; font-weight: 600; font-size: 14px; }
.cart-subtotal .price { font-size: 17px; }
.cart-quote { display: flex; justify-content: flex-end; padding-top: 10px; }
.cart-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 500; font-size: 13px; border: 0; }
.cart-btn:hover { color: #fff; filter: brightness(1.06); }
.cart-btn--blue { background: var(--blue); }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 0 20px; color: var(--muted); text-align: center; }
.cart-empty svg { color: #ccc; }

.checkout { display: flex; flex-direction: column; gap: 4px; padding: 0 16px; }
.checkout__sec { padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.checkout__sec + .checkout__sec { border-top: 6px solid var(--bg); margin: 0 -16px; padding: 16px; }
.checkout__sec h2 { font-size: 15px; font-weight: 600; }
.checkout__errors:not(:empty):not(.validation-summary-valid) { background: #fdecec; border: 1px solid #f5c2c0; color: #a01b14; border-radius: 8px; padding: 8px 12px; margin-top: 12px; font-size: 13px; }
.checkout__errors ul { margin: 0; padding-left: 16px; }
.validation-summary-valid { display: none; }
.radios { display: flex; gap: 16px; font-size: 14px; }
.radios--col { flex-direction: column; gap: 8px; }
.radios label, .checkout__toggles label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.radios input, .checkout__toggles input { accent-color: var(--blue); width: 16px; height: 16px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fgrid .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field input, .field select { width: 100%; height: 42px; border: 1px solid #d9dce1; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus { outline: 2px solid rgba(26,111,216,.2); border-color: var(--blue); }
.field__err { color: var(--red); font-size: 12px; }
.field__err:empty { display: none; }
.field:has(.field__err:not(:empty)) input, .field:has(.field__err:not(:empty)) select { border-color: var(--red); }
.checkout__hint { font-size: 13px; }
.checkout__hint b { color: var(--blue); font-weight: 500; }
.checkout__toggles { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.checkout__box { border: 1.5px solid var(--blue); border-radius: 8px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checkout__box[hidden] { display: none; }
.checkout__box legend { font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 0 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
/* Cách nhận hàng + phí vận chuyển */
.checkout__delivery { margin-top: 4px; }
.checkout__showrooms { border-color: var(--line); gap: 8px; font-size: 14px; }
.checkout__showrooms label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.checkout__showrooms input { margin-top: 3px; }
#ship-address[hidden] { display: none; }
.checkout__free { font-style: italic; color: var(--red); font-size: 12px; margin-left: 2px; }
.checkout__note { font-size: 12px; color: #555; background: #fff7e6; border-radius: 6px; padding: 6px 10px; }
.checkout__note[hidden], .checkout__sum .checkout__ship-hint[hidden] { display: none; }
.checkout__sum { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 14px; }
.checkout__sum p { display: flex; justify-content: space-between; gap: 12px; }
.checkout__sum .checkout__ship-hint { display: block; font-size: 12px; color: var(--muted); }
.checkout__total { font-size: 18px; font-weight: 700; }
.checkout__total .price { font-size: 20px; }
.checkout__submit { align-self: center; width: min(100%, 340px); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 16px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-size: 17px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.checkout__submit small { font-size: 12px; font-weight: 400; text-transform: none; opacity: .95; }
.checkout__submit:hover { filter: brightness(1.07); }
.checkout__submit:disabled { opacity: .6; cursor: wait; }
.checkout__terms { text-align: center; font-size: 12px; color: var(--muted); }
.checkout__terms a { color: var(--blue); }

.order-done__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.order-done__icon { width: 52px; height: 52px; border-radius: 50%; background: #e6f6ec; color: #1b7a3d; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.order-done__head h1 { font-size: 20px; color: #1b7a3d; }
.order-done__code { color: var(--brand); letter-spacing: .5px; }
.order-info { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.order-info dt { color: var(--muted); }
.order-info dd { margin: 0; }
.order-done__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.order-done__save { text-align: center; font-size: 12px; margin-top: 10px; }
.order-status { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 500; background: #eef0f3; }
.order-status--new { background: #fff3e0; color: #b45309; }
.order-status--confirmed { background: #e8f0fe; color: #1a56c4; }
.order-status--shipping { background: #ede7fe; color: #5b3cc4; }
.order-status--done { background: #e6f6ec; color: #1b7a3d; }
.order-status--cancelled { background: #fdecec; color: #b3261e; }

/* Nút mua dạng link (sản phẩm cần liên hệ) */
a.btn-buy { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; }
a.btn-buy:hover { color: #fff; }
.cart-icon em[hidden] { display: none; }

/* Thông báo nhỏ */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #1f2430; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #ffb37a; margin-left: 6px; font-weight: 500; }
.toast--err { background: #b3261e; }

@media (max-width: 480px) {
  .cart-page { padding: 10px 10px 24px; }
  .fgrid { grid-template-columns: 1fr; }
  .fgrid .span-2 { grid-column: auto; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-item__img { width: 64px; height: 64px; }
  .cart-item__side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .order-info { grid-template-columns: 1fr; gap: 2px; }
  .order-info dd { margin-bottom: 8px; }
}
.cart-item__gift { color: #1b7a3d; font-size: 12px; font-weight: 500; }
.cart-item--gift .cart-item__img { opacity: .9; }
/* Quà tặng kèm trong giỏ hàng */
.cart-gifts { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin: 2px 0 0 88px; padding: 8px 10px; background: #f3fbf6; border: 1px dashed #b9e2c8; border-radius: 8px; }
.cart-gifts li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.cart-gifts__img { width: 34px; height: 34px; background: #fff; border-radius: 6px; padding: 2px; }
.cart-gifts__name em { font-style: normal; color: #1b7a3d; font-weight: 600; margin-right: 4px; white-space: nowrap; }
.cart-gifts__price { white-space: nowrap; color: var(--muted); }
.cart-gifts__price b { color: #1b7a3d; }
@media (max-width: 480px) { .cart-gifts { margin-left: 0; } }

/* ---------- Tìm kiếm: gợi ý khi gõ + trang kết quả ---------- */
.search__form { position: relative; }
.search__clear { background: none; border: 0; color: var(--muted); font-size: 15px; padding: 0 8px; cursor: pointer; }
.search__clear:hover { color: var(--red); }
.search__clear[hidden] { display: none; }
.search__form input[type="search"]::-webkit-search-cancel-button { display: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); max-height: 70vh; overflow: auto; padding: 6px 0; text-align: left; }
.suggest[hidden] { display: none; }
.suggest__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 8px; border-bottom: 1px solid var(--line); }
.suggest__cats a { background: #fff3ee; color: var(--brand-dark); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.suggest__cats a[aria-selected="true"] { outline: 2px solid var(--brand); }
.suggest__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 12px; color: var(--text); font-size: 13px; }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: #f6f7f9; color: var(--text); }
.suggest__img { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.suggest__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Gợi ý tìm kiếm: quà tặng kèm + nhãn hết hàng cạnh giá */
.suggest__gift { margin-top: 0; padding-top: 0; white-space: nowrap; } /* cùng kiểu .pcard__gift của thẻ sản phẩm (màu thương hiệu, số tiền đỏ đậm) */
.suggest__out { font-style: normal; font-size: 12px; color: #667085; background: #f2f4f7; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
/* Khung gợi ý nằm trong header (link chữ trắng): đặt màu chữ riêng cho tên sản phẩm */
.suggest .suggest__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; color: #111; }
.suggest .suggest__item:hover .suggest__name, .suggest .suggest__item[aria-selected="true"] .suggest__name { color: #000; }
.suggest__price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.suggest__price b { color: var(--red); }
.suggest__price s { font-size: 11px; }
.suggest__all { display: block; text-align: center; padding: 9px; border-top: 1px solid var(--line); color: var(--link); font-weight: 500; font-size: 13px; }
.suggest__all[aria-selected="true"], .suggest__all:hover { background: #f6f7f9; }
.suggest__empty { padding: 12px 14px; color: var(--muted); font-size: 13px; }
.suggest__empty a { color: var(--link); font-weight: 600; }
.search-big { display: flex; gap: 8px; margin-top: 12px; max-width: 640px; }
.search-big input { flex: 1; height: 40px; border: 1px solid #d9dce1; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; }
.search-big input:focus { outline: 2px solid rgba(255,72,0,.2); border-color: var(--brand); }
.search-big button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.search-dym { font-weight: 700; color: var(--link); }

/* ---------- Tin tức (/tin.html, /tin/{slug}.html) ---------- */
.news-page { padding-bottom: 24px; }
.news-page .breadcrumb li[aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.news-nav ul { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 4px; margin: 4px 0 12px; list-style: none; scrollbar-width: none; }
.news-nav a { display: inline-flex; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: #333; }
.news-nav a:hover { border-color: var(--brand); color: var(--brand-dark); }
.news-nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.news-nav__sub { margin-top: -4px !important; }
.news-nav__sub a { background: #fff7f3; border-color: #ffd9c7; font-size: 12.5px; padding: 4px 12px; }
.news-head { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 14px; }
.news-head h1 { font-size: 24px; margin: 0; }
.news-head__intro { margin: 8px 0 0; color: #444; line-height: 1.6; }
.news-featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
.news-featured__side { display: grid; gap: 10px; }
.news-featured__side .news-card { grid-template-columns: 140px 1fr; display: grid; }
.news-featured__side .news-card__sum { display: none; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card { background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.news-card__img { display: block; aspect-ratio: 16 / 9; background: #f1f3f5; overflow: hidden; }
.news-card__img img, .news-card__img .thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.news-card:hover .news-card__img img { transform: scale(1.03); }
.news-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card__cat { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--brand-dark); letter-spacing: .3px; }
.news-card__title { font-size: 15px; line-height: 1.4; margin: 0; }
.news-card__title a { color: #222; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__title a:hover { color: var(--brand-dark); }
.news-card__sum { margin: 0; font-size: 13px; color: #555; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__date { margin-top: auto; font-size: 12px; color: var(--muted); }
.news-card--big .news-card__title { font-size: 21px; }
.news-card--big .news-card__sum { -webkit-line-clamp: 3; font-size: 14px; }
.news-aside { display: grid; gap: 14px; position: sticky; top: 120px; }
.news-box { background: #fff; border-radius: 10px; padding: 14px 16px; }
.news-box h2 { font-size: 16px; margin: 0 0 10px; padding-left: 10px; border-left: 4px solid var(--brand); }
.news-rank { margin: 0; padding: 0; list-style: none; counter-reset: rank; display: grid; gap: 10px; }
.news-rank li { counter-increment: rank; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.news-rank li::before { content: counter(rank); font-weight: 800; font-size: 18px; color: var(--brand); line-height: 1.1; }
.news-rank a { color: #222; }
.news-rank a:hover { color: var(--brand-dark); }
.news-cats { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.news-cats a { display: flex; justify-content: space-between; padding: 6px 4px; border-radius: 6px; font-size: 13.5px; color: #333; }
.news-cats a:hover { background: #fff3ee; color: var(--brand-dark); }
.news-cats span { color: var(--muted); font-size: 12px; }
/* Bài viết */
.news-article { background: #fff; border-radius: 10px; padding: 22px 28px 26px; min-width: 0; }
.news-article__head h1 { font-size: 28px; line-height: 1.3; margin: 6px 0 10px; }
.news-article__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.news-article__meta b { color: #333; }
.news-article__sum { font-size: 16px; font-weight: 500; line-height: 1.6; color: #333; margin: 0 0 16px; }
.news-toc { background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; margin: 0 0 18px; }
.news-toc summary { font-weight: 700; cursor: pointer; }
.news-toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.news-toc .news-toc__l3 { margin-left: 16px; list-style: circle; }
.news-toc a { color: var(--link); }
.news-content { font-size: 16px; line-height: 1.75; color: #222; overflow-wrap: anywhere; }
.news-content h2 { font-size: 22px; margin: 26px 0 10px; scroll-margin-top: 130px; }
.news-content h3 { font-size: 18px; margin: 20px 0 8px; scroll-margin-top: 130px; }
.news-content p { margin: 0 0 14px; }
.news-content img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 10px auto; }
/* Link trong nội dung (bài sản phẩm, bài tin, mô tả danh mục / chuyên mục): màu link + gạch chân để nhận ra không chỉ nhờ màu
   (WCAG 1.4.1, Lighthouse "link-in-text-block"); màu #1763c4 đạt tương phản 5:1 trên nền trắng. Bỏ màu cứng (cam nhạt…) dán từ bài gốc. */
.article article a[href], .news-content a[href], .cat-desc a[href], .news-head__intro a[href] {
  color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 500;
}
.article article a[href] *, .news-content a[href] *, .cat-desc a[href] *, .news-head__intro a[href] * { color: inherit !important; }
.article article a[href]:hover, .news-content a[href]:hover, .cat-desc a[href]:hover, .news-head__intro a[href]:hover {
  color: var(--brand-dark); text-decoration-thickness: 2px;
}
.article article a[href]:visited, .news-content a[href]:visited { color: #5b3ea8; }
.article article a[href]:focus-visible, .news-content a[href]:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
/* Ảnh / video bọc trong link: không gạch chân */
.article article a[href]:has(> img), .news-content a[href]:has(> img), .article article .yt-facade, .news-content .yt-facade { text-decoration: none; }
.news-content ul, .news-content ol { padding-left: 24px; margin: 0 0 14px; }
.news-content blockquote { margin: 14px 0; padding: 10px 16px; border-left: 4px solid var(--brand); background: #fff7f3; }
.news-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.news-content figure { margin: 14px 0; text-align: center; }
.news-content figcaption { text-align: center; font-size: 13px; color: var(--muted); }
.news-table { overflow-x: auto; margin: 0 0 14px; }
.news-table table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.news-table td, .news-table th { border: 1px solid #d9dce1; padding: 6px 10px; vertical-align: top; }
.news-article__foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.news-tags a { background: #f1f3f5; border-radius: 999px; padding: 3px 10px; color: #444; font-size: 12px; }
.news-related { margin-top: 22px; }
.news-related h2 { font-size: 20px; margin: 0 0 12px; }
@media (max-width: 1024px) {
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-aside { position: static; }
  .news-grid, .news-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured__side .news-card { grid-template-columns: 110px 1fr; }
  .news-grid, .news-grid--3 { grid-template-columns: 1fr; }
  .news-article { padding: 16px; }
  .news-article__head h1 { font-size: 22px; }
  .news-content { font-size: 15.5px; }
}

/* ================= Trang tin tức /tin.html ================= */
.nh { --nh-orange: #f15928; display: flex; flex-direction: column; gap: 22px; padding-top: 16px; padding-bottom: 8px; }
.nh-top, .nh-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.nh-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.nh-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Bài lớn: ảnh + tiêu đề trên nền tối */
.nh-hero { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: #222; }
.nh-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nh-hero:hover img { transform: scale(1.03); }
.nh-hero__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 20px; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* Hàng trượt 3 bài dưới bài lớn */
.nh-slider { position: relative; }
.nh-slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nh-slider__track::-webkit-scrollbar { display: none; }
.nh-slider__track > li { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.nh-slider__img { display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #f2f2f2; }
.nh-slider__img img { width: 100%; height: 100%; object-fit: cover; }
.nh-slider__title { font-size: 13px; line-height: 1.45; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-slider__title:hover, .nh-side__title:hover, .nh-row__title a:hover { color: var(--nh-orange); }
.nh-arrow { position: absolute; top: calc(50% - 30px); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 20px; line-height: 1; cursor: pointer; color: #333; }
.nh-arrow--prev { left: -10px; }
.nh-arrow--next { right: -10px; }

/* Khung cột phải: thanh tiêu đề cam, tiêu đề trái + ảnh phải, nút ‹ › */
.nh-box { background: #fff; border: 1px solid #eee; }
.nh-box__head { background: var(--nh-orange); color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; padding: 9px 12px; }
.nh-box__head a { color: inherit; }
.nh-side { display: flex; flex-direction: column; }
.nh-side[hidden] { display: none; }
.nh-side > li { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.nh-side > li:last-child { border-bottom: 0; }
.nh-side__title { font-size: 13px; line-height: 1.45; color: #333; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh-side__img { display: block; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #f2f2f2; }
.nh-side__img img { width: 100%; height: 100%; object-fit: cover; }
.nh-side--big > li { grid-template-columns: minmax(0, 1fr) 140px; }
.nh-pager { display: flex; justify-content: center; gap: 6px; padding: 8px 0 10px; }
.nh-pager button { width: 26px; height: 26px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; font-size: 16px; line-height: 1; color: #555; }
.nh-pager button:hover { border-color: var(--nh-orange); color: var(--nh-orange); }

/* Danh sách bài: ảnh trái, tiêu đề in hoa, tóm tắt */
.nh-head { border-bottom: 2px solid var(--nh-orange); margin-bottom: 4px; }
.nh-head span { display: inline-block; background: var(--nh-orange); color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; padding: 8px 14px; }
.nh-rows { display: flex; flex-direction: column; }
.nh-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid #eee; }
.nh-row:last-child { border-bottom: 0; }
.nh-row__img { display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #f2f2f2; }
.nh-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nh-row__img:hover img { transform: scale(1.04); }
.nh-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nh-row__title { font-size: 15px; font-weight: 600; text-transform: uppercase; line-height: 1.45; }
.nh-row__title a { color: #222; }
.nh-row__sum { font-size: 13px; line-height: 1.6; color: #666; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh-row__date { font-size: 12px; color: #999; }

/* Tin khuyến mãi: nền xám, tiêu đề thường */
.nh-promo { background: #f4f4f4; border-radius: 6px; padding: 12px 16px 4px; }
.nh-promo__head { font-size: 14px; font-weight: 700; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid #e2e2e2; }
.nh-promo__head a { color: #212121; }
.nh-promo .nh-row { border-color: #e6e6e6; }
.nh-promo .nh-row__title { text-transform: none; }

.nh-more-wrap { display: flex; justify-content: center; padding: 14px 0 4px; }
.nh-more { display: inline-block; border: 1px solid #ddd; border-radius: 4px; padding: 8px 46px; font-size: 13px; text-transform: uppercase; color: #555; background: #fff; }
.nh-more:hover { border-color: var(--nh-orange); color: var(--nh-orange); }
.nh-more.is-loading { opacity: .6; pointer-events: none; }

/* Sản phẩm mới */
.nh-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.nh-products__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
.nh-product { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; color: #333; }
.nh-product__img { display: block; aspect-ratio: 1; background: #fff; border-radius: 6px; overflow: hidden; }
.nh-product__img img { width: 100%; height: 100%; object-fit: contain; }
.nh-product__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nh-product__name { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-product__price { color: var(--red); font-size: 14px; }
.nh-product:hover .nh-product__name { color: var(--nh-orange); }

@media (max-width: 1024px) {
  .nh-top, .nh-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .nh-row { grid-template-columns: 180px minmax(0, 1fr); }
  .nh-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .nh-top, .nh-body { grid-template-columns: minmax(0, 1fr); }
  .nh-hero__title { font-size: 18px; padding: 40px 14px 12px; }
  .nh-slider__track { grid-auto-columns: 62%; }
  .nh-arrow { display: none; }
  .nh-row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .nh-row__title { font-size: 13px; }
  .nh-row__sum { -webkit-line-clamp: 2; font-size: 12px; }
  .nh-products__grid { grid-template-columns: minmax(0, 1fr); }
}
/* ================= Menu riêng trang tin tức (Views/Shared/_NewsHeader.cshtml) ================= */
.news-bar { background: var(--hd-bg, #3f8f3a); color: var(--hd-fg, #fff); }
.news-bar__row { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.news-bar__logo { flex: none; display: flex; width: 40px; height: 40px; border-radius: 50%; background: #fff; overflow: hidden; }
.news-bar__logo img { width: 100%; height: 100%; object-fit: contain; }
.news-bar__search { flex: none; position: relative; width: 210px; }
.news-bar__search input { width: 100%; height: 34px; border: 0; border-radius: 999px; padding: 0 36px 0 14px; font: inherit; font-size: 14px; background: #fff; color: #333; }
.news-bar__search button { position: absolute; right: 4px; top: 3px; width: 28px; height: 28px; border: 0; background: none; color: #888; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.news-bar__toggle { display: none; margin-left: auto; border: 0; background: none; color: inherit; cursor: pointer; padding: 6px; }
.news-bar__nav { flex: 1; min-width: 0; }
.news-bar__nav > ul { display: flex; justify-content: space-between; gap: 4px; }
.news-bar__nav > ul > li { position: relative; }
.news-bar__nav > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 15px 8px; color: inherit; font-size: 14px; font-weight: 500; text-transform: uppercase; white-space: nowrap; }
.news-bar__nav > ul > li > a:hover, .news-bar__nav > ul > li.is-active > a { background: rgba(0,0,0,.12); }
.news-bar__caret { display: inline-flex; opacity: .9; }
.news-bar__head { display: none; }
.news-bar__sub { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 0 0 6px 6px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 6px 0; z-index: 50; }
.news-bar__nav li:last-child .news-bar__sub { left: auto; right: 0; }
.news-bar__nav li.has-sub:hover > .news-bar__sub, .news-bar__nav li.has-sub:focus-within > .news-bar__sub { display: block; }
.news-bar__sub a { display: block; padding: 9px 16px; color: #333; font-size: 14px; }
.news-bar__sub a:hover { background: #f4f6f4; color: var(--brand); }

@media (max-width: 1024px) {
  .news-bar__nav > ul > li > a { font-size: 13px; padding: 15px 5px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .news-bar__nav > ul > li > a svg:first-child:not(:only-child) { display: none; }
}
@media (max-width: 768px) {
  /* Điện thoại (20/11): menu là bảng trắng nổi dưới thanh tin tức — mỗi dòng có icon, chuyên mục con gập lại,
     bấm mũi tên để mở (site.js), chuyên mục đang xem mở sẵn; chuyên mục con xếp 2 cột */
  .news-bar__row { position: relative; flex-wrap: wrap; gap: 10px; padding: 8px 0; min-height: 0; }
  .news-bar__search { flex: 1; width: auto; }
  .news-bar__toggle { display: flex; margin-left: 0; border-radius: 8px; }
  .news-bar__toggle[aria-expanded="true"] { background: rgba(0,0,0,.2); }
  /* Bảng phủ kín màn hình, trượt từ phải qua trái — cùng kiểu bảng danh mục .mcat của web */
  .news-bar__nav { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 90; background: #fff; color: #222; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .news-bar__nav.is-open { transform: none; visibility: visible; }
  html.news-nav-open { overflow: hidden; }
  .news-bar__head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 12px 0 14px; border-bottom: 1px solid #e5e7eb; }
  .news-bar__head b { font-size: 16px; font-weight: 600; color: #1f2937; }
  .news-bar__close { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #6b7280; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
  .news-bar__nav > ul { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; flex-direction: column; justify-content: flex-start; gap: 0; }
  .news-bar__nav > ul > li + li { border-top: 1px solid #eef0f2; }
  .news-bar__nav > ul > li > a { gap: 12px; min-height: 50px; padding: 0 0 0 12px; font-size: 14px; font-weight: 600; text-transform: none; color: #222; }
  .news-bar__nav > ul > li > a:hover { background: none; }
  .news-bar__nav > ul > li.is-active > a { background: none; color: var(--hd-bg, #3f8f3a); }
  .news-bar__nav > ul > li > a > svg { flex: none; box-sizing: content-box; width: 18px; height: 18px; padding: 7px; border-radius: 9px; background: #eef5ee; color: var(--hd-bg, #3f8f3a); }
  .news-bar__nav > ul > li.is-active > a > svg { background: var(--hd-bg, #3f8f3a); color: #fff; }
  .news-bar__nav > ul > li > a > span:not(.news-bar__caret) { flex: 1; min-width: 0; }
  .news-bar__nav > ul > li:not(.has-sub) > a { padding-right: 12px; }
  .news-bar__caret { flex: none; align-self: stretch; width: 52px; align-items: center; justify-content: center; border-left: 1px solid #eef0f2; color: #667; opacity: 1; }
  .news-bar__caret svg { width: 16px; height: 16px; transition: transform .2s; }
  .news-bar__nav li.is-open > a .news-bar__caret svg { transform: rotate(180deg); }
  .news-bar__nav li.has-sub > .news-bar__sub, .news-bar__nav li.has-sub:hover > .news-bar__sub, .news-bar__nav li.has-sub:focus-within > .news-bar__sub { display: none; }
  .news-bar__nav li.has-sub.is-open > .news-bar__sub { display: grid; }
  .news-bar__sub { position: static; grid-template-columns: 1fr 1fr; gap: 6px; box-shadow: none; background: none; border-radius: 0; padding: 0 12px 12px; min-width: 0; }
  .news-bar__sub a { display: flex; align-items: center; min-height: 38px; padding: 6px 10px; border-radius: 8px; background: #f4f6f8; color: #333; font-size: 13px; line-height: 1.3; }
  .news-bar__sub a:hover { background: #eef5ee; color: var(--hd-bg, #3f8f3a); }
}
/* ---------- Tài khoản khách hàng /tai-khoan.html (đăng nhập Google / mã email, thông tin, đơn hàng) ---------- */
.acc-page { padding-top: 24px; padding-bottom: 40px; }
.acc-card { max-width: 440px; margin: 0 auto; background: var(--card); border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,.06); padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.acc-card--wide { max-width: 680px; }
.acc-card__logo { align-self: center; width: 64px; height: 64px; border-radius: 50%; }
.acc-card h1 { text-align: center; font-size: 22px; }
.acc-card__sub { text-align: center; color: var(--muted); font-size: 13px; margin-top: -6px; }
.acc-alert { background: #eaf3ff; border: 1px solid #c4dcfb; color: #134a91; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.acc-alert--err { background: #fdecec; border-color: #f5c2c0; color: #a01b14; }
.acc-alert--dev { background: #fff7e6; border-color: #ffd98a; color: #6b4a00; }
.acc-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1px solid #d9dce1; border-radius: 8px; background: #fff; font-weight: 500; font-size: 15px; color: #222; }
.acc-google:hover { background: #f7f8fa; border-color: #c4c8ce; color: #222; }
.acc-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acc-form { display: flex; flex-direction: column; gap: 12px; }
.acc-form__label { font-size: 13px; font-weight: 500; }
.acc-form__label i { color: var(--red); font-style: normal; }
.acc-form .field input:disabled { background: #f4f5f7; color: var(--muted); }
.acc-btn { height: 46px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; }
.acc-btn:hover { background: var(--brand-dark); }
.acc-profile .acc-btn { align-self: flex-start; min-width: 220px; padding: 0 24px; }
.acc-card .acc-profile .acc-btn { align-self: stretch; }
.acc-note { font-size: 12px; color: var(--muted); text-align: center; }
.acc-email { text-align: center; font-weight: 700; color: var(--blue); }
.acc-code { text-align: center; font-size: 26px !important; letter-spacing: 10px; font-weight: 700; height: 54px !important; }
.acc-links { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.acc-links .link-btn { padding: 0; font-size: 13px; }
.acc-terms { text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.acc-terms a { color: var(--link); }
.acc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; margin-top: 12px; }
.acc-side { background: var(--card); border-radius: 12px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: sticky; top: 140px; }
.acc-side__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-soft); margin-bottom: 6px; }
.acc-side__name { font-weight: 700; font-size: 16px; }
.acc-side__mail { color: var(--muted); font-size: 13px; word-break: break-all; }
.acc-side__badge { font-size: 12px; color: #137333; background: #e6f4ea; border-radius: 99px; padding: 2px 10px; margin-top: 4px; }
.acc-side__nav { width: 100%; margin: 12px 0 8px; border-top: 1px solid var(--line); text-align: left; }
.acc-side__nav a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.acc-logout { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 24px; color: var(--muted); }
.acc-logout:hover { border-color: var(--red); color: var(--red); }
.acc-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acc-box { background: var(--card); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 140px; }
.acc-box h1, .acc-box h2 { font-size: 18px; }
.acc-orders { display: flex; flex-direction: column; gap: 10px; }
.acc-order { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text); }
.acc-order:hover { border-color: var(--blue); color: var(--text); }
.acc-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.acc-order__head .order-status { margin-left: auto; }
.acc-order__items { font-size: 13px; color: #444; }
.acc-order__total { font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 768px) {
  .acc-page { padding-top: 12px; }
  .acc-card { padding: 22px 16px 18px; }
  .acc-layout { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-profile .acc-btn { align-self: stretch; }
}
/* ---------- Ô chọn có tìm kiếm (select[data-combo] -> .combo, site.js): tỉnh / thành, phường / xã ---------- */
.combo__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.combo { position: relative; }
.combo__btn { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid #d9dce1; border-radius: 6px; background: #fff; color: var(--text); font-size: 14px; text-align: left; }
.combo__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo__btn::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid #888; border-bottom: 2px solid #888; transform: rotate(45deg) translateY(-3px); }
.combo__btn.is-empty { color: #757575; }
.combo__btn:disabled { background: #f4f5f7; color: #9a9a9a; cursor: not-allowed; }
.combo__btn:focus-visible, .combo__btn[aria-expanded="true"] { outline: 2px solid rgba(26,111,216,.2); border-color: var(--blue); }
.field:has(.field__err:not(:empty)) .combo__btn { border-color: var(--red); }
.combo__panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #d9dce1; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px; }
.combo__search { width: 100%; height: 38px !important; border: 1px solid #d9dce1; border-radius: 6px; padding: 0 10px; font: inherit; }
.combo__search:focus { outline: 2px solid rgba(26,111,216,.2); border-color: var(--blue); }
.combo__list { max-height: 260px; overflow-y: auto; margin-top: 6px; }
.combo__list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.combo__list li.is-active { background: #eaf3ff; }
.combo__list li[aria-selected="true"] { font-weight: 700; color: var(--blue); }
.combo__list:empty::after, .combo__list[data-empty="Không tìm thấy"]::after { content: "Không tìm thấy"; display: block; padding: 10px; color: var(--muted); font-size: 13px; }
.combo__list[data-empty=""]::after { content: none; }
/* ---------- Trang tài khoản (bố cục mẫu TGDĐ): thanh bên màu thương hiệu + đơn hàng theo tab ---------- */
.acc-layout { grid-template-columns: 320px 1fr; gap: 20px; }
.acc-side { padding: 0; gap: 0; align-items: stretch; text-align: left; overflow: hidden; border-radius: 16px; top: 150px; }
.acc-side__top { background: linear-gradient(135deg, var(--brand), #f26b1d); color: #fff; padding: 20px 16px 28px; }
.acc-side__name { font-size: 22px; font-weight: 700; line-height: 1.25; }
.acc-side__phone { font-size: 15px; margin-top: 2px; opacity: .95; }
.acc-member { background: #fff; color: var(--text); border-radius: 10px; padding: 12px 14px; margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.acc-member__stat { font-size: 14px; }
.acc-member__stat b { font-weight: 700; }
.acc-member__since { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; word-break: break-all; }
.acc-menu { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 8px; margin-top: -14px; background: #fff; border-radius: 16px 16px 0 0; position: relative; }
.acc-menu a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; font-size: 15px; color: var(--text); }
.acc-menu a:hover { background: #f6f7f9; color: var(--text); }
.acc-menu a.is-active { background: var(--brand-soft); font-weight: 500; }
.acc-menu__icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.acc-menu__icon--green { background: #e6f6ec; color: #1e9e4a; }
.acc-menu__icon--blue { background: #e7f1fd; color: #1763c4; }
.acc-menu__icon--pink { background: #fbeaf6; color: #c0389b; }
.acc-logout-form { padding: 8px 12px 18px; text-align: center; }
.acc-logout { border: 0; background: none; color: var(--red); font-size: 15px; padding: 8px 16px; }
.acc-logout:hover { text-decoration: underline; }
.acc-box { border-radius: 16px; }
.acc-box__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.acc-box__head h1 { font-size: 22px; font-weight: 500; }
.acc-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.acc-tabs a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; padding: 6px 8px; border: 1px solid #d9dce1; border-radius: 8px; font-size: 14px; color: var(--text); }
.acc-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.acc-tabs a.is-active { border-color: var(--blue); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 500; }
.acc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 0; color: var(--muted); }
.acc-btn--sm { height: 38px; display: inline-flex; align-items: center; padding: 0 22px; color: #fff; }
.acc-btn--sm:hover { color: #fff; }
.acc-orders { gap: 14px; }
.acc-order { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px; }
.acc-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acc-order__code { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.acc-order__code a { color: var(--blue); }
.acc-order__date { font-size: 12px; }
.acc-copy { border: 0; background: none; color: #888; font-size: 16px; padding: 0 4px; line-height: 1; }
.acc-copy:hover { color: var(--blue); }
.acc-order__status { font-weight: 500; white-space: nowrap; }
.acc-order__status--ok { color: #1e9e4a; }
.acc-order__status--ship { color: #1763c4; }
.acc-order__status--wait { color: #d97a00; }
.acc-order__status--cancel { color: var(--red); }
.acc-order__item { display: flex; gap: 14px; align-items: center; color: var(--text); }
.acc-order__item:hover { color: var(--text); }
.acc-order__item img, .acc-order__noimg { width: 56px; height: 56px; object-fit: contain; flex: none; border-radius: 8px; background: #fafafa; display: inline-flex; align-items: center; justify-content: center; color: #aaa; }
.acc-order__item > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acc-order__name { font-size: 15px; }
.acc-order__more { font-size: 13px; }
.acc-order__total { font-size: 14px; }
.acc-order__foot { border-top: 1px solid var(--line); padding-top: 10px; text-align: right; }
@media (max-width: 768px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .acc-tabs a { flex: none; padding: 6px 14px; }
}.acc-order__item .acc-order__total { display: block; }
.acc-member__since { word-break: normal; overflow-wrap: anywhere; }

/* ---------- Mua trả góp /tra-gop/{slug}.html (bố cục mẫu trang trả chậm TGDĐ) ---------- */
.ins-page { padding-bottom: 40px; }
.ins-title { font-size: 20px; margin: 4px 0 14px; }
.ins-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.ins-main, .ins-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ins-side { position: sticky; top: 140px; }
.ins-box { background: var(--card); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ins-box h2 { font-size: 16px; }
.ins-product__row { display: flex; gap: 14px; }
.ins-product__img { width: 96px; height: 96px; flex: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ins-product__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ins-product__name { font-weight: 500; font-size: 15px; }
.ins-product__price .price { font-size: 20px; margin-right: 8px; }
.ins-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-colors label { cursor: pointer; }
.ins-colors input { position: absolute; opacity: 0; pointer-events: none; }
.ins-colors span { display: inline-block; border: 1px solid #d9dce1; border-radius: 6px; padding: 3px 10px; font-size: 13px; }
.ins-colors input:checked + span { border-color: var(--blue); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.ins-gifts { border: 1px solid #e5e8ee; border-radius: 10px; padding: 6px 12px 10px; margin: 0; }
.ins-gifts legend { font-size: 13px; color: var(--blue); padding: 0 6px; }
.ins-gifts li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; }
.ins-gifts li::before { content: "•"; color: #999; margin-right: -6px; }
.ins-gifts li span:first-child { flex: 1; }
.ins-promo { background: #eef5ff; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.ins-pick { display: flex; align-items: flex-start; gap: 12px; }
.ins-pick__label { flex: none; width: 72px; font-weight: 500; padding-top: 6px; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-chips label { cursor: pointer; }
.ins-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ins-chips span { display: inline-block; min-width: 56px; text-align: center; border: 1px solid #d9dce1; border-radius: 8px; padding: 6px 10px; font-size: 13px; background: #fff; }
.ins-chips input:checked + span { border-color: var(--blue); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 500; }
.ins-chips input:focus-visible + span { outline: 2px solid rgba(26,111,216,.3); }
.ins-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ins-plan { position: relative; display: flex; flex-direction: column; border: 1px solid #e3e5ea; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.ins-plan input { position: absolute; opacity: 0; pointer-events: none; }
.ins-plan:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.ins-plan:has(input:focus-visible) { outline: 2px solid rgba(26,111,216,.4); }
.ins-plan__head { background: var(--co); color: #fff; padding: 8px 10px; display: flex; flex-direction: column; }
.ins-plan__head b { font-size: 15px; text-transform: uppercase; letter-spacing: .3px; }
.ins-plan__head small { font-size: 11px; opacity: .9; }
.ins-plan__monthly { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); }
.ins-plan__monthly b { font-size: 18px; color: var(--text); }
.ins-plan__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 10px; }
.ins-plan__tiles > span { background: #ecf8f0; border-radius: 8px; text-align: center; padding: 4px; display: flex; flex-direction: column; }
.ins-plan__tiles small { font-size: 11px; color: var(--muted); }
.ins-plan__rows { display: flex; flex-direction: column; padding: 6px 10px; font-size: 12px; color: #555; }
.ins-plan__rows > span { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.ins-plan__rows b { color: var(--text); font-weight: 500; }
.ins-plan__total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px !important; }
.ins-plan__total b { font-weight: 700; }
.ins-plan__diff { color: #e05d00 !important; }
.ins-plan__docs { font-size: 11px; color: var(--muted); padding: 0 10px 10px; }
.ins-plan__off { display: none; }
.ins-plan.is-off { cursor: not-allowed; opacity: .55; }
.ins-plan.is-off .ins-plan__off { display: block; position: absolute; inset: auto 8px 8px 8px; background: #fff3e6; color: #a35200; border-radius: 6px; padding: 6px; font-size: 12px; text-align: center; }
.ins-note { font-size: 12px; color: var(--muted); }
.ins-why ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ins-why a { color: var(--blue); font-weight: 500; }
.ins-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e3e5ea; border-radius: 10px; overflow: hidden; }
.ins-seg label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 14px; }
.ins-seg label + label { border-left: 1px solid #e3e5ea; }
.ins-seg label:has(input:checked) { background: #f4f8ff; }
.ins-seg input { accent-color: var(--blue); width: 16px; height: 16px; }
.ins-showrooms { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ins-showrooms label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.ins-showrooms input { margin-top: 3px; }
.ins-date { position: relative; }
.ins-date > span:first-child { position: absolute; top: -7px; left: 10px; font-size: 10px; background: #fff; padding: 0 4px; color: var(--muted);
  white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; } /* 01/12: nhãn dài không xuống dòng đè lên ô */
.ins-small { font-size: 12px; }
.ins-toggle { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 500; }
.ins-toggle input { width: 36px; height: 20px; appearance: none; background: #d5d8de; border-radius: 99px; position: relative; cursor: pointer; transition: background .15s; }
.ins-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.ins-toggle input:checked { background: var(--blue); }
.ins-toggle input:checked::after { left: 18px; }
.ins-box textarea { width: 100%; border: 1px solid #d9dce1; border-radius: 6px; padding: 8px 12px; font: inherit; resize: vertical; }
.ins-sum p { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ins-sum p > span:first-child { color: #555; }
.ins-free { color: #1e9e4a; }
.ins-sum__total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px !important; }
.ins-sum__total b { color: var(--red); font-size: 18px; }
.ins-submit { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 16px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 700; }
.ins-submit small { font-size: 12px; font-weight: 400; opacity: .95; }
.ins-submit:hover { filter: brightness(1.07); }
.ins-submit:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1100px) { .ins-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ins-layout { grid-template-columns: 1fr; }
  .ins-side { position: static; }
}
@media (max-width: 560px) {
  .ins-plans { grid-template-columns: 1fr; }
  .ins-pick { flex-direction: column; gap: 6px; }
  .ins-pick__label { padding-top: 0; }
}.ins-page [hidden] { display: none !important; }
.ins-plan--info { cursor: default; }
.ins-steps { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ins-shop { align-self: flex-start; }
.ins-why a.ins-shop, .ins-why a.ins-shop:hover { color: #fff; font-weight: 700; }
main.ins-page > .ins-box + .ins-box { margin-top: 14px; }

/* /tra-gop.html: chọn sản phẩm mua trả góp (ô tìm + gợi ý + chọn nhanh) */
.ins-picker { border: 2px solid var(--brand-soft); }
.ins-search { position: relative; display: flex; align-items: center; gap: 0; border: 2px solid var(--brand); border-radius: 10px; background: #fff; }
.ins-search__icon { padding: 0 4px 0 12px; color: #888; display: inline-flex; }
.ins-search input { flex: 1; min-width: 0; height: 46px; border: 0; padding: 0 10px; font: inherit; font-size: 15px; background: none; }
.ins-search input:focus { outline: none; }
.ins-search button { height: 46px; border: 0; background: var(--brand); color: #fff; font-weight: 700; padding: 0 22px; border-radius: 0 7px 7px 0; }
.ins-suggest { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e3e5ea; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 6px; max-height: 420px; overflow-y: auto; }
.ins-suggest a { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--text); }
.ins-suggest a:hover, .ins-suggest a:focus { background: #f3f7ff; color: var(--text); outline: none; }
.ins-suggest img { width: 44px; height: 44px; object-fit: contain; }
.ins-suggest__name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-suggest b { color: var(--red); font-size: 14px; }
.ins-suggest em { font-style: normal; color: var(--blue); font-size: 13px; white-space: nowrap; }
.ins-suggest__empty { padding: 12px; color: var(--muted); }
.ins-picks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ins-picks a { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--text); }
.ins-picks a:hover { border-color: var(--brand); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.ins-picks__img { display: block; aspect-ratio: 1; }
.ins-picks__name { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ins-picks .price { font-size: 14px; }
.ins-picks__go { margin-top: auto; font-size: 12px; color: var(--blue); font-weight: 500; }
@media (max-width: 1000px) { .ins-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ins-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ins-suggest a { grid-template-columns: 44px 1fr auto; } .ins-suggest em { display: none; } }.ins-plan__opt { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 0; }
.ins-plan__opt select { width: 100%; height: 34px; border: 1px solid #d9dce1; border-radius: 6px; padding: 0 6px; font: inherit; font-size: 12px; background: #fff; }
.ins-plan__optname { font-size: 12px; font-weight: 500; }
.ins-plan__opt small { font-size: 11px; }
.ins-plan__first { padding: 0 10px; font-size: 11px; min-height: 15px; }
.ins-sum__opt span:last-child { text-align: right; font-size: 13px; }.ins-guide-opt { align-items: flex-start; }
.ins-guide-opt > span { display: flex; flex-direction: column; }
.ins-guide-opt small { font-size: 11px; }
.ins-guide-opt b { white-space: nowrap; }
.ins-plan__extra { color: #b45309; font-weight: 500; padding-top: 0; }
.ins-plan__extra:empty { display: none; }
.ins-extra__label { font-size: 13px; color: #b45309; }
.ins-extra { display: flex; flex-direction: column; gap: 8px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 10px; }
.ins-extra__row { align-items: start; }
.ins-extra__fixed { display: flex; align-items: center; min-height: 42px; font-size: 13px; font-weight: 500; }
.ins-extra select { width: 100%; height: 42px; border: 1px solid #d9dce1; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; background: #fff; }
.ins-guide-doc { color: #9a3412; }

/* ---------- Thanh toán chuyển khoản VietQR (trang đơn hàng /don-hang/…) ---------- */
.vqr { margin: 16px 0; border: 2px solid #1763c4; border-radius: 12px; padding: 16px; background: #f7fbff; display: flex; flex-direction: column; gap: 10px; }
.vqr h2 { font-size: 17px; color: #134a91; }
.vqr__lead { font-size: 14px; }
.vqr__body { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.vqr__qr { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 10px; border: 1px solid #dbe6f5; }
.vqr__qr img { width: 260px; max-width: 100%; height: auto; }
.vqr__dl { font-size: 13px; color: var(--blue); }
.vqr__info { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.vqr__info dt { color: var(--muted); }
.vqr__info dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vqr__logo { height: 24px; width: auto; }
.vqr__content { color: #b45309; letter-spacing: .5px; }
.vqr__copy { border: 1px solid #c4dcfb; background: #fff; color: var(--blue); border-radius: 6px; padding: 2px 10px; font-size: 12px; }
.vqr__copy:hover { background: #eaf3ff; }
.vqr__note { font-size: 13px; color: #555; }
.vqr__note a { color: var(--blue); font-weight: 500; }
.vqr-paid { margin: 16px 0; background: #e6f4ea; color: #137333; border-radius: 10px; padding: 12px 16px; font-weight: 500; }
.checkout__pay-desc { display: block; font-size: 12px; color: var(--muted); font-style: italic; margin-left: 24px; }
@media (max-width: 640px) { .vqr__body { grid-template-columns: 1fr; } .vqr__qr { justify-self: center; } }.vqr__portal { align-self: flex-start; background: #1763c4; color: #fff; font-weight: 700; border-radius: 8px; padding: 10px 18px; }
.vqr__portal:hover { color: #fff; filter: brightness(1.08); }
.vqr__wait { font-size: 13px; color: #b45309; }
.vqr__wait::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; margin-right: 6px; animation: vqr-blink 1s infinite; }
@keyframes vqr-blink { 50% { opacity: .2; } }
.vqr-paid--wait { background: #fff7e6; color: #8a5a00; }

/* ---------- So sánh sản phẩm (CompareController, compare.js) ---------- */
.gallery__actions [data-compare-toggle].is-on { color: var(--brand); font-weight: 600; }

.cmp-tray { position: fixed; z-index: 60; left: 50%; bottom: 0; transform: translateX(-50%); width: min(1100px, 100%); background: var(--card); border-radius: 12px 12px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,.14); }
.cmp-tray__bar { position: absolute; right: 16px; top: -32px; }
.cmp-tray__toggle { border: 0; border-radius: 8px 8px 0 0; background: var(--card); box-shadow: 0 -4px 12px rgba(0,0,0,.1); padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cmp-tray.is-collapsed .cmp-tray__body { display: none; }
.cmp-tray__body { display: flex; gap: 12px; padding: 12px; align-items: stretch; }
.cmp-tray__list { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cmp-tray__item { position: relative; display: flex; gap: 8px; align-items: center; min-height: 72px; padding: 8px 28px 8px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 1.35; }
.cmp-tray__item--empty { justify-content: center; padding-right: 8px; color: var(--muted); border-style: dashed; }
.cmp-tray__plus { font-size: 22px; line-height: 1; }
.cmp-tray__img { flex: 0 0 52px; height: 52px; }
.cmp-tray__img img { width: 100%; height: 100%; object-fit: contain; }
.cmp-tray__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-tray__name small { display: block; color: var(--red); font-weight: 600; }
.cmp-tray__x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #eef0f3; cursor: pointer; font-size: 11px; }
.cmp-tray__side { flex: 0 0 170px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 13px; text-align: center; }
.cmp-tray__go { display: block; padding: 10px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; }
.cmp-tray__go.is-disabled { background: #d9d9d9; color: #777; }
.cmp-tray__clear { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 7px; font: inherit; font-size: 13px; cursor: pointer; }
body.has-cmp-tray { padding-bottom: 110px; }

/* ===== Máy tính / máy tính bảng (≥ 769px): header dính trên cùng khi cuộn.
   Kéo xuống: chỉ còn dải số điện thoại + hàng logo / tìm kiếm / giỏ hàng, thanh menu xanh trượt lên ẩn sau hàng đó;
   kéo lên: menu hiện lại (site.js bật / tắt html.hd-hide-nav).
   Menu đặt nổi (absolute) ngay dưới hàng logo, chỗ trống của nó giữ bằng margin-bottom (--mainnav-h, site.js đo) —
   ẩn / hiện menu không làm nội dung trang bên dưới nhảy ===== */
@media (min-width: 769px) {
  .site-header { position: sticky; top: 0; z-index: 50; }
  .headbar { position: relative; top: auto; z-index: auto; margin-bottom: var(--mainnav-h, 37px); box-shadow: none; }
  .headmain { position: relative; z-index: 2; background: #fff; box-shadow: 0 1px 0 #eee; }
  .mainnav { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; transition: transform .22s ease, visibility .22s; }
  html.hd-hide-nav .mainnav { transform: translateY(-100%); visibility: hidden; }
  html.hd-hide-nav .headmain { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
}
@media (min-width: 769px) and (prefers-reduced-motion: reduce) { .mainnav { transition: none; } }
/* Máy tính (≥ 1025px): chiều cao hàng logo / tìm kiếm / giỏ hàng (--hd-h) và kích thước logo (--hd-logo) theo cài đặt
   (Quản trị › Header); logo không vượt quá --hd-h − 8px, ô tìm kiếm = --hd-h − 26px (36–50px) */
@media (min-width: 1025px) {
  .headmain__row { min-height: var(--hd-h, 92px); padding-top: 0; padding-bottom: 0; }
  .logo__img { width: min(var(--hd-logo, 50px), calc(var(--hd-h, 92px) - 8px)); height: min(var(--hd-logo, 50px), calc(var(--hd-h, 92px) - 8px)); }
  .search { height: clamp(36px, calc(var(--hd-h, 92px) - 26px), 50px); }
}

/* Nút "Lên đầu" (_Layout, site.js): góc dưới phải, hiện khi đã cuộn xuống khá xa; có khay so sánh thì nằm trên khay */
.to-top { position: fixed; right: 16px; bottom: 20px; z-index: 55; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.22); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); }
.to-top:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
body.has-cmp-tray .to-top { bottom: 130px; }
@media (max-width: 768px) {
  /* Điện thoại: cao hơn mép dưới (tránh thanh điều hướng / vùng vuốt của máy và nút chat nổi), tính cả vùng an toàn của iPhone */
  .to-top { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; }
  body.has-cmp-tray .to-top { bottom: 210px; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
.cmp-toast { position: fixed; z-index: 70; left: 50%; bottom: 120px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: calc(100% - 32px); }
@media (max-width: 760px) {
  .cmp-tray__body { flex-direction: column; padding: 10px; }
  .cmp-tray__list { gap: 6px; }
  .cmp-tray__item { flex-direction: column; text-align: center; padding: 6px; min-height: 0; font-size: 12px; }
  .cmp-tray__item .cmp-tray__name small { display: none; }
  .cmp-tray__img { flex-basis: auto; width: 44px; height: 44px; }
  .cmp-tray__side { flex: none; flex-direction: row; align-items: center; }
  .cmp-tray__side > span { display: none; }
  .cmp-tray__go, .cmp-tray__clear { flex: 1; }
  body.has-cmp-tray { padding-bottom: 190px; }
}

.cmp { padding: 12px 0 24px; }
.cmp__crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cmp__crumbs a { color: var(--link); }
.cmp__title { font-size: 22px; line-height: 1.35; margin: 0 0 14px; font-weight: 500; }
.cmp__summary { background: var(--card); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.cmp__summary h2 { font-size: 17px; margin: 0 0 8px; }
.cmp__summary ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; line-height: 1.5; }
.cmp__updated { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.cmp__scroll { overflow-x: auto; background: var(--card); border-radius: 12px; }
.cmp__table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.cmp__table th[scope="row"] { position: sticky; left: 0; z-index: 1; width: 200px; background: #f7f8fa; text-align: left; font-weight: 600; }
.cmp__table th, .cmp__table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; word-break: break-word; }
.cmp__corner { position: sticky; left: 0; z-index: 2; width: 200px; background: var(--card); text-align: left; vertical-align: bottom !important; }
.cmp__onlydiff { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 500; cursor: pointer; }
.cmp__card { position: relative; text-align: center; font-weight: 400; }
.cmp__remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eef0f3; color: #333; font-size: 12px; }
.cmp__img { display: block; height: 150px; margin: 6px auto 8px; }
.cmp__img img { width: 100%; height: 100%; object-fit: contain; }
.cmp__name { display: block; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.cmp__price { display: block; color: var(--red); font-weight: 700; font-size: 16px; }
.cmp__price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.cmp__gift { display: block; margin-top: 6px; padding: 5px 8px; background: #f6f7f9; border-radius: 6px; font-size: 12px; text-align: left; }
.cmp__actions { display: flex; gap: 6px; margin-top: 10px; }
.cmp__actions form { flex: 1; }
.cmp__buy, .cmp__more { display: block; width: 100%; padding: 8px 6px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.cmp__buy { border: 0; background: var(--red); color: #fff; }
.cmp__more { flex: 1; border: 1px solid var(--red); color: var(--red); background: #fff; }
.cmp__card--add { vertical-align: middle !important; }
.cmp__add { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border: 2px dashed var(--line); border-radius: 10px; }
.cmp__add label { display: flex; flex-direction: column; gap: 6px; width: 100%; font-size: 13px; color: var(--muted); }
.cmp__add input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.cmp__plus { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 26px; line-height: 40px; }
.cmp__suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 320px; overflow: auto; text-align: left; }
.cmp__suggest a { display: flex; gap: 8px; align-items: center; padding: 6px 10px; color: var(--text); font-size: 13px; }
.cmp__suggest a:hover { background: var(--brand-soft); }
.cmp__suggest img, .cmp__suggest a > span:first-child { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.cmp__suggest small { display: block; color: var(--red); font-weight: 600; }
.cmp__none { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.cmp__group-title th { background: var(--brand-soft); color: var(--brand-dark); font-size: 15px; font-weight: 700; text-align: left; position: sticky; left: 0; }
.cmp__table tr.is-diff td { background: #fffdf3; }
.cmp.only-diff tr.is-same { display: none; }
.cmp__empty { margin-top: 14px; color: var(--muted); }
.cmp__hint { display: none; }
.cmp__jump { margin: -6px 0 10px; font-size: 13px; }
.cmp__jump a { color: var(--link); }
.cmp-sum h2 { scroll-margin-top: 90px; }
@media (max-width: 760px) {
  /* Điện thoại (20/11): trước đây ép 3 sản phẩm vừa khít màn hình nên mỗi cột chỉ ~80px — tên và giá gãy giữa chữ ("Blackmagi c",
     "46.680.0 00đ"). Giờ mỗi cột sản phẩm rộng tối thiểu 128px, cột tên thông số 92px dính bên trái; 2 sản phẩm vừa màn hình,
     3 sản phẩm thì vuốt ngang. Chữ chỉ xuống dòng ở khoảng trắng (mã sản phẩm quá dài mới bị ngắt). */
  .cmp__title { font-size: 17px; line-height: 1.4; margin-bottom: 10px; }
  .cmp__crumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmp__hint { display: block; margin: 0 0 8px; font-size: 12px; color: var(--muted); }
  .cmp__scroll { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .cmp__table { min-width: calc(92px + var(--cmp-cols, 3) * 128px); font-size: 13px; }
  .cmp__table th[scope="row"], .cmp__corner { width: 92px; }
  .cmp__table th, .cmp__table td { padding: 8px 7px; word-break: normal; overflow-wrap: break-word; }
  .cmp__table th[scope="row"] { font-size: 12px; box-shadow: 1px 0 0 var(--line); }
  .cmp__corner { box-shadow: 1px 0 0 var(--line); }
  .cmp__onlydiff { align-items: flex-start; font-size: 12px; line-height: 1.35; }
  .cmp__img { height: 96px; }
  .cmp__name { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .cmp__price { font-size: 15px; white-space: nowrap; }
  .cmp__price s { display: block; margin-left: 0; font-size: 12px; }
  .cmp__gift { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cmp__actions { flex-direction: column; }
  .cmp__buy, .cmp__more { padding: 8px 4px; white-space: nowrap; }
  .cmp__group-title th { font-size: 14px; }
}
.cmp__summary { margin: 14px 0 0; }
/* Tóm tắt so sánh: thẻ giá + số điểm khác / giống + bảng "Khác biệt chính" */
.cmp-sum__sub { font-size: 14px; font-weight: 600; margin: 14px 0 8px; color: #333; }
.cmp-sum h2 + .cmp-sum__sub { margin-top: 4px; }
.cmp-sum__prices { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.cmp-sum__price { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.cmp-sum__price.is-best { border-color: #2e9e5b; background: #f3fbf6; }
.cmp-sum__name { color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-sum__name:hover { color: var(--link); }
.cmp-sum__price strong { color: var(--red); font-size: 18px; white-space: nowrap; }
.cmp-sum__badge { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: #1e7a43; color: #fff; font-size: 11px; font-weight: 600; }
.cmp-sum__line { margin: 10px 0 0; font-size: 14px; }
.cmp-sum__counts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 0; font-size: 13px; }
.cmp-sum__count { padding: 5px 10px; border-radius: 8px; background: #f1f3f5; }
.cmp-sum__count--diff { background: #fff6dd; }
.cmp-sum__count b { font-size: 15px; }
.cmp-sum__tip { color: var(--muted); }
.cmp-sum__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.cmp-sum__table th, .cmp-sum__table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; overflow-wrap: break-word; }
.cmp-sum__table thead th { background: #f7f8fa; font-size: 13px; font-weight: 600; }
.cmp-sum__table th[scope="row"] { width: 200px; font-weight: 600; color: #333; }
.cmp-sum__table tbody tr:last-child th, .cmp-sum__table tbody tr:last-child td { border-bottom: 0; }
.cmp-sum__more { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .cmp__summary { padding: 12px; }
  .cmp__summary h2 { font-size: 16px; line-height: 1.4; }
  /* Thẻ giá: xếp dọc, tên bên trái — giá bên phải */
  .cmp-sum__prices { grid-auto-flow: row; grid-template-columns: 1fr; gap: 8px; }
  .cmp-sum__price { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 10px 12px; }
  .cmp-sum__name { flex: 1 1 55%; font-size: 13px; }
  .cmp-sum__price strong { font-size: 16px; margin-left: auto; }
  .cmp-sum__badge { order: 3; }
  .cmp-sum__tip { flex-basis: 100%; }
  /* Bảng khác biệt: mỗi thông số một khối, mỗi sản phẩm một dòng "tên: giá trị" */
  .cmp-sum__table, .cmp-sum__table tbody, .cmp-sum__table tr, .cmp-sum__table th, .cmp-sum__table td { display: block; width: auto; }
  .cmp-sum__table thead { display: none; }
  .cmp-sum__table tbody tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cmp-sum__table tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .cmp-sum__table th[scope="row"] { width: auto; padding: 0 0 6px; border: 0; font-size: 14px; }
  .cmp-sum__table td { display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 3px 0; border: 0; font-size: 13px; }
  .cmp-sum__table td::before { content: attr(data-label); color: var(--muted); }
}
.cmp-tray__add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.cmp-tray__add:hover { color: var(--brand); }
.cmp-tray__item--empty { padding: 0; }
a.cmp__add { color: var(--muted); font-size: 14px; cursor: pointer; }
a.cmp__add:hover { border-color: var(--brand); color: var(--brand); }
/* Hộp chọn sản phẩm để so sánh */
.cmp-pick { width: min(880px, calc(100% - 24px)); max-height: min(640px, calc(100vh - 40px)); max-height: min(640px, calc(100dvh - 40px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; }
.cmp-pick:not([open]) { display: none; }
.cmp-pick::backdrop { background: rgba(0,0,0,.45); }
.cmp-pick__head { display: flex; gap: 10px; align-items: center; padding: 14px 14px 6px; }
.cmp-pick__search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d6d9de; border-radius: 10px; color: #555; }
.cmp-pick__search:focus-within { border-color: var(--brand); }
.cmp-pick__search input { flex: 1; border: 0; outline: 0; padding: 12px 0; font: inherit; font-size: 16px; }
.cmp-pick__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f2f4; cursor: pointer; }
.cmp-pick__hint { margin: 2px 16px 4px; font-size: 13px; color: var(--muted); min-height: 18px; }
.cmp-pick__list { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; }
.cmp-pick__list.is-loading { opacity: .5; }
.cmp-pick__row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.cmp-pick__row:hover { background: #f7f8fa; }
.cmp-pick__img { flex: 0 0 52px; height: 52px; }
.cmp-pick__img img { width: 100%; height: 100%; object-fit: contain; }
.cmp-pick__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cmp-pick__info b { font-weight: 600; }
.cmp-pick__info strong { color: var(--red); }
.cmp-pick__info s { color: var(--muted); font-size: 13px; margin-left: 6px; }
.cmp-pick__choose { flex: 0 0 auto; border: 0; border-radius: 8px; background: #fde8e8; color: var(--red); padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cmp-pick__choose:hover { background: var(--red); color: #fff; }
.cmp-pick__none { padding: 16px; color: var(--muted); }
@media (max-width: 760px) {
  .cmp-pick { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .cmp-pick__choose { padding: 8px 12px; }
}

/* ---------- Trung tâm bảo hành (/bao-hanh.html, /bao-hanh/trung-tam-bao-hanh-*.html — WarrantyController) ---------- */
.wty { padding-bottom: 24px; }
.wty-box { background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.wty__title { font-size: 24px; line-height: 1.3; }
.wty__lead { color: #555; font-size: 14px; margin: 6px 0 14px; }
.wty__sub { font-size: 18px; margin-bottom: 10px; }
.wty-search { position: relative; display: block; max-width: 420px; margin: 0 auto 18px; }
.wty-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #888; }
.wty-search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 0 38px; font: inherit; }
.wty-search input:focus { outline: 2px solid rgba(216,59,0,.18); border-color: var(--brand); }
.wty-box > .wty__title, .wty-box > .wty__lead { text-align: center; }
.wty-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wty-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px 10px; color: inherit; text-align: center; height: 100%; }
.wty-brand:hover { border-color: var(--brand); color: inherit; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.wty-brand__logo { display: flex; align-items: center; justify-content: center; height: 44px; width: 100%; }
.wty-brand__logo img { max-width: 100%; max-height: 44px; object-fit: contain; }
.wty-brand__logo b { font-size: 20px; letter-spacing: .5px; }
.wty-brand__name { font-weight: 600; }
.wty-brand small { color: var(--muted); font-size: 12px; }
.wty-empty { text-align: center; color: var(--muted); padding: 20px 0; }
.wty-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wty-head__logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.wty-head + .wty__lead { text-align: left; }
.wty-provinces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.wty-provinces a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #333; background: #fff; }
.wty-provinces a small { color: var(--muted); }
.wty-provinces a:hover { border-color: var(--brand); color: var(--brand-dark); }
.wty-provinces a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.wty-provinces a.is-on small { color: #fff; opacity: .85; }
.wty-group + .wty-group { margin-top: 18px; }
.wty-group h2 { font-size: 17px; margin-bottom: 8px; padding-left: 10px; border-left: 4px solid var(--brand); }
.wty-table-wrap { overflow-x: auto; }
.wty-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wty-table th, .wty-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.wty-table thead th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; white-space: nowrap; }
.wty-table td:first-child { width: 48px; text-align: center; color: var(--muted); }
.wty-table td:nth-child(3) { width: 28%; }
.wty-table td:last-child { width: 22%; }
.wty-addr { font-weight: 500; }
.wty-map { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 12px; color: var(--link); white-space: nowrap; }
.wty-note { display: block; margin-top: 4px; color: #666; }
.wty-phone a { color: var(--link); white-space: nowrap; }
.wty-policy { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.wty-policy h1, .wty-policy h2, .wty-policy h3 { font-size: 18px; margin: 14px 0 8px; }
.wty-policy p { margin: 0 0 8px; }
.wty-policy img { max-width: 100%; height: auto; }
.wty-policy table { border-collapse: collapse; max-width: 100%; }
.wty-policy td, .wty-policy th { border: 1px solid var(--line); padding: 6px 8px; }
.wty-others { display: flex; flex-wrap: wrap; gap: 8px; }
.wty-others a { border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; font-size: 13px; color: #333; }
.wty-others a:hover { border-color: var(--brand); color: var(--brand-dark); }
@media (max-width: 640px) {
  .wty-box { padding: 14px; }
  .wty__title { font-size: 20px; }
  .wty-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* Bảng thành thẻ: mỗi điểm bảo hành một khối, nhãn cột hiện trước giá trị */
  .wty-table thead { display: none; }
  .wty-table, .wty-table tbody, .wty-table tr, .wty-table td { display: block; width: auto !important; }
  .wty-table tr { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
  .wty-table td { border: 0; padding: 3px 0; text-align: left !important; }
  .wty-table td::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
  .wty-table td:first-child { display: none; }
}

/* ===== Điện thoại: khối tràn sát mép màn hình (0px) như trang sản phẩm =====
   Khối nền trắng rộng hết màn hình, không bo góc; chữ, thẻ sản phẩm cách mép 10px; hàng vuốt ngang chạy sát mép */
@media (max-width: 768px) {
  /* Trang chủ */
  .home { gap: 8px; }
  .home > .container.home-block { padding: 14px 10px; background: #fff; }
  .home-block .hslider { margin-left: -10px; margin-right: -10px; }
  .home > .container:has(> .deal-box) { padding-left: 0; padding-right: 0; }
  .flash-box { border-radius: 0; }
  .home > .container.viewed { border-radius: 0; padding: 14px 10px; }
  .home > .container.search-trends { border-radius: 0; padding: 16px 10px 14px; margin-top: 0; margin-bottom: 0; }
  .home > .container.showrooms { padding-left: 10px; padding-right: 10px; }
  /* Trang danh mục, Flash Sale / Hot Trend / Khuyến mãi, thương hiệu */
  .cat-page.container { padding-left: 0; padding-right: 0; }
  .cat-page > .breadcrumb, .cat-page .cat-head, .cat-page .cat-pager { padding-left: 10px; padding-right: 10px; }
  .cat-page .sub-brands ul, .cat-page .sub-features ul { margin-left: 0; margin-right: 0; padding-left: 10px; padding-right: 10px; scroll-padding-inline: 10px; }
  .cat-page .sub--children { border-radius: 0; border-left: 0; border-right: 0; padding-left: 0; padding-right: 0; }
  .cat-page .cat-sort, .cat-page .cat-filter, .cat-page .cat-desc-box { border-radius: 0; }
  .cat-page .cat-sort { padding-left: 10px; padding-right: 10px; }
  .cat-page .cat-desc-box { padding-left: 10px; padding-right: 10px; }
  .cat-page .pgrid { padding-left: 8px; padding-right: 8px; }
  /* Ô danh mục con: 2 nút ‹ › tròn mờ sát 2 mép, giữa hàng (site.js ẩn nút phía đã tới đầu / cuối) */
  .sub-features { position: relative; }
  .sub-nav { display: flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.82); color: #374151; box-shadow: 0 1px 6px rgba(0,0,0,.18); cursor: pointer; }
  .sub-nav[hidden] { display: none; }
  .sub-nav--prev { left: 4px; }
  .sub-nav--next { right: 4px; }
}
/* Máy tính: ô danh mục con xếp lưới, không cần nút */
@media (min-width: 769px) { .sub-nav { display: none !important; } }

.order-status--deposit { background: #fff4e5; color: #b54708; } /* Đặt cọc */

/* ---------- Tag sản phẩm ↔ tin tức (20/11): "Tin tức liên quan" trang sản phẩm, "Sản phẩm liên quan" trang bài viết, trang /chu-de ---------- */
.tag-news { background: var(--card, #fff); border-radius: 10px; padding: 16px 18px; }
.tag-news h2 { font-size: 18px; margin: 0 0 12px; }
.tag-news__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.tag-news__item { display: flex; gap: 10px; align-items: flex-start; color: inherit; }
.tag-news__img { flex: none; width: 96px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #f1f3f5; }
.tag-news__img img { width: 100%; height: 100%; object-fit: cover; }
.tag-news__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tag-news__text b { font-weight: 500; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag-news__item:hover b { color: var(--brand); }
.tag-news__text time { font-size: 12px; color: #6b6b6b; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tag-chips a { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px; border-radius: 999px; background: #f1f3f5; color: #333; font-size: 13px; }
.tag-chips a:hover { background: #fff1ea; color: var(--brand-dark, #c2410c); }
.news-products { margin-top: 22px; }
.news-products h2 { font-size: 20px; margin: 0 0 12px; }
.pgrid--news { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tag-page { padding-bottom: 28px; }
.tag-page__title { font-size: 24px; margin: 6px 0 4px; }
.tag-page__box { background: #fff; border-radius: 10px; padding: 16px 18px; margin-top: 14px; }
.tag-page__box h2 { font-size: 18px; margin: 0 0 12px; }
@media (max-width: 1024px) { .pgrid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .tag-news { padding: 12px 10px; border-radius: 0; }
  .tag-news__list { grid-template-columns: 1fr; }
  .pgrid--news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-page__box { padding: 12px 10px; }
}
/* Tin tức liên quan ở trang danh mục sản phẩm: khổ rộng nên 3 cột (máy tính) */
.tag-news--cat { margin-top: 16px; }
.tag-news--cat .tag-news__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .tag-news--cat .tag-news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .tag-news--cat .tag-news__list { grid-template-columns: 1fr; } }
/* Cuối trang danh mục (20/11): giới thiệu bên trái + cột "Tin tức sản phẩm" bên phải (thẻ ảnh + tiêu đề 3 dòng); một khối thì trải hết */
.cat-bottom { margin-top: 16px; }
.cat-bottom--split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.cat-bottom--split > .cat-desc-box { margin-top: 0; }
.cat-news { background: #f4f5f7; border-radius: 14px; padding: 16px 16px 12px; }
.cat-news__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cat-news__head h2 { font-size: 18px; margin: 0; }
.cat-news__all { display: inline-flex; align-items: center; gap: 2px; color: var(--link, #1a73e8); font-size: 14px; white-space: nowrap; }
.cat-news__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cat-news__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: #fff; color: inherit; }
.cat-news__img { flex: none; width: 112px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: #eceef1; }
.cat-news__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-news__item b { font-weight: 500; font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-news__item:hover b { color: var(--brand); }
.cat-news--wide .cat-news__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .cat-bottom--split { grid-template-columns: minmax(0, 1fr); }
  .cat-news__list, .cat-news--wide .cat-news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .cat-news { border-radius: 0; padding: 14px 10px 10px; }
  .cat-news__list, .cat-news--wide .cat-news__list { grid-template-columns: 1fr; }
  .cat-news__img { width: 104px; }
}
.cat-bottom > .cat-desc-box { margin-top: 0; }
/* Cột trái cuối trang danh mục (04/12, theo mẫu CellphoneS): giới thiệu rồi "Câu hỏi thường gặp"; cột phải là tin tức */
/* minmax(0, 1fr): cột không nở theo nội dung rộng (bảng, mục lục) — thiếu thì điện thoại bị cuộn ngang */
.cat-bottom__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; align-content: start; }
.cat-bottom__main > .cat-desc-box, .cat-bottom__main > .cat-faq { margin-top: 0; }
/* Câu hỏi thường gặp (04/12, theo mẫu CellphoneS): khung trắng, mỗi câu một thanh xám bấm mở (details / summary) */
.cat-faq { background: var(--card); border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; }
.cat-faq > h2 { font-size: 20px; margin: 0 0 12px; }
.cat-faq__list { display: grid; gap: 8px; }
.cat-faq__item { border-radius: 10px; background: #f3f4f6; transition: background-color .15s; }
.cat-faq__item:hover, .cat-faq__item[open] { background: #eceef1; }
.cat-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.cat-faq__item summary::-webkit-details-marker { display: none; }
.cat-faq__item summary h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.cat-faq__item summary svg { flex: none; transition: transform .2s; }
.cat-faq__item[open] summary svg { transform: rotate(180deg); }
.cat-faq__item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
.cat-faq__a { padding: 0 16px 14px; font-size: 14.5px; line-height: 1.65; color: #374151; }
.cat-faq__a > :first-child { margin-top: 0; }
.cat-faq__a > :last-child { margin-bottom: 0; }
.cat-faq__a p { margin: 0 0 8px; }
.cat-faq__a ul, .cat-faq__a ol { margin: 0 0 8px; padding-left: 22px; }
.cat-faq__a a { color: var(--link, #1a73e8); text-decoration: underline; }
@media (max-width: 680px) {
  .cat-faq { border-radius: 0; padding: 14px 10px; }
  .cat-faq > h2 { font-size: 18px; }
  .cat-faq__item summary { padding: 12px; }
  .cat-faq__a { padding: 0 12px 12px; }
}
/* Cột bên phải (máy tính): 6 bài cho cân với khung giới thiệu đang thu gọn */
/* (bỏ 20/11: người dùng chốt cột tin hiện đủ 10 bài) */

/* "Sản phẩm liên quan" trong bài tin (20/11, làm lại cho gọn): khung nền nhạt, thẻ trắng viền mảnh cao bằng nhau (ảnh · tên 2 dòng · giá),
   bỏ dòng hạn Flash Sale / quà / sao cho các thẻ đều nhau; điện thoại vuốt ngang */
.news-products { margin-top: 26px; padding: 16px 16px 18px; border-radius: 14px; background: #f5f6f8; }
.news-products h2 { position: relative; margin: 0 0 14px; padding-left: 12px; font-size: 19px; line-height: 1.3; }
.news-products h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--brand); }
.news-products .pgrid--news { gap: 12px; margin: 0; padding: 0; list-style: none; }
.news-products .pgrid--news > li { min-width: 0; margin: 0; }
.news-products .pcard { gap: 4px; padding: 10px 10px 12px; border: 1px solid #e6e8ec; border-radius: 12px; background: #fff; }
.news-products .pcard:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.news-products .pcard { transition: border-color .15s, box-shadow .15s, transform .15s; }
.news-products .pcard__img { margin-bottom: 6px; padding: 6px; }
.news-products .pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.news-products .pcard__pct { left: 0; top: 0; border-radius: 6px; font-size: 11.5px; }
.news-products .pcard__name { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.4; min-height: 2.8em; color: #222; }
.news-products .pcard__price { margin-top: auto; padding-top: 6px; gap: 2px 8px; }
.news-products .pcard__price .price { font-size: 15.5px; line-height: 1.2; }
.news-products .pcard__price s { font-size: 12px; color: #8a8f98; }
.news-products .pcard__meta, .news-products .pcard__gift, .news-products .pcard__rating { display: none; }
@media (max-width: 680px) {
  .news-products { margin-left: -16px; margin-right: -16px; padding: 14px 0 14px 16px; border-radius: 0; }
  .news-products .pgrid--news { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 16px 4px 0; }
  .news-products .pgrid--news::-webkit-scrollbar { display: none; }
  .news-products .pgrid--news > li { flex: 0 0 44%; scroll-snap-align: start; }
  .news-products .pcard:hover { transform: none; }
}
@media (min-width: 681px) { .news-products .pgrid--news { grid-auto-rows: 1fr; } }
/* Tin tức liên quan trang sản phẩm nằm ở cột phải (dưới Đánh giá, máy tính): cột hẹp nên 1 bài một hàng */
.pdp__right .tag-news__list { grid-template-columns: 1fr; }

/* Bài tổng quan: dòng "Cập nhật ngày …" */
.article__updated { margin: 0 0 8px; font-size: 12px; color: #6b7280; }

/* ===== Khối sản phẩm trang chủ: bỏ viền thẻ, nổi khối như trang danh mục (29/11) =====
   Nền khối = nền xám của trang (--bg) để thẻ trắng nổi lên; thẻ không viền, bóng nhẹ; chạm / rê = viền cam như danh mục. */
.home .home-block .hslider .pcard { border-color: transparent; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); }
.home .home-block .hslider .pcard:hover, .home .home-block .hslider .pcard:active { border-color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.home .home-block .home-tabs button:not(.is-active) { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.home .home-block .home-more { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); }
@media (max-width: 768px) {
  .home > .container.home-block:not(.viewed) { background: var(--bg); padding-bottom: 16px; }
}

/* ===== Khối thương hiệu trang chủ: bỏ viền, ô logo nổi khối (29/11) =====
   Nền khối xám đã có từ quy tắc khối sản phẩm ở trên (điện thoại); chỉ áp trong .home, không đổi trang /thuong-hieu. */
.home .home-logos .home-logo { border-color: transparent; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); transition: border-color .15s, box-shadow .15s, transform .15s; }
.home .home-logos .home-logo:hover, .home .home-logos .home-logo:active { border-color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transform: translateY(-2px); }
@media (max-width: 768px) {
  .home .home-logos { padding: 3px 3px 8px; margin: -3px; } /* chừa chỗ cho bóng, không bị cắt bởi vùng vuốt ngang */
}

/* ===== "Sản phẩm đã xem" + "Tin tức & đánh giá" trang chủ: bỏ viền, nổi khối (29/11) =====
   Cùng kiểu khối sản phẩm: nền khối xám (--bg), thẻ trắng không viền, bóng nhẹ, chạm / rê = viền cam. */
.home > .container.viewed { background: var(--bg); }
.home .viewed__list { padding: 3px 3px 10px; margin: -3px; min-height: 121px; scroll-padding-inline: 3px; } /* chừa chỗ cho bóng; min-height = ô 108 + lề 13 (box-sizing border-box) để chỗ giữ sẵn bằng đúng lúc có sản phẩm; scroll-padding để scroll-snap không kéo dải lệch 3px */
.home .viewed__item { border-color: transparent; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); transition: border-color .15s, box-shadow .15s; }
.home .viewed__item:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.home .viewed__arrow { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 0, 0, .1); }
.home .viewed__arrow:hover:not(:disabled) { border-color: var(--brand); }
.home .viewed__remove { box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.home .hslider--posts .home-post { border-color: transparent; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); transition: border-color .15s, box-shadow .15s; }
.home .hslider--posts .home-post:hover, .home .hslider--posts .home-post:active { border-color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }

/* ===== Trang chi tiết sản phẩm: bỏ viền, nổi khối (29/11) — theo demo docs/demo-chi-tiet-sp-*-v3.html =====
   Thẻ con (ảnh chính, sản phẩm liên quan, showroom, hỏi đáp, bài viết) bỏ viền + bóng nhẹ; dải ảnh nhỏ GIỮ viền (ảnh nền trắng cần khung).
   Máy tính: khối lớn bo 14px + bóng trên nền xám. Điện thoại: khối vẫn tràn sát mép, sản phẩm liên quan thành thẻ rời. */
.pdp .gallery__main, .pdp .gallery__stage, .pdp .rel-card, .pdp .contact, .pdp .qna__ask, .pdp .qna__card, .pdp .viewed__item, .pdp .article__body { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); }
.pdp .contacts { border-color: transparent; }
.pdp .strip-item:not(.is-active):hover { border-color: var(--brand); }
.pdp .news__img { border-color: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.pdp .trust li, .pdp .reviews__card { box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); }
.pdp .info-tabs__bar button:not(.is-active) { border-color: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pdp .rel-card:hover, .pdp .contact:hover, .pdp .viewed__item:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.pdp .viewed__list { padding: 3px 3px 10px; margin: -3px; min-height: 121px; scroll-padding-inline: 3px; }
@media (min-width: 769px) {
  .pdp .buy, .pdp .gallery, .pdp .related-list, .pdp .viewed--pdp, .pdp .info-tabs, .pdp .qna, .pdp .buy-with, .pdp .news.sale-side, .pdp .tag-news, .pdp .reviews { border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .07); }
}
@media (max-width: 768px) {
  .pdp .buy, .pdp .related-list, .pdp .viewed--pdp, .pdp .info-tabs, .pdp .qna, .pdp .buy-with, .pdp .news.sale-side, .pdp .tag-news { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .06); }
}
@media (max-width: 680px) {
  /* Sản phẩm liên quan: mỗi dòng một thẻ rời (bóng không chồng thành dải), ảnh 60px không khung */
  .pdp .related-list .slider__page { gap: 8px; padding: 3px 3px 6px; }
  .pdp .related-list .rel-card { padding: 8px 10px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 3px 10px rgba(0, 0, 0, .08); }
  .pdp .related-list .rel-card:hover, .pdp .related-list .rel-card:active { box-shadow: 0 0 0 1px var(--brand), 0 4px 12px rgba(0, 0, 0, .12); }
  .pdp .related-list .rel-card__img { width: 60px; height: 60px; padding: 0; border: 0; border-radius: 0; background: none; }
  .pdp .related-list .slider__nav { margin-top: 6px; }
}

/* ===== Trang danh mục: dải hãng (.sub-brand) bỏ viền, nổi khối như khối thương hiệu trang chủ (29/11) =====
   Hãng đang chọn (.is-current) giữ viền cam. Điện thoại: chừa chỗ cho bóng trong dải vuốt ngang. */
.cat-page .sub-brand:not(.is-current) { border-color: transparent; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); }
.cat-page .sub-brand.is-current { border-radius: 10px; }
.cat-page .sub-brand:not(.is-current):hover, .cat-page .sub-brand:not(.is-current):active { border-color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
@media (max-width: 768px) {
  .cat-page .sub-brands ul { padding-top: 3px; padding-bottom: 10px; }
}

/* ===== Trang danh mục: nổi khối toàn trang (29/11) — theo demo docs/demo-danh-muc-con-noi-khoi.html, demo-danh-muc-phu-kien-tinh-nang.html =====
   1. Ô tròn danh mục con / tính năng: nền trắng + bóng nhẹ; mục đang chọn giữ vòng cam */
.cat-page .sub-feature__img { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 3px 8px rgba(0, 0, 0, .09); }
.cat-page .sub-feature:hover .sub-feature__img { box-shadow: 0 0 0 2px var(--brand), 0 3px 8px rgba(0, 0, 0, .09); }
.cat-page .sub-feature.is-current .sub-feature__img { background: #fff1ea; box-shadow: 0 0 0 2px var(--brand), 0 3px 8px rgba(216, 59, 0, .22); }
/* 2. Dải hãng nằm trong khung trắng (.sub--children): bỏ nền + đường kẻ, ô logo nổi trên nền xám của trang */
.cat-page .sub-brands.sub--children { background: transparent; border-color: transparent; padding-top: 2px; margin-bottom: 6px; }
/* 3. Nút sắp xếp chưa chọn: bỏ viền, bóng mảnh */
.cat-page .cat-sort__item:not(.is-on) { border-color: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.cat-page .cat-sort__opts { padding: 2px 2px 4px; }
/* 4. Thẻ sản phẩm, khung bài viết, thẻ tin tức: bóng nhẹ */
.cat-page .pgrid .pcard { box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); border-radius: 10px; }
.cat-page .pgrid .pcard:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.cat-page .article__body { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); }
.cat-page .cat-news__item { box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .07); }
@media (max-width: 768px) {
  .cat-page .sub-features ul { padding-bottom: 10px; }
}

/* ===== Khung gợi ý tìm kiếm (.suggest): nổi khối (29/11) — theo demo docs/demo-goi-y-tim-kiem.html =====
   Nền khung xám như nền trang; mỗi kết quả là một thẻ trắng rời, bóng nhẹ; chạm / rê / chọn bằng phím = viền cam. */
.search .suggest { background: var(--bg); padding: 8px 8px 10px; }
.search .suggest .suggest__item { background: #fff; border: 0; border-radius: 12px; margin: 0 0 8px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 3px 10px rgba(0, 0, 0, .07); }
.search .suggest .suggest__item:hover, .search .suggest .suggest__item[aria-selected="true"] { background: #fff; box-shadow: 0 0 0 1px var(--brand), 0 4px 12px rgba(0, 0, 0, .12); }
.search .suggest .suggest__cats { border-bottom: 0; padding: 2px 2px 10px; }
.search .suggest .suggest__cats a { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.search .suggest .suggest__all { background: #fff; border: 0; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 3px 10px rgba(0, 0, 0, .07); }
.search .suggest .suggest__empty { background: #fff; border-radius: 12px; }

/* ===== Trang danh mục: hàng hãng cấp 3 nằm trong khối tiêu đề, trên dòng "Sắp xếp theo" (.sub--inhead, 29/11) =====
   Chỉ khi cấp 2 theo tính năng + cấp 3 theo hãng (Category.cshtml headRows). Hàng chiếm trọn một dòng của khối (flex 100%). */
.cat-page .cat-sort--head > .sub-brands.sub--inhead { flex: 0 0 100%; width: 100%; min-width: 0; background: transparent; border: 0; border-radius: 0; padding: 0; margin: 2px 0 0; }
.cat-page .cat-sort--head > .sub-brands.sub--inhead ul { margin: 0; padding: 3px 2px 8px; scroll-padding-inline: 2px; }
.cat-page .cat-sort--head:has(> .sub--inhead) .cat-sort__opts { margin-left: 0; }
