/* bk-skin.css — giao diện nâng cấp AccBulk.com (v1, 22-11)
 * Giữ tím violet thương hiệu; phong cách "bảng giá sỉ / terminal": gọn, dày thông tin, góc 6px, thanh tiêu đề mực đậm,
 * số dạng mono (IBM Plex Mono), font IBM Plex Sans (OFL, tự host /fonts). Chỉ ghi đè giao diện. Tắt: BK_SKIN=0 trong .env */

/* ---------- font ---------- */
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-display:swap;font-weight:100 700;src:url(/fonts/plexsans-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-display:swap;font-weight:100 700;src:url(/fonts/plexsans-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-display:swap;font-weight:100 700;src:url(/fonts/plexsans-vietnamese.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-display:swap;font-weight:100 700;src:url(/fonts/plexsans-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-display:swap;font-weight:100 700;src:url(/fonts/plexsans-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/plexmono-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/plexmono-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- biến màu: tím violet thương hiệu + mực tím đen + xanh chanh, nền xám lạnh ---------- */
html:root:not(.dark){
  --background:#f4f4f8;--card:#ffffff;--popover:#ffffff;--border:#e3e2ec;--input:#d7d5e3;
  --muted:#f0eff6;--accent:#f1ebfe;--accent-foreground:#4c1d95;
  --foreground:#16121f;--card-foreground:#16121f;--muted-foreground:#5d5870;--ring:#7c3aed;
  --bk-ink:#17122b;--bk-ink2:#221a3d;--bk-vio:#6d28d9;--bk-vio2:#7c3aed;--bk-lime:#b6f24a;--bk-zebra:#faf9fd;
  --bk-r:6px;
  --bk-sh:0 1px 0 rgba(23,18,43,.04),0 1px 2px rgba(23,18,43,.06);
  --bk-sh-lg:0 1px 2px rgba(23,18,43,.06),0 10px 24px -12px rgba(76,29,149,.35);
  --bk-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
html:root.dark{
  --foreground:#ece9f6;--card-foreground:#ece9f6;--popover-foreground:#ece9f6;
  --background:#0d0b14;--card:#15121f;--popover:#15121f;--border:rgba(230,225,255,.09);--input:rgba(230,225,255,.14);
  --muted:#1b1728;--accent:#221a3d;--accent-foreground:#d4c2ff;--muted-foreground:#a29db5;
  --bk-ink:#08060e;--bk-ink2:#1b1530;--bk-vio:#9b6bff;--bk-vio2:#8b5cf6;--bk-lime:#c3f75e;--bk-zebra:#181423;
  --bk-r:6px;--bk-sh:0 1px 0 rgba(0,0,0,.35);--bk-sh-lg:0 1px 2px rgba(0,0,0,.4),0 12px 26px -12px rgba(0,0,0,.7);
  --bk-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
html body{font-family:"IBM Plex Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;-webkit-font-smoothing:antialiased}
html body .font-sans{font-family:inherit}
::selection{background:#7c3aed;color:#fff}

/* ---------- thanh khuyến mãi: mực tím đen + chữ xanh chanh (thay dải cam-tím) ---------- */
html body #am-loyal-bar{background:var(--bk-ink)!important;color:#dcd6ee!important;font-weight:500;letter-spacing:.01em;border-bottom:1px solid rgba(182,242,74,.16)}
html body #am-loyal-bar b{color:var(--bk-lime)!important;font-weight:600}

/* ---------- header ---------- */
html body header.sticky{background:color-mix(in srgb,var(--card) 94%,transparent)!important;box-shadow:none!important;border-bottom:1px solid var(--border)!important}
html body header a[aria-label^="Back to"] span.text-lg{font-size:19px!important;font-weight:700!important;letter-spacing:-.02em}
html body header input[aria-label="Search products"]{height:40px;border-radius:var(--bk-r);background:var(--muted);border-color:var(--border);font-size:14px}
html body header input[aria-label="Search products"]:focus{background:var(--card);border-color:var(--bk-vio2);box-shadow:0 0 0 3px color-mix(in srgb,var(--bk-vio2) 18%,transparent)}
html body header nav a,html body header nav button{font-weight:500}
html body header button.border.bg-card,html body header a.border.bg-card{border-radius:var(--bk-r)}
@media (max-width:640px){html body header a[aria-label^="Back to"] span.text-lg{font-size:17px!important}html body header.sticky>div:first-child{gap:8px}}

/* thanh danh mục */
html body #am-catbar{background:var(--card)!important;border-top:1px solid var(--border)!important}
html body #am-catbar #am-catbtn{border-radius:var(--bk-r)!important;background:var(--bk-ink)!important;color:#fff!important;font-weight:600!important;box-shadow:none!important}
html.dark body #am-catbar #am-catbtn{background:var(--bk-vio2)!important}
html body #am-catbar #am-chips a{border-radius:var(--bk-r)!important;font-weight:500!important}
html body #am-catbar #am-chips a:hover{background:var(--accent)!important;color:var(--accent-foreground)!important}
html body #am-catbar #am-aff-pill{border-radius:var(--bk-r)!important;background:var(--bk-lime)!important;color:#1d2a05!important;font-weight:700!important;box-shadow:none!important}

/* ---------- danh mục trang chủ: thanh tab liền khối, điện thoại vuốt ngang ---------- */
html body #am-home-cats{border:1px solid var(--border)!important;border-radius:var(--bk-r)!important;background:var(--card)!important;box-shadow:var(--bk-sh);padding:14px 14px 12px!important}
html body #am-home-cats h2{font-size:12px!important;font-weight:600!important;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-foreground)!important;margin:0 0 10px!important}
html body #am-home-cats .am-pills{display:flex!important;flex-wrap:wrap;gap:0!important;border:1px solid var(--border);border-radius:var(--bk-r);overflow:hidden;width:max-content;max-width:100%}
html body #am-home-cats a{border:0!important;border-right:1px solid var(--border)!important;border-radius:0!important;background:var(--card)!important;box-shadow:none!important;height:auto!important;padding:9px 14px 9px 10px!important;font-weight:600!important;font-size:13.5px!important;gap:8px!important;transition:background .12s}
html body #am-home-cats a:last-child{border-right:0!important}
html body #am-home-cats a .am-pico{width:24px!important;height:24px!important;border-radius:5px!important}
html body #am-home-cats a .am-cnt{font-family:var(--bk-mono);font-size:11.5px!important;font-weight:500!important;color:var(--muted-foreground)!important;padding:1px 5px;border-radius:4px;background:var(--muted)}
html body #am-home-cats a:hover{background:var(--accent)!important}
html body #am-home-cats a.am-all{background:var(--bk-ink)!important;color:#fff!important;padding-left:14px!important}
html body #am-home-cats a.am-all .am-cnt{background:rgba(182,242,74,.18);color:var(--bk-lime)!important}
html.dark body #am-home-cats a.am-all{background:var(--bk-vio2)!important}
@media (max-width:640px){
  html body #am-home-cats{padding:12px!important}
  html body #am-home-cats .am-pills{flex-wrap:nowrap!important;overflow-x:auto;width:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html body #am-home-cats .am-pills::-webkit-scrollbar{display:none}
  html body #am-home-cats a{flex:0 0 auto;white-space:nowrap}
}

/* ---------- bảng sản phẩm: thanh tiêu đề mực đậm, dòng kẻ sọc, số dạng mono ---------- */
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"]){border-radius:var(--bk-r)!important;box-shadow:var(--bk-sh)!important;border-color:var(--border)!important}
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child{background:var(--bk-ink)!important;border-bottom:0!important;padding-top:10px;padding-bottom:10px}
html.dark body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child{background:var(--bk-ink2)!important}
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child h2{color:#fff!important;font-size:13px!important;font-weight:600!important;letter-spacing:.08em;text-transform:uppercase}
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child h2 a{color:var(--bk-lime)!important}
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child h2 *:not(a){color:inherit}
html body section.rounded-xl.overflow-hidden [aria-label^="Sort by"]{color:rgba(255,255,255,.72)!important;font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.08em}
html body section.rounded-xl.overflow-hidden [aria-label^="Sort by"] svg{color:var(--bk-lime)!important}
html body section.rounded-xl.overflow-hidden [aria-label^="Sort by"]:hover{color:#fff!important}
/* dòng sản phẩm */
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"]) div.group.rounded-xl{border-radius:0!important;border:0!important;border-bottom:1px solid var(--border)!important;box-shadow:none!important;position:relative;transition:background .1s}
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"]) div.group.rounded-xl:nth-child(even){background:var(--bk-zebra)}
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"]) div.group.rounded-xl:hover{background:var(--accent)!important}
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"]) div.group.rounded-xl:last-child{border-bottom:0!important}
html body section.rounded-xl.overflow-hidden div.group p.text-foreground\/90{font-size:14px!important;font-weight:500;color:var(--foreground)!important;line-height:1.5}
html body section.rounded-xl.overflow-hidden div.group span.group-hover\:underline{text-decoration:none!important}
html body section.rounded-xl.overflow-hidden div.group:hover p.text-foreground\/90{color:var(--bk-vio)!important}
html body section.rounded-xl.overflow-hidden div.group .mt-2>span.rounded-md{border-radius:4px!important;font-weight:500!important;font-size:11px!important;padding:2px 6px!important}
/* tồn kho: số mono, ô vuông màu theo mức hàng */
html body section.rounded-xl.overflow-hidden div.group button:has(>span.h-1\.5.rounded-full){font-family:var(--bk-mono);font-weight:600;font-size:13px;gap:7px;color:var(--foreground)}
html body section.rounded-xl.overflow-hidden div.group button>span.h-1\.5.rounded-full{width:8px!important;height:8px!important;border-radius:2px!important}
html body section.rounded-xl.overflow-hidden div.group button:has(>span.bg-amber-500){color:#a15c00}
html body section.rounded-xl.overflow-hidden div.group button:has(>span.bg-red-500){color:#c81e1e}
html.dark body section.rounded-xl.overflow-hidden div.group button:has(>span.bg-amber-500){color:#fcd34d}
html.dark body section.rounded-xl.overflow-hidden div.group button:has(>span.bg-red-500){color:#fca5a5}
/* giá */
html body section.rounded-xl.overflow-hidden div.group span.whitespace-nowrap.font-bold{font-size:12px!important;font-weight:500!important;color:var(--muted-foreground)!important}
html body section.rounded-xl.overflow-hidden div.group span.whitespace-nowrap.font-bold>span.text-primary{font-family:var(--bk-mono);font-size:17px;font-weight:600;letter-spacing:-.02em;color:var(--bk-vio);margin-left:2px}
html body section.rounded-xl.overflow-hidden div.group span.uppercase.tracking-wide{font-size:10px!important;letter-spacing:.12em!important;font-weight:500}
/* nút Mua: khối vuông vức, chữ in hoa */
html body main button.bg-primary,html body main a.bg-primary{border-radius:var(--bk-r)!important;font-weight:600!important;background:var(--bk-vio2)!important;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)!important;transition:background .12s,transform .12s}
html body main section.rounded-xl.overflow-hidden div.group button.bg-primary{text-transform:uppercase;letter-spacing:.08em;font-size:12.5px!important}
html body main button.bg-primary:hover,html body main a.bg-primary:hover{background:var(--bk-vio)!important}
html body main button.bg-primary:active{transform:translateY(1px)}
/* "Xem tất cả N sản phẩm" */
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div.border-t{background:var(--muted)}
html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div.border-t>*{font-weight:600!important;border-radius:var(--bk-r)!important;text-transform:uppercase;letter-spacing:.06em;font-size:12px!important}
@media (min-width:768px){
  html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"]) div.group.rounded-xl,
  html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child{grid-template-columns:48px minmax(0,1fr) 84px 104px 124px 124px!important}
}
@media (max-width:767px){
  html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"]) div.group.rounded-xl{padding-top:14px;padding-bottom:14px}
  /* thanh tiêu đề gọn 2 dòng: tên nhóm / các nút sắp xếp cùng 1 hàng */
  html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child{display:flex!important;flex-wrap:wrap!important;align-items:center;column-gap:16px;row-gap:2px;padding-top:10px!important;padding-bottom:8px!important}
  html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child>*{margin:0!important;padding-left:0!important;padding-right:0!important;width:auto!important;justify-self:auto!important}
  html body section.rounded-xl.overflow-hidden:has([aria-label^="Sort by"])>div:first-child h2{flex:1 0 100%}
  html body section.rounded-xl.overflow-hidden [aria-label^="Sort by"]{font-size:10.5px!important}
}

/* ---------- banner affiliate: mực tím đen + lưới mờ + xanh chanh ---------- */
html body #am-aff-banner{border-radius:var(--bk-r)!important;background:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(120deg,var(--bk-ink) 0%,var(--bk-ink2) 60%,#3b1f7a 100%)!important;color:#fff!important}
html body #am-aff-banner h2 b{background:var(--bk-lime)!important;color:#1d2a05!important;border-radius:4px!important}
html body #am-aff-banner .cta{background:var(--bk-lime)!important;color:#1d2a05!important;border-radius:var(--bk-r)!important;font-weight:700!important}
html body #am-aff-banner .chips span,html body #am-aff-banner li{border-radius:4px!important}

/* ---------- khối "About" ---------- */
html body main section[aria-label^="About"].bg-gradient-to-r{background:var(--card)!important;color:var(--foreground)!important;border:1px solid var(--border);border-left:4px solid var(--bk-vio2);border-radius:var(--bk-r)!important;box-shadow:var(--bk-sh)!important}
html body main section[aria-label^="About"].bg-gradient-to-r>div[aria-hidden]{display:none}
html body main section[aria-label^="About"] h2{color:var(--foreground);font-weight:700!important;letter-spacing:-.01em}
html body main section[aria-label^="About"] p{color:var(--muted-foreground)!important}
html body main section[aria-label^="About"] ul li{background:var(--accent)!important;color:var(--accent-foreground)!important;font-weight:600!important;border-radius:4px!important;backdrop-filter:none!important}
html body main section[aria-label^="About"] ul li svg{color:var(--bk-vio2)}

/* ---------- SEO / FAQ, thẻ chung ---------- */
html body #am-seo{border-radius:var(--bk-r)!important;box-shadow:var(--bk-sh)}
html body main h1{letter-spacing:-.02em;font-weight:700}
html body .shadow-card{box-shadow:var(--bk-sh)}
html body .am-card{border-radius:var(--bk-r)!important;box-shadow:var(--bk-sh)}
html body .am-card:hover{border-color:color-mix(in srgb,var(--bk-vio2) 55%,transparent)!important;box-shadow:var(--bk-sh-lg)!important}
html body .am-card .am-price,html body .am-card [class*="price"]{font-family:var(--bk-mono)}
html body #am-shop .am-side,html body #am-shop .am-empty,html body #am-shop .am-qbox,html body #am-shop select{border-radius:var(--bk-r)!important}

/* ---------- nút nổi (My orders / Wallet nằm trong shadow DOM -> đổi qua biến) ---------- */
html:root{--bk-fab:#17122b;--bk-fab-sh:0 10px 24px -10px rgba(23,18,43,.8);--bk-wfab:#7c3aed;--bk-wfab-sh:0 10px 24px -10px rgba(124,58,237,.8);--bk-fab-r:6px}
html:root.dark{--bk-fab:#7c3aed;--bk-wfab:#2b2147}
html body button.fixed.bottom-4.right-4{background:var(--bk-ink)!important;border-radius:var(--bk-r)!important}

/* ---------- footer ---------- */
html body footer.mt-auto{background:var(--card)!important;border-top:1px solid var(--border)!important;margin-top:36px}
html body footer.mt-auto p.font-semibold,html body footer.mt-auto h2,html body footer.mt-auto h3{letter-spacing:.12em;font-weight:600!important;font-size:11.5px;color:var(--muted-foreground)!important}
html body footer.mt-auto a:hover{color:var(--bk-vio)!important}
