/* as-skin.css — Bộ nhận diện AccStores.com (tím chàm hiện đại)
 * Màu chính #5b3df5 · nhấn vàng #f5b400 · nền tối #0f0d1a · font Plus Jakarta Sans (OFL, tự host /fonts)
 * Chỉ ghi đè giao diện (biến màu, bo góc, bố cục) — không đụng logic. */

/* ---------- font ---------- */
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/jakarta-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:"Plus Jakarta Sans";font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/jakarta-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:"Plus Jakarta Sans";font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/jakarta-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:"Plus Jakarta Sans";font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/jakarta-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}

/* ---------- biến màu ---------- */
html:root,html:root:not(.dark){
  --radius:1rem;
  --background:#f6f5fb;--foreground:#17142b;
  --card:#ffffff;--card-foreground:#17142b;--popover:#ffffff;--popover-foreground:#17142b;
  --primary:#5b3df5;--primary-foreground:#ffffff;
  --secondary:#efecfb;--secondary-foreground:#2a2550;
  --muted:#f2f0f9;--muted-foreground:#5f5a78;
  --accent:#ece8ff;--accent-foreground:#2e1d9a;
  --destructive:#e11d48;--border:#e6e2f3;--input:#dcd7ee;--ring:#7c5cff;
  --chart-1:#5b3df5;--chart-2:#8f7bff;--chart-3:#f5b400;--chart-4:#22b8cf;--chart-5:#e64980;
  --sidebar:#ffffff;--sidebar-foreground:#17142b;--sidebar-primary:#5b3df5;--sidebar-primary-foreground:#fff;
  --sidebar-accent:#f2f0f9;--sidebar-accent-foreground:#2a2550;--sidebar-border:#e6e2f3;--sidebar-ring:#7c5cff;
  --as-gold:#f5b400;--as-grad:linear-gradient(135deg,#6a4dff 0%,#5b3df5 45%,#4327d8 100%);
  --as-ink:#120e2b;--as-shadow:0 1px 2px rgba(23,20,43,.04),0 8px 24px -12px rgba(43,29,143,.18);
}
html:root.dark{
  --background:#0f0d1a;--foreground:#ecebf5;
  --card:#17142b;--card-foreground:#ecebf5;--popover:#17142b;--popover-foreground:#ecebf5;
  --primary:#8f7bff;--primary-foreground:#ffffff;
  --secondary:#221e3a;--secondary-foreground:#ecebf5;
  --muted:#1d1a31;--muted-foreground:#a6a1c2;
  --accent:#251f47;--accent-foreground:#ddd6ff;
  --destructive:#ff6b81;--border:rgba(255,255,255,.08);--input:rgba(255,255,255,.13);--ring:#8f7bff;
  --sidebar:#17142b;--sidebar-foreground:#ecebf5;--sidebar-primary:#8f7bff;--sidebar-primary-foreground:#0f0d1a;
  --sidebar-accent:#221e3a;--sidebar-accent-foreground:#ecebf5;--sidebar-border:rgba(255,255,255,.08);--sidebar-ring:#8f7bff;
  --as-shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px -14px rgba(0,0,0,.6);
}

