:root {
    --mambo-bg: #f4f7fb;
    --mambo-surface: #ffffff;
    --mambo-surface-soft: #f8fafc;
    --mambo-ink: #0b1220;
    --mambo-muted: #667085;
    --mambo-line: #e4eaf2;
    --mambo-blue: #4169e1;
    --mambo-cyan: #15b8d4;
    --mambo-violet: #7657e8;
    --mambo-green: #12a66a;
    --mambo-red: #e4475b;
    --mambo-orange: #d97706;
    --mambo-shadow: 0 18px 50px rgba(36, 55, 87, .09);
}

* { box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body.mambo-body {
    min-height: 100vh;
    margin: 0;
    color: var(--mambo-ink);
    background:
        radial-gradient(circle at 8% 4%, rgba(21, 184, 212, .11), transparent 30rem),
        radial-gradient(circle at 95% 20%, rgba(118, 87, 232, .10), transparent 28rem),
        var(--mambo-bg);
    background-attachment: fixed;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1500px, calc(100% - 32px)); margin-inline: auto; }

.mambo-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 76px;
    padding: 0;
    border-bottom: 1px solid rgba(228, 234, 242, .9);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 30px rgba(24, 39, 75, .05);
    backdrop-filter: blur(16px);
}
.mambo-nav-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.mambo-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.mambo-brand img { width: 42px; height: 42px; filter: drop-shadow(0 8px 15px rgba(65, 105, 225, .2)); }
.mambo-brand span { display: flex; flex-direction: column; line-height: 1; }
.mambo-brand strong { font-size: 19px; letter-spacing: -.4px; }
.mambo-brand small { margin-top: 6px; color: var(--mambo-muted); font-size: 9px; font-weight: 800; letter-spacing: 2.2px; }
.mambo-links { display: flex; gap: 5px; margin-left: 18px; }
.mambo-links .nav-link {
    padding: 10px 13px !important;
    border-radius: 11px;
    color: #475467;
    font-weight: 650;
}
.mambo-links .nav-link:hover, .mambo-links .nav-link:focus { color: var(--mambo-blue); background: #eef3ff; }
.mambo-links i { margin-right: 4px; }
.mambo-account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mambo-login, .mambo-create, .mambo-user {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mambo-line);
    border-radius: 12px;
    padding: 0 15px;
    color: #344054;
    background: #fff;
    font-weight: 700;
}
.mambo-create { border-color: var(--mambo-ink); color: #fff; background: var(--mambo-ink); }
.mambo-create:hover { color: #fff; background: #1e293b; }
.mambo-login:hover { color: var(--mambo-blue); border-color: #bdc9ea; }
.mambo-user { appearance: none; gap: 8px; }
.mambo-user img { width: 25px; height: 25px; border-radius: 8px; object-fit: cover; }
.mambo-menu { border: 0; color: var(--mambo-ink); box-shadow: none !important; }

.mambo-main { padding-top: 28px; padding-bottom: 52px; }
.mambo-hero {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 26px;
    padding: 42px 48px;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(5, 14, 30, .97), rgba(25, 42, 82, .95) 56%, rgba(62, 52, 133, .92)),
        #0b1220;
    box-shadow: 0 28px 70px rgba(23, 36, 72, .20);
}
.mambo-hero::before, .mambo-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.mambo-hero::before { width: 330px; height: 330px; right: 5%; top: -180px; border: 1px solid rgba(94, 234, 255, .25); box-shadow: 0 0 0 42px rgba(94, 234, 255, .04), 0 0 0 84px rgba(94, 234, 255, .025); }
.mambo-hero::after { width: 220px; height: 220px; right: 24%; bottom: -190px; background: rgba(118, 87, 232, .25); filter: blur(45px); }
.mambo-hero-copy { position: relative; z-index: 2; max-width: 760px; }
.mambo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(103, 232, 249, .28);
    border-radius: 999px;
    color: #9cecf7;
    background: rgba(15, 30, 53, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}
.mambo-hero h1 { margin: 17px 0 10px; font-size: clamp(34px, 4vw, 55px); line-height: 1.08; font-weight: 850; letter-spacing: -2px; }
.mambo-hero p { max-width: 650px; margin: 0; color: #cbd5e1; font-size: 16px; line-height: 1.8; }
.mambo-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; color: #b9c7da; }
.mambo-stats span { display: inline-flex; align-items: baseline; gap: 6px; }
.mambo-stats strong { color: #fff; font-size: 20px; }
.mambo-hero-mark { position: relative; z-index: 2; padding-right: 7%; }
.mambo-hero-mark img { width: 126px; height: 126px; filter: drop-shadow(0 25px 35px rgba(0,0,0,.35)); transform: rotate(-5deg); }

.mambo-notice, .mambo-market, .mambo-page-card, .mambo-product-detail {
    border: 1px solid var(--mambo-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--mambo-shadow);
}
.mambo-notice { display: grid; grid-template-columns: 210px 1fr; gap: 26px; margin-top: 22px; padding: 22px 26px; }
.mambo-notice-content { color: #475467; line-height: 1.75; align-self: center; }
.mambo-notice-content > :last-child { margin-bottom: 0; }
.mambo-section-title { display: flex; align-items: center; gap: 12px; }
.mambo-section-title > i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: var(--mambo-blue);
    background: #eef3ff;
    font-size: 17px;
}
.mambo-section-title span { color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.mambo-section-title h1, .mambo-section-title h2 { margin: 2px 0 0; font-size: 18px; line-height: 1.15; font-weight: 800; }

.mambo-market { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; margin-top: 22px; overflow: hidden; }
.mambo-sidebar { padding: 26px 20px; border-right: 1px solid var(--mambo-line); background: #fbfcfe; }
.mambo-categories { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.mambo-category {
    min-height: 52px;
    display: grid;
    grid-template-columns: 31px 1fr 16px;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 8px 11px;
    color: #475467;
}
.mambo-category:hover, .mambo-category.is-active { color: var(--mambo-blue); border-color: #d9e3ff; background: #eef3ff; }
.mambo-category strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mambo-category > i { justify-self: end; font-size: 11px; }
.mambo-category-icon { width: 31px; height: 31px; border-radius: 10px; background: #fff center/cover no-repeat; box-shadow: 0 5px 12px rgba(31, 55, 95, .09); }
.mambo-safe-card { margin-top: 26px; border-radius: 16px; padding: 17px; color: #d7e3f5; background: #111c31; }
.mambo-safe-card > i { margin-bottom: 10px; color: #67e8f9; font-size: 20px; }
.mambo-safe-card strong { display: block; color: #fff; }
.mambo-safe-card p { margin: 7px 0 0; font-size: 12px; line-height: 1.65; }

.mambo-catalog { min-width: 0; padding: 26px; }
.mambo-catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.mambo-search { width: min(440px, 50%); height: 44px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; border: 1px solid var(--mambo-line); border-radius: 14px; overflow: hidden; background: var(--mambo-surface-soft); }
.mambo-search > i { justify-self: center; color: #98a2b3; }
.mambo-search input { min-width: 0; height: 100%; border: 0; outline: 0; color: var(--mambo-ink); background: transparent; }
.mambo-search-button { align-self: stretch; margin: 4px; border: 0; border-radius: 10px; padding: 0 18px; color: #fff; background: var(--mambo-ink); font-weight: 750; }
.mambo-list-head, .mambo-product { display: grid; grid-template-columns: minmax(320px, 1fr) 120px 90px 92px; gap: 18px; align-items: center; }
.mambo-list-head { min-height: 42px; padding: 0 16px; border: 1px solid var(--mambo-line); border-radius: 13px 13px 0 0; color: #667085; background: #f8fafc; font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.mambo-item-list { border: 1px solid var(--mambo-line); border-top: 0; border-radius: 0 0 15px 15px; overflow: hidden; }
.mambo-product { min-height: 104px; padding: 14px 16px; background: #fff; transition: background .16s ease, transform .16s ease; }
.mambo-product + .mambo-product { border-top: 1px solid var(--mambo-line); }
.mambo-product:hover { position: relative; z-index: 1; background: #f9fbff; transform: translateX(2px); }
.mambo-product-main { min-width: 0; display: flex; align-items: center; gap: 14px; }
.mambo-product-main > img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 17px; object-fit: cover; background: #eef2f7; }
.mambo-product-copy { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.mambo-product-title { overflow: hidden; color: #1d2939; font-size: 15px; font-weight: 800; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.mambo-product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mambo-tag, .mambo-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #dce4f2;
    border-radius: 999px;
    padding: 3px 8px;
    color: #516079;
    background: #f5f8fc;
    font-size: 10px;
    font-weight: 750;
}
.mambo-tag-green, .mambo-badge-green { color: #08794d; border-color: #bcebd7; background: #edfbf5; }
.mambo-tag-orange { color: #9a5705; border-color: #f5d9aa; background: #fff8e8; }
.mambo-tag-red { color: #b4233a; border-color: #fac8d0; background: #fff1f3; }
.mambo-tag-blue { color: #2c54b8; border-color: #cbd7fb; background: #eff4ff; }
.mambo-tag-purple { color: #6941c6; border-color: #ddd1fc; background: #f5f2ff; }
.mambo-tag-gray { color: #475467; border-color: #d0d5dd; background: #f9fafb; }
.mambo-product-price { color: var(--mambo-red); font-size: 21px; font-weight: 850; }
.mambo-product-price small { margin-right: 2px; font-size: 13px; }
.mambo-product-stock { display: flex; flex-direction: column; color: #98a2b3; font-size: 10px; }
.mambo-product-stock strong { margin-top: 3px; color: #475467; font-size: 15px; }
.mambo-buy { min-height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--mambo-ink); font-weight: 750; }
.mambo-buy.is-disabled { color: #98a2b3; background: #edf1f5; }
.mambo-product.is-soldout { cursor: pointer; }
.mambo-product.is-soldout .mambo-product-main > img { filter: grayscale(.75); opacity: .68; }
.mambo-loading, .mambo-empty-list { min-height: 230px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--mambo-muted); }
.mambo-empty-list { flex-direction: column; }
.mambo-empty-list i { font-size: 32px; }

.mambo-narrow { width: min(920px, calc(100% - 32px)); }
.mambo-page-card { margin-bottom: 22px; padding: 28px; }
.mambo-page-lead { margin: 16px 0 22px; color: var(--mambo-muted); }
.mambo-query-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.mambo-query-form .form-control { min-height: 48px; border-color: var(--mambo-line); border-radius: 13px; box-shadow: none; }
.mambo-primary-button { min-height: 48px; border: 0; border-radius: 13px; padding: 0 22px; color: #fff; background: var(--mambo-ink); font-weight: 800; }
.mambo-empty { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mambo-empty > i { margin-bottom: 14px; color: #9aa8bd; font-size: 40px; }
.mambo-empty h2 { margin: 0 0 8px; font-size: 20px; }
.mambo-empty p { margin: 0; color: var(--mambo-muted); }
.mambo-closed { min-height: 470px; gap: 12px; }
.mambo-closed .mambo-kicker { color: var(--mambo-blue); border-color: #d8e1fc; background: #f0f4ff; }
.order-list .panel, .order-list .card { border: 1px solid var(--mambo-line) !important; box-shadow: none !important; }

.mambo-product-detail { display: grid; grid-template-columns: minmax(310px, .82fr) minmax(420px, 1.18fr); gap: 0; overflow: hidden; }
.mambo-detail-cover { min-height: 560px; display: grid; place-items: center; padding: 56px; background: linear-gradient(145deg, #eef4ff, #f8f5ff); }
.mambo-detail-cover img { width: min(300px, 82%); aspect-ratio: 1; border-radius: 34px; object-fit: cover; box-shadow: 0 30px 70px rgba(45, 67, 115, .20); }
.mambo-detail-main { padding: 38px; }
.mambo-detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.mambo-share { width: 30px; height: 30px; border: 1px solid var(--mambo-line); border-radius: 999px; color: var(--mambo-blue); background: #fff; }
.mambo-detail-main h1 { margin: 18px 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.25; font-weight: 850; letter-spacing: -.8px; }
.mambo-detail-price { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0; border-radius: 16px; padding: 17px 19px; color: #667085; background: #f7f9fc; }
.mambo-detail-price .price { color: var(--mambo-red); font-size: 31px; font-weight: 850; }
.mambo-security-note { display: flex; gap: 12px; margin: 18px 0 24px; border: 1px solid #cfe9e8; border-radius: 15px; padding: 14px; color: #245d62; background: #f0fbfb; }
.mambo-security-note i { margin-top: 2px; color: #0f98a5; font-size: 19px; }
.mambo-security-note p { margin: 0; line-height: 1.55; }
.mambo-buy-form { display: flex; flex-direction: column; gap: 18px; }
.mambo-field > label, .mambo-pay > label { display: block; margin-bottom: 8px; color: #344054; font-weight: 800; }
.mambo-field .form-control { min-height: 45px; border-color: var(--mambo-line); border-radius: 12px; box-shadow: none; }
.mambo-field .form-control:focus { border-color: #9db1ee; box-shadow: 0 0 0 4px rgba(65,105,225,.08); }
.sku-list { display: flex; flex-wrap: wrap; gap: 9px; }
.sku, .optional-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--mambo-line);
    border-radius: 11px;
    padding: 8px 13px;
    color: #475467;
    background: #fff;
}
.sku.is-primary { color: #fff; border-color: var(--mambo-blue); background: var(--mambo-blue); }
.badge-money { margin-left: 5px; font-size: 10px; }
.qty-group { width: 178px; display: grid; grid-template-columns: 43px 1fr 43px; }
.qty-group button { border: 1px solid var(--mambo-line); color: #344054; background: #f8fafc; }
.qty-group button:first-child { border-radius: 11px 0 0 11px; }
.qty-group button:last-child { border-radius: 0 11px 11px 0; }
.qty-group .form-control { min-width: 0; border-radius: 0; text-align: center; }
.mambo-captcha { width: min(280px, 100%); }
.mambo-captcha img { height: 45px; }
.pay-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pay-list .pay { border: 1px solid var(--mambo-line) !important; border-radius: 12px !important; }
.mambo-description { margin-top: 22px; }
.mambo-description-content { margin-top: 20px; color: #475467; line-height: 1.8; }
.mambo-description-content img { max-width: 100%; height: auto; }

.mambo-footer { border-top: 1px solid var(--mambo-line); padding: 24px 0 34px; color: var(--mambo-muted); background: rgba(255,255,255,.65); }
.mambo-footer .container { display: flex; align-items: center; gap: 18px; }
.mambo-footer div div { display: flex; flex-direction: column; }
.mambo-footer strong { color: var(--mambo-ink); }
.mambo-footer p { margin: 0 auto; }
.mambo-footer a { color: var(--mambo-blue); }

:focus-visible { outline: 3px solid rgba(65, 105, 225, .3); outline-offset: 2px; }

@media (max-width: 991.98px) {
    .mambo-nav-inner { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
    .mambo-brand { margin-right: auto; }
    .mambo-menu { order: 3; }
    .mambo-account { order: 2; margin-left: 0; }
    .mambo-nav .navbar-collapse { order: 4; flex-basis: 100%; }
    .mambo-links { margin: 8px 0 2px; }
    .mambo-hero { min-height: 230px; padding: 34px; }
    .mambo-hero-mark { padding-right: 0; }
    .mambo-hero-mark img { width: 96px; height: 96px; }
    .mambo-market { grid-template-columns: 225px minmax(0, 1fr); }
    .mambo-catalog { padding: 22px; }
    .mambo-list-head, .mambo-product { grid-template-columns: minmax(250px, 1fr) 100px 70px 75px; gap: 12px; }
    .mambo-product-detail { grid-template-columns: .8fr 1.2fr; }
    .mambo-detail-cover { min-height: 500px; padding: 32px; }
    .mambo-detail-main { padding: 30px; }
}

@media (max-width: 767.98px) {
    .container, .mambo-narrow { width: min(100% - 22px, 1500px); }
    .mambo-main { padding-top: 14px; padding-bottom: 34px; }
    .mambo-hero { min-height: auto; padding: 28px 24px; border-radius: 20px; }
    .mambo-hero h1 { letter-spacing: -1px; }
    .mambo-hero-mark { display: none; }
    .mambo-stats { gap: 8px 16px; }
    .mambo-notice { grid-template-columns: 1fr; gap: 15px; padding: 20px; border-radius: 18px; }
    .mambo-market { display: block; border-radius: 18px; }
    .mambo-sidebar { border-right: 0; border-bottom: 1px solid var(--mambo-line); padding: 20px; }
    .mambo-categories { flex-direction: row; overflow-x: auto; margin-top: 16px; padding-bottom: 5px; }
    .mambo-category { min-width: max-content; grid-template-columns: 28px auto; min-height: 46px; }
    .mambo-category > i { display: none; }
    .mambo-category-icon { width: 28px; height: 28px; }
    .mambo-safe-card { display: none; }
    .mambo-catalog { padding: 20px; }
    .mambo-catalog-head { display: block; }
    .mambo-search { width: 100%; margin-top: 16px; }
    .mambo-list-head { display: none; }
    .mambo-item-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; border: 0; overflow: visible; }
    .mambo-product { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px; border: 1px solid var(--mambo-line) !important; border-radius: 16px; padding: 13px; }
    .mambo-product-main { align-items: flex-start; }
    .mambo-product-main > img { width: 52px; height: 52px; border-radius: 14px; }
    .mambo-product-title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.8em; }
    .mambo-product-tags { min-height: 21px; }
    .mambo-product-price { margin-top: auto; }
    .mambo-product-stock { flex-direction: row; align-items: center; justify-content: space-between; }
    .mambo-product-stock strong { margin: 0; }
    .mambo-product-detail { display: block; border-radius: 18px; }
    .mambo-detail-cover { min-height: 290px; padding: 30px; }
    .mambo-detail-cover img { width: min(210px, 70%); border-radius: 26px; }
    .mambo-detail-main { padding: 24px 20px; }
    .mambo-page-card { padding: 22px 18px; border-radius: 18px; }
    .mambo-footer .container { align-items: flex-start; flex-direction: column; gap: 10px; }
    .mambo-footer p { margin: 0; }
}

@media (max-width: 479.98px) {
    .mambo-brand strong { font-size: 16px; }
    .mambo-brand small { letter-spacing: 1.4px; }
    .mambo-brand img { width: 36px; height: 36px; }
    .mambo-login { display: none; }
    .mambo-create { min-height: 35px; padding: 0 11px; font-size: 12px; }
    .mambo-hero h1 { font-size: 31px; }
    .mambo-hero p { font-size: 14px; }
    .mambo-stats span { font-size: 11px; }
    .mambo-stats strong { font-size: 16px; }
    .mambo-item-list { grid-template-columns: 1fr; }
    .mambo-query-form { grid-template-columns: 1fr; }
    .mambo-primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