html body{font-family:"Plus Jakarta Sans",var(--font-geist-sans,ui-sans-serif),ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:-.003em}
html body .font-sans{font-family:inherit}
::selection{background:#5b3df5;color:#fff}

/* bo góc & đổ bóng thẻ */
html body .rounded-xl{border-radius:16px}
html body .shadow-card{box-shadow:var(--as-shadow)}
html body .bg-primary{background-image:var(--as-grad)}
html.dark body .bg-primary{background-image:linear-gradient(135deg,#7c5cff,#5b3df5 55%,#4a2fe0);color:#fff}
html body .hover\:bg-primary\/90:hover{filter:brightness(1.06)}

/* ---------- thanh khuyến mãi ---------- */
html body #am-loyal-bar{background:linear-gradient(90deg,#120e2b,#2b1d8f 55%,#4a2fe0)!important;color:#ece8ff!important;letter-spacing:.01em}
html body #am-loyal-bar b{color:var(--as-gold)!important}

/* ---------- header: mảnh, logo trái, tìm kiếm giữa ---------- */
html body header.sticky{background:color-mix(in srgb,var(--background) 82%,transparent)!important;box-shadow:none!important;border-bottom:1px solid var(--border)}
html body header.sticky>div:first-child{height:64px;gap:14px}
html body header a[aria-label^="Back to"] span.text-lg{font-size:20px!important;font-weight:800!important;letter-spacing:-.025em}
html body header a[aria-label^="Back to"] span.rounded-lg[aria-hidden="true"],
html body footer a[aria-label^="Back to"] span.rounded-lg[aria-hidden="true"]{
  background:url(/brand-mark.svg?v=as1) center/contain no-repeat!important;border-radius:0!important;box-shadow:none!important;color:transparent!important;font-size:0!important}
html body header a[aria-label^="Back to"] span.rounded-lg[aria-hidden="true"]{width:36px!important;height:36px!important}
html body header input[aria-label="Search products"]{height:42px;border-radius:999px;background:var(--muted);border-color:transparent;padding-left:42px;font-size:14px}
@media (max-width:640px){html body header input[aria-label="Search products"]{padding-left:34px;height:38px}html body header svg.lucide-search{left:12px}html body #am-home-cats .am-pills{grid-template-columns:repeat(2,minmax(0,1fr))}html body #am-home-cats a{min-height:96px}}
html body header input[aria-label="Search products"]:focus-visible{background:var(--card);border-color:var(--primary)}
html body header input[aria-label="Search products"]+*,html body header svg.lucide-search{left:16px}
@media (min-width:1024px){html body header.sticky>div:first-child>div.relative{max-width:440px;margin-left:auto;margin-right:auto}}
html body header a.rounded-lg,html body header button.rounded-lg{border-radius:999px}
html body header a[href="#/seller"]{border:1px solid color-mix(in srgb,var(--primary) 35%,transparent);color:var(--primary)!important;border-radius:999px}
/* thanh danh mục dưới header */
html body #am-catbar,html body .am-catbar{background:transparent}

/* ---------- trang chủ: hero ---------- */
html body main>div.flex-col>section#as-hero.am-keep{order:-3!important}
#as-hero{position:relative;overflow:hidden;border-radius:24px;color:#fff;padding:44px 44px 40px;
  background:radial-gradient(80% 120% at 88% 0%,#6a4dff 0%,#3a24c4 42%,#1a1450 78%,#120e2b 100%);box-shadow:0 30px 60px -30px rgba(43,29,143,.6)}
#as-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:40px 40px;
  -webkit-mask-image:radial-gradient(70% 90% at 80% 20%,#000,transparent);mask-image:radial-gradient(70% 90% at 80% 20%,#000,transparent);pointer-events:none}
#as-hero .as-in{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);gap:36px;align-items:center}
#as-hero .as-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 8px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);font-size:12.5px;font-weight:600;color:#e6e0ff}
#as-hero .as-eyebrow i{width:8px;height:8px;border-radius:50%;background:#3ddc97;box-shadow:0 0 0 4px rgba(61,220,151,.18);font-style:normal}
#as-hero h1{margin:18px 0 12px;font-size:44px;line-height:1.06;font-weight:800;letter-spacing:-.035em;color:#fff}
#as-hero h1 span{color:var(--as-gold)}
#as-hero p.as-sub{margin:0;max-width:560px;font-size:16px;line-height:1.6;color:#d6d0ff}
#as-hero .as-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
#as-hero .as-btn{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 22px;border-radius:14px;font-weight:700;font-size:15px;text-decoration:none;cursor:pointer;border:0;transition:transform .15s,box-shadow .15s}
#as-hero .as-btn.p{background:var(--as-gold);color:#1a1300;box-shadow:0 10px 24px -10px rgba(245,180,0,.7)}
#as-hero .as-btn.s{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.22)}
#as-hero .as-btn:hover{transform:translateY(-1px)}
#as-hero .as-trust{display:flex;flex-wrap:wrap;gap:18px;margin-top:26px;font-size:13px;color:#cfc8ff}
#as-hero .as-trust b{display:block;font-size:20px;color:#fff;font-weight:800;letter-spacing:-.02em}
/* thẻ minh hoạ bên phải */
#as-hero .as-art{position:relative;min-height:300px}
#as-hero .as-card{position:absolute;background:rgba(255,255,255,.96);color:#17142b;border-radius:18px;box-shadow:0 24px 50px -20px rgba(10,5,40,.65);padding:16px 18px}
#as-hero .as-card.c1{left:0;right:28px;top:6px}
#as-hero .as-card.c2{right:-6px;width:58%;bottom:0;background:#17142b;color:#ecebf5;border:1px solid rgba(255,255,255,.1)}
#as-hero .as-card .h{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;color:#6b6688;text-transform:uppercase;letter-spacing:.06em}
#as-hero .as-card.c2 .h{color:#a6a1c2}
#as-hero .as-row{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:13.5px;font-weight:600}
#as-hero .as-row .ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#fff;font-size:14px;flex:none}
#as-hero .as-row .pr{margin-left:auto;font-weight:800;color:#5b3df5}
#as-hero .as-ok{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#0f9f6e;background:#e7f8f0;padding:4px 9px;border-radius:999px}
#as-hero .as-bar{height:6px;border-radius:9px;background:rgba(255,255,255,.12);margin-top:12px;overflow:hidden}
#as-hero .as-bar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#8f7bff,#f5b400);border-radius:9px;animation:asfill 2.4s ease-in-out infinite alternate}
@keyframes asfill{from{width:35%}to{width:100%}}
@media (max-width:860px){#as-hero{padding:30px 22px 26px;border-radius:20px}#as-hero .as-in{grid-template-columns:1fr}#as-hero .as-art{display:none}#as-hero h1{font-size:32px}}

/* ---------- lưới danh mục dạng thẻ ---------- */
html body main>div.flex-col>section#am-home-cats.am-keep{order:1!important}
html body #am-home-cats{border:0!important;background:transparent!important;padding:4px 0 0!important}
html body #am-home-cats h2{font-size:22px!important;letter-spacing:-.025em;margin:0 0 14px!important;display:flex;align-items:center;gap:10px}
html body #am-home-cats h2:before{content:"";width:6px;height:22px;border-radius:4px;background:var(--as-grad)}
html body #am-home-cats .am-pills{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px!important}
html body #am-home-cats a{flex-direction:column;align-items:flex-start!important;justify-content:flex-start;height:auto!important;min-height:112px;padding:16px!important;gap:10px!important;
  border-radius:18px!important;background:var(--card)!important;border:1px solid var(--border)!important;box-shadow:var(--as-shadow);font-size:14.5px!important;font-weight:700!important;line-height:1.3}
html body #am-home-cats a .am-pico{width:40px!important;height:40px!important;border-radius:12px!important}
html body #am-home-cats a .am-pico svg{width:22px;height:22px}
html body #am-home-cats a .am-cnt{margin-top:auto;font-size:12px!important;font-weight:600!important;color:var(--muted-foreground)!important}
html body #am-home-cats a:hover{border-color:var(--primary)!important;transform:translateY(-3px)!important;box-shadow:0 18px 34px -18px rgba(91,61,245,.45)!important}
html body #am-home-cats a.am-all{background:var(--as-grad)!important;color:#fff!important;border-color:transparent!important;justify-content:space-between}
html body #am-home-cats a.am-all .am-cnt{color:rgba(255,255,255,.85)!important}

/* ---------- 3 bước mua hàng ---------- */
html body main>div.flex-col>section#as-steps.am-keep{order:4!important}
/* thứ tự cố định (có hay chưa có sản phẩm): hero → danh mục → sản phẩm → 3 bước → affiliate → SEO/FAQ */
html body main>div.flex-col>div{order:2!important}
html body main>div.flex-col>section#am-aff-banner.am-aff-bg{order:5!important}
html body main>div.flex-col>section#am-seo{order:7!important}
#as-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#as-steps .st{position:relative;background:var(--card);border:1px solid var(--border);border-radius:18px;padding:20px 20px 18px;box-shadow:var(--as-shadow)}
#as-steps .n{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--accent);color:var(--primary);font-weight:800;font-size:15px}
#as-steps h3{margin:12px 0 4px;font-size:16px;font-weight:800;letter-spacing:-.02em;color:var(--foreground)}
#as-steps p{margin:0;font-size:13.5px;line-height:1.55;color:var(--muted-foreground)}
@media (max-width:760px){#as-steps{grid-template-columns:1fr}}

/* banner "About" cũ (xanh lá) -> ẩn trên trang chủ khi đã có hero */
html body main:has(#as-hero) section[aria-label^="About"]{display:none!important}
html body section[aria-label^="About"].bg-gradient-to-r{background-image:linear-gradient(120deg,#2b1d8f,#5b3df5 60%,#7c5cff)!important}

/* ---------- khối sản phẩm ---------- */
html body main section.rounded-xl.overflow-hidden{border-radius:18px}
html body main section.rounded-xl.overflow-hidden>div:first-child{background:color-mix(in srgb,var(--accent) 55%,var(--card))!important}
html body main section.rounded-xl.overflow-hidden h2{font-weight:800;letter-spacing:-.015em}
html body main button.bg-primary,html body main a.bg-primary{border-radius:12px;font-weight:700;box-shadow:0 8px 18px -10px rgba(91,61,245,.8)}
html body .text-primary{color:var(--primary)}

/* ---------- banner affiliate ---------- */
html body #am-aff-banner.am-aff-bg{background:radial-gradient(90% 140% at 100% 0%,#3a24c4 0%,#1a1450 55%,#120e2b 100%)!important;border:1px solid rgba(143,123,255,.25)}
html body #am-aff-banner h2 b{background:var(--as-gold)!important;color:#1a1300!important}
html body #am-aff-banner .cta{background:var(--as-gold)!important;color:#1a1300!important}

/* ---------- SEO + FAQ ---------- */
html body #am-seo{border-radius:20px!important}

/* ---------- nút nổi & chọn ngôn ngữ ---------- */
html body button.fixed.bottom-4.right-4,html body #am-myorders,html body .am-myorders{background:var(--as-grad)!important;box-shadow:0 14px 30px -12px rgba(91,61,245,.75)!important;border-radius:999px!important}
html body #am-back-to-top{background:var(--as-ink)!important;color:#fff!important}

/* ---------- footer tối ---------- */
html body footer.mt-auto{background:var(--as-ink)!important;color:#b9b3d6!important;border-top:0!important;margin-top:40px}
html body footer.mt-auto *{border-color:rgba(255,255,255,.08)!important}
html body footer.mt-auto a,html body footer.mt-auto button{color:#cfc9ec}
html body footer.mt-auto a:hover,html body footer.mt-auto button:hover{color:#fff!important}
html body footer.mt-auto .text-foreground,html body footer.mt-auto .text-foreground\/70,html body footer.mt-auto p.font-semibold{color:#fff!important}
html body footer.mt-auto a[aria-label^="Back to"] span:not([aria-hidden]){color:#fff}
html body footer.mt-auto .text-primary{color:#a594ff!important}
html body footer.mt-auto .text-muted-foreground,html body footer.mt-auto [class*="text-muted-foreground"]{color:#a39dc4!important}
html body footer.mt-auto>div:first-child{padding-top:44px;padding-bottom:40px}

/* ---------- Telegram chưa cấu hình: ẩn ---------- */
html.as-no-tg a[href*="t.me/ACCSTORES_TG"],a[href="#tg-off"]{display:none!important}
