/* ==========================================================================
   木子米AI (Muzimi AI) · Editorial Botanical Design System
   Palette: Matcha Sage · Warm Alabaster · Pine Ink · Soft Coral Heart
   Crafted for smooth 60fps performance & domestic mobile browser clarity
   ========================================================================== */

:root[data-theme] {
    /* Core Brand Tokens — harmonized with Muzimi illustration */
    --mz-sage-50: #f3f7f3;
    --mz-sage-100: #e5efe6;
    --mz-sage-200: #cce0ce;
    --mz-sage-300: #a6c6aa;
    --mz-sage-400: #7da884;
    --mz-sage-500: #568763;
    --mz-sage-600: #436f50;
    --mz-sage-700: #34583f;
    --mz-sage-rgb: 74, 124, 89;

    --mz-coral: #d85f5a;
    --mz-coral-soft: rgba(216, 95, 90, 0.11);
    --mz-amber: #c2822b;
    --mz-canvas: #f5f6f1;
    --mz-surface: rgba(255, 255, 255, 0.84);
    --mz-surface-elevated: rgba(255, 255, 255, 0.95);
    --mz-surface-subtle: rgba(244, 247, 243, 0.78);
    --mz-border: rgba(42, 62, 48, 0.085);
    --mz-border-strong: rgba(74, 124, 89, 0.28);
    --mz-ink: #1a231d;
    --mz-ink-secondary: #536157;
    --mz-ink-muted: #849288;

    /* Map upstream _glass.css tokens to Muzimi palette */
    --md-primary: #436f50;
    --md-primary-rgb: 67, 111, 80;
    --md-on-primary: #ffffff;
    --uc-primary-deep: #294933;
    --glass-bg: rgba(255, 255, 255, 0.84);
    --glass-bg-strong: rgba(255, 255, 255, 0.94);
    --glass-bg-soft: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(42, 62, 48, 0.09);
    --glass-border-soft: rgba(42, 62, 48, 0.065);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    --glass-shadow: 0 10px 30px -10px rgba(24, 40, 29, 0.07), 0 2px 8px -2px rgba(24, 40, 29, 0.03);
    --glass-shadow-lg: 0 20px 44px -12px rgba(24, 40, 29, 0.12), 0 4px 14px -4px rgba(24, 40, 29, 0.05);
    --uc-field-bg: rgba(244, 246, 241, 0.85);
    --uc-ink: #1a231d;
    --uc-ink-med: #526056;
    --uc-ink-dis: #859288;
    --uc-focus: #568763;
    --uc-focus-rgb: 86, 135, 99;

    --mz-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --mz-ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

:root[data-theme="dark"] {
    --mz-sage-50: rgba(138, 186, 148, 0.09);
    --mz-sage-100: rgba(138, 186, 148, 0.15);
    --mz-sage-200: rgba(138, 186, 148, 0.25);
    --mz-sage-500: #8ec099;
    --mz-sage-600: #9eccaa;
    --mz-sage-rgb: 142, 192, 153;

    --mz-coral: #f08882;
    --mz-coral-soft: rgba(240, 136, 130, 0.14);
    --mz-canvas: #0f1411;
    --mz-surface: rgba(22, 29, 25, 0.82);
    --mz-surface-elevated: rgba(28, 36, 31, 0.95);
    --mz-surface-subtle: rgba(27, 35, 30, 0.66);
    --mz-border: rgba(196, 220, 200, 0.095);
    --mz-border-strong: rgba(142, 192, 153, 0.34);
    --mz-ink: #e8efe9;
    --mz-ink-secondary: #9cac9f;
    --mz-ink-muted: #69786d;

    --md-primary: #8ec099;
    --md-primary-rgb: 142, 192, 153;
    --md-on-primary: #0f1812;
    --uc-primary-deep: #d8ede0;
    --glass-bg: rgba(21, 28, 24, 0.80);
    --glass-bg-strong: rgba(25, 33, 28, 0.94);
    --glass-bg-soft: rgba(27, 36, 30, 0.68);
    --glass-border: rgba(196, 220, 200, 0.10);
    --glass-border-soft: rgba(196, 220, 200, 0.07);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.45);
    --glass-shadow-lg: 0 22px 48px -12px rgba(0, 0, 0, 0.62);
    --uc-field-bg: rgba(31, 40, 34, 0.78);
    --uc-ink: #e8efe9;
    --uc-ink-med: #9cac9f;
    --uc-ink-dis: #69786d;
    --uc-focus: #8ec099;
    --uc-focus-rgb: 142, 192, 153;
}

/* ---------- Pure CSS Ambient Canvas (Zero 230KB Wallpaper Request) ---------- */
body.uc-body {
    background-color: var(--mz-canvas) !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    letter-spacing: -0.006em;
    selection-background-color: rgba(var(--mz-sage-rgb), 0.2);
}

::selection {
    background: rgba(var(--mz-sage-rgb), 0.22);
    color: var(--mz-ink);
}

body.uc-body::before {
    background:
        radial-gradient(680px 440px at 14% 8%, rgba(146, 184, 146, 0.16), transparent 70%),
        radial-gradient(560px 420px at 88% 12%, rgba(235, 196, 178, 0.12), transparent 68%),
        radial-gradient(640px 520px at 52% 92%, rgba(132, 172, 145, 0.10), transparent 72%) !important;
}

:root[data-theme="dark"] body.uc-body::before {
    background:
        radial-gradient(680px 440px at 15% 6%, rgba(110, 158, 121, 0.12), transparent 70%),
        radial-gradient(540px 400px at 86% 12%, rgba(186, 120, 112, 0.06), transparent 68%),
        radial-gradient(640px 500px at 50% 95%, rgba(92, 138, 106, 0.08), transparent 72%) !important;
}

/* Subtle architectural dot grid overlay */
body.uc-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(54, 78, 60, 0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.18) 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.18) 75%, transparent 100%);
}

:root[data-theme="dark"] body.uc-body::after {
    background-image: radial-gradient(rgba(195, 224, 202, 0.045) 1px, transparent 1px);
}

.uc-topbar,
#pjax-container,
body.uc-body > footer,
.mz-wechat-banner {
    position: relative;
    z-index: 2;
}

.uc-topbar {
    z-index: 200;
}

/* ---------- WeChat Built-in Browser Guide Banner ---------- */
.mz-wechat-banner {
    background: linear-gradient(90deg, #355840, #487355);
    color: #f6faf7;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mz-wechat-banner__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mz-wechat-banner__text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mz-wechat-banner__badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

.mz-wechat-banner__close {
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---------- Top Navigation Bar Polish ---------- */
.shop-nav {
    height: 62px;
    padding: 0 10px 0 14px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    box-shadow: var(--glass-shadow), var(--glass-hi);
    transition: box-shadow 0.25s var(--mz-ease-out), border-color 0.25s var(--mz-ease-out), background-color 0.25s ease;
}

html.mz-scrolled .shop-nav {
    background: var(--mz-surface-elevated);
    box-shadow: 0 14px 36px -12px rgba(20, 34, 24, 0.12), var(--glass-hi);
    border-color: var(--mz-border-strong);
}

.shop-brand {
    gap: 10px;
    padding-right: 6px;
}

.mz-brand-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--mz-sage-100);
    border: 1px solid rgba(var(--mz-sage-rgb), 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: transform 0.32s var(--mz-ease-spring), background-color 0.2s ease;
}

.shop-brand:hover .mz-brand-avatar-wrap {
    transform: rotate(-6deg) scale(1.06);
    background: var(--mz-sage-200);
}

.shop-brand img.mz-brand-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.mz-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.shop-brand__name {
    font-size: 15.5px;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--mz-ink);
}

.mz-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--mz-sage-600);
    margin-top: 1px;
}

:root[data-theme="dark"] .mz-brand-tag {
    color: var(--mz-sage-500);
}

.mz-brand-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3ca365;
    box-shadow: 0 0 0 2px rgba(60, 163, 101, 0.22);
}

.shop-search__box {
    max-width: 310px;
    height: 39px;
    background: var(--uc-field-bg);
    border: 1px solid var(--mz-border);
    transition: all 0.22s var(--mz-ease-out);
}

.shop-search__box:focus-within {
    max-width: 350px;
    background: var(--mz-surface-elevated);
    border-color: var(--mz-sage-500);
    box-shadow: 0 0 0 3.5px rgba(var(--mz-sage-rgb), 0.14);
}

.mz-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    min-width: 20px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--mz-ink-muted);
    background: rgba(128, 142, 132, 0.10);
    border: 1px solid var(--mz-border);
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.shop-search__box:focus-within .mz-kbd {
    opacity: 0;
}

/* ---------- Editorial Hero Section ---------- */
.mz-hero {
    position: relative;
    border-radius: 26px;
    background: var(--mz-surface);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    backdrop-filter: blur(22px) saturate(115%);
    border: 1px solid var(--mz-border);
    box-shadow: var(--glass-shadow), var(--glass-hi);
    padding: 32px 36px;
    margin-bottom: 18px;
    overflow: hidden;
    animation: mz-rise 0.55s var(--mz-ease-out) both;
}

.mz-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 184, 146, 0.20) 0%, rgba(238, 186, 176, 0.08) 48%, transparent 72%);
    pointer-events: none;
}

.mz-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    align-items: center;
    gap: 28px;
}

.mz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--mz-sage-50);
    border: 1px solid rgba(var(--mz-sage-rgb), 0.18);
    color: var(--mz-sage-600);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

:root[data-theme="dark"] .mz-eyebrow {
    color: var(--mz-sage-500);
}

.mz-live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3aa765;
}

.mz-live-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #3aa765;
    animation: mz-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.mz-hero__title {
    margin: 0 0 12px;
    font-size: clamp(23px, 3vw, 33px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.025em;
    color: var(--mz-ink);
}

.mz-hero__accent {
    background: linear-gradient(125deg, #3b6948 0%, #639870 55%, #4b7d6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root[data-theme="dark"] .mz-hero__accent {
    background: linear-gradient(125deg, #9ed0a9 0%, #c4e4cb 55%, #91c4ba 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mz-hero__desc {
    margin: 0 0 20px;
    max-width: 560px;
    font-size: 14.5px;
    line-height: 1.72;
    color: var(--mz-ink-secondary);
}

/* Quick Partition Pills in Hero */
.mz-hero__Capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.mz-cap-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 13px;
    border-radius: 11px;
    background: var(--mz-surface-subtle);
    border: 1px solid var(--mz-border);
    color: var(--mz-ink);
    font-size: 12.8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s var(--mz-ease-out), border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mz-cap-pill img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.mz-cap-pill:hover {
    transform: translateY(-2px);
    border-color: var(--mz-border-strong);
    background: var(--mz-surface-elevated);
    box-shadow: 0 6px 16px -6px rgba(32, 58, 40, 0.12);
    color: var(--mz-ink);
}

.mz-cap-pill:active {
    transform: translateY(0) scale(0.98);
}

/* Hero Trust Metrics Strip */
.mz-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--mz-border);
    font-size: 12.5px;
    color: var(--mz-ink-muted);
}

.mz-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mz-ink-secondary);
    font-weight: 500;
}

.mz-trust-item svg {
    width: 15px;
    height: 15px;
    color: var(--mz-sage-500);
    flex-shrink: 0;
}

a.mz-trust-link {
    color: var(--mz-sage-600);
    font-weight: 600;
    transition: opacity 0.16s ease;
}

:root[data-theme="dark"] a.mz-trust-link {
    color: var(--mz-sage-500);
}

a.mz-trust-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ---------- Interactive Muzimi Mascot Stage ---------- */
.mz-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    user-select: none;
}

.mz-stage__orbit {
    position: absolute;
    width: 228px;
    height: 228px;
    border-radius: 50%;
    border: 1px dashed rgba(var(--mz-sage-rgb), 0.24);
    animation: mz-spin 42s linear infinite;
    pointer-events: none;
}

.mz-stage__orbit--inner {
    width: 176px;
    height: 176px;
    border-style: solid;
    border-color: rgba(var(--mz-sage-rgb), 0.12);
    background: radial-gradient(circle, rgba(164, 198, 166, 0.18) 0%, rgba(164, 198, 166, 0.03) 68%, transparent 100%);
    animation: mz-spin-rev 30s linear infinite;
}

.mz-stage__orbit::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 26px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mz-sage-400);
    opacity: 0.65;
}

.mz-mascot-btn {
    position: relative;
    z-index: 2;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
    transform-style: preserve-3d;
    transition: transform 0.28s var(--mz-ease-out);
}

.mz-mascot-float {
    display: block;
    animation: mz-float 4.8s ease-in-out infinite;
}

.mz-mascot-img {
    width: 178px;
    height: 178px;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(38, 60, 44, 0.14));
    transition: transform 0.34s var(--mz-ease-spring), filter 0.3s ease;
}

:root[data-theme="dark"] .mz-mascot-img {
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.48));
}

.mz-mascot-btn:hover .mz-mascot-img {
    transform: scale(1.05) rotate(2deg);
}

.mz-mascot-btn.is-poked .mz-mascot-img {
    animation: mz-jelly 0.52s var(--mz-ease-spring);
}

.mz-speech-pill {
    position: relative;
    z-index: 3;
    margin-top: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--mz-surface-elevated);
    border: 1px solid var(--mz-border-strong);
    box-shadow: 0 8px 20px -6px rgba(28, 46, 33, 0.12);
    font-size: 12px;
    font-weight: 600;
    color: var(--mz-ink-secondary);
    white-space: nowrap;
    transition: opacity 0.22s ease, transform 0.26s var(--mz-ease-spring);
}

.mz-speech-pill.is-popping {
    transform: translateY(-3px) scale(1.03);
}

.mz-speech-heart {
    color: var(--mz-coral);
    margin-left: 3px;
}

/* ---------- Compact Announcement Bar ---------- */
.mz-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 18px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    box-shadow: var(--glass-shadow);
    margin-bottom: 18px;
    animation: mz-rise 0.55s var(--mz-ease-out) 0.06s both;
}

.mz-notice__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 11px;
    border-radius: 9px;
    background: var(--mz-sage-100);
    color: var(--mz-sage-700);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

:root[data-theme="dark"] .mz-notice__badge {
    background: var(--mz-sage-100);
    color: var(--mz-sage-500);
}

.mz-notice__content {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.68;
    color: var(--mz-ink-secondary);
}

.mz-notice__content p {
    margin: 0;
}

.mz-notice__content p + p {
    margin-top: 4px;
}

/* ---------- Storefront Catalog Panel & Sliding Category Tabs ---------- */
.mz-catalog-panel {
    border-radius: 24px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    box-shadow: var(--glass-shadow), var(--glass-hi);
    padding: 22px 24px 26px;
    animation: mz-rise 0.55s var(--mz-ease-out) 0.12s both;
}

.mz-catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.mz-catalog-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mz-catalog-title {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    color: var(--mz-ink);
    letter-spacing: -0.01em;
}

.mz-catalog-count {
    display: inline-flex;
    align-items: center;
    height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--mz-ink-muted);
    background: var(--mz-surface-subtle);
    border: 1px solid var(--mz-border);
}

.mz-search-status {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--mz-sage-600);
}

.mz-search-status.is-visible {
    display: inline-flex;
}

.mz-search-reset {
    border: 0;
    background: var(--mz-sage-100);
    color: var(--mz-sage-700);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

:root[data-theme="dark"] .mz-search-reset {
    color: var(--mz-sage-500);
}

/* Sliding Segmented Chip Rail */
.mz-chip-rail {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    background: var(--mz-surface-subtle);
    border: 1px solid var(--mz-border);
    margin-bottom: 22px;
}

.mz-chip-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--pill-w, 0px);
    height: var(--pill-h, 0px);
    transform: translate3d(var(--pill-x, 0px), var(--pill-y, 0px), 0);
    border-radius: 12px;
    background: var(--md-primary);
    box-shadow: 0 4px 14px -3px rgba(var(--md-primary-rgb), 0.34);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition:
        transform 0.34s var(--mz-ease-out),
        width 0.34s var(--mz-ease-out),
        height 0.25s var(--mz-ease-out),
        opacity 0.18s ease;
}

.mz-chip-rail.has-slider .mz-chip-slider {
    opacity: 1;
}

.mz-chip-rail .chip {
    position: relative;
    z-index: 1;
    height: 38px;
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mz-ink-secondary);
    transition: color 0.2s ease, transform 0.15s ease;
}

.mz-chip-rail .chip:hover {
    color: var(--mz-ink);
}

.mz-chip-rail .chip.is-primary {
    color: var(--md-on-primary) !important;
}

/* Fallback if slider hasn't measured yet */
.mz-chip-rail:not(.has-slider) .chip.is-primary {
    background: var(--md-primary) !important;
}

.mz-chip-rail .chip .chip-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mz-chip-count {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.68;
    margin-left: 2px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Portfolio Product Grid & Cards ---------- */
.mz-catalog-panel .item-list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
}

@media (min-width: 520px) {
    .mz-catalog-panel .item-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .mz-catalog-panel .item-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1140px) {
    .mz-catalog-panel .item-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.mz-card-enter {
    animation: mz-card-in 0.46s var(--mz-ease-out) both;
    animation-delay: calc(var(--mz-i, 0) * 45ms);
}

.acg-card {
    border-radius: 18px;
    background: var(--mz-surface-elevated);
    border: 1px solid var(--mz-border);
    box-shadow: 0 4px 16px -6px rgba(24, 40, 29, 0.06);
    transition:
        transform 0.28s var(--mz-ease-out),
        box-shadow 0.28s var(--mz-ease-out),
        border-color 0.24s ease;
}

.item-card-cell:hover .acg-card {
    transform: translateY(-5px);
    border-color: var(--mz-border-strong);
    box-shadow: 0 18px 36px -12px rgba(28, 48, 34, 0.14), 0 4px 12px -2px rgba(28, 48, 34, 0.05);
}

:root[data-theme="dark"] .item-card-cell:hover .acg-card {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.58);
}

.mz-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mz-sage-50);
    border-bottom: 1px solid var(--mz-border);
}

.mz-thumb-wrap .acg-thumb {
    width: 100%;
    height: 100%;
    transition: transform 0.52s var(--mz-ease-out);
}

.item-card-cell:hover .mz-thumb-wrap .acg-thumb {
    transform: scale(1.045);
}

.mz-delivery-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(42, 62, 48, 0.08);
    color: #2f6844;
    font-size: 11px;
    font-weight: 650;
}

:root[data-theme="dark"] .mz-delivery-chip {
    background: rgba(18, 24, 20, 0.84);
    border-color: rgba(196, 220, 200, 0.14);
    color: #95cca2;
}

.mz-delivery-chip__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3aa765;
}

.acg-card > .acg-body {
    padding: 14px 16px 15px;
    gap: 8px;
}

.goods-title {
    font-size: 14.5px;
    font-weight: 680;
    line-height: 1.42;
    color: var(--mz-ink);
    min-height: 2.84em;
}

.mz-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--mz-border);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.price {
    color: var(--mz-coral);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .price {
    color: var(--mz-coral);
}

.mz-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--mz-ink-muted);
    font-variant-numeric: tabular-nums;
}

.mz-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 650;
    color: var(--mz-sage-600);
    opacity: 0.78;
    transform: translateX(0);
    transition: opacity 0.2s ease, transform 0.22s var(--mz-ease-out);
}

:root[data-theme="dark"] .mz-card-cta {
    color: var(--mz-sage-500);
}

.item-card-cell:hover .mz-card-cta {
    opacity: 1;
    transform: translateX(3px);
}

/* Soft Badges Harmonization */
.badge-soft-success {
    color: #2f7a4d;
    background: rgba(58, 167, 101, 0.12);
}

:root[data-theme="dark"] .badge-soft-success {
    color: #8fd4a4;
    background: rgba(58, 167, 101, 0.18);
}

.badge-soft-primary {
    color: var(--mz-sage-600);
    background: rgba(var(--mz-sage-rgb), 0.13);
}

:root[data-theme="dark"] .badge-soft-primary {
    color: var(--mz-sage-500);
    background: rgba(var(--mz-sage-rgb), 0.18);
}

/* Empty State & Skeleton */
.mz-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 20px;
    border-radius: 18px;
    background: var(--mz-surface-subtle);
    border: 1px dashed var(--mz-border-strong);
}

.mz-empty__img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin-bottom: 12px;
    opacity: 0.92;
    animation: mz-float 4.5s ease-in-out infinite;
}

.mz-empty__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--mz-ink);
}

.mz-empty__sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--mz-ink-muted);
}

.mz-empty__btn {
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--mz-border-strong);
    background: var(--mz-surface-elevated);
    color: var(--mz-sage-600);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.mz-empty__btn:hover {
    background: var(--md-primary);
    color: var(--md-on-primary);
    border-color: transparent;
}

/* Loading Skeleton Cards */
.mz-skel-card {
    border-radius: 18px;
    background: var(--mz-surface-subtle);
    border: 1px solid var(--mz-border);
    overflow: hidden;
}

.mz-skel-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, rgba(140, 160, 145, 0.08) 25%, rgba(140, 160, 145, 0.16) 50%, rgba(140, 160, 145, 0.08) 75%);
    background-size: 200% 100%;
    animation: mz-shimmer 1.5s infinite;
}

.mz-skel-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mz-skel-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(140, 160, 145, 0.12);
}

.mz-skel-line--short {
    width: 55%;
}

/* ---------- Product Detail Page (Item.html) Enhancements ---------- */
.mz-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mz-ink-muted);
    margin-bottom: 14px;
}

.mz-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mz-ink-secondary);
    font-weight: 600;
    transition: color 0.16s ease;
}

.mz-breadcrumb a:hover {
    color: var(--mz-sage-600);
}

.item-panel {
    border-radius: 24px;
    padding: 6px;
    animation: mz-rise 0.45s var(--mz-ease-out) both;
}

.acg-cover {
    border-radius: 18px;
    background: var(--mz-sage-50);
    border: 1px solid var(--mz-border);
}

.item-buy h4 {
    font-size: 22px;
    font-weight: 780;
    letter-spacing: -0.015em;
    line-height: 1.35;
    margin-bottom: 12px;
}

.buy-divider {
    height: 1px;
    background: var(--mz-border);
    margin: 14px 0 18px;
}

.cash-pay {
    padding: 16px;
    border-radius: 16px;
    background: var(--mz-surface-subtle);
    border: 1px solid var(--mz-border);
}

.mz-item-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--mz-border);
    font-size: 12px;
    color: var(--mz-ink-muted);
}

.mz-item-guarantees span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.item-detail {
    border-radius: 24px;
    animation: mz-rise 0.45s var(--mz-ease-out) 0.08s both;
}

.mz-prose h5,
.mz-prose h6 {
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 6px;
    color: var(--mz-ink);
}

.mz-prose ul {
    padding-left: 18px;
    margin-bottom: 10px;
}

/* ---------- Order Query Page (Query.html) Enhancements ---------- */
.mz-query-hero {
    text-align: center;
    padding: 32px 24px 34px;
}

.mz-query-hero__mascot {
    width: 74px;
    height: 74px;
    object-fit: contain;
    margin-bottom: 10px;
    animation: mz-float 4.6s ease-in-out infinite;
}

.mz-query-hero__title {
    font-size: 21px;
    font-weight: 780;
    color: var(--mz-ink);
    margin: 0 0 6px;
}

.mz-query-hero__sub {
    font-size: 13.5px;
    color: var(--mz-ink-secondary);
    margin: 0 0 22px;
}

.mz-query-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 540px;
    margin: 0 auto;
}

.mz-query-bar .form-control {
    height: 46px;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 14.5px;
}

.mz-query-bar .btn-search-query {
    height: 46px;
    padding: 0 24px;
    border-radius: 14px;
    flex-shrink: 0;
}

/* ---------- Studio Footer ---------- */
.mz-footer {
    max-width: 1180px;
    margin: 12px auto 0;
    padding: 24px 20px 38px;
}

.mz-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--mz-border);
    font-size: 12.5px;
    color: var(--mz-ink-muted);
}

.mz-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mz-footer__brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
}

.mz-footer__brand strong {
    color: var(--mz-ink-secondary);
    font-weight: 650;
}

.mz-footer__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mz-footer__links a {
    color: var(--mz-ink-secondary);
    transition: color 0.16s ease;
}

.mz-footer__links a:hover {
    color: var(--mz-sage-600);
}

/* ---------- Keyframes ---------- */
@keyframes mz-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes mz-card-in {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes mz-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -7px, 0);
    }
}

@keyframes mz-jelly {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.12, 0.90) rotate(-3deg); }
    55% { transform: scale(0.94, 1.06) rotate(2deg); }
    75% { transform: scale(1.03, 0.98); }
    100% { transform: scale(1, 1); }
}

@keyframes mz-spin {
    to { transform: rotate(360deg); }
}

@keyframes mz-spin-rev {
    to { transform: rotate(-360deg); }
}

@keyframes mz-ping {
    75%, 100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

@keyframes mz-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Responsive Mobile Tuning ---------- */
@media (max-width: 860px) {
    .mz-hero {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .mz-hero__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mz-stage {
        order: -1;
        min-height: 156px;
    }

    .mz-stage__orbit {
        width: 168px;
        height: 168px;
    }

    .mz-stage__orbit--inner {
        width: 132px;
        height: 132px;
    }

    .mz-mascot-img {
        width: 132px;
        height: 132px;
    }

    .mz-catalog-panel {
        padding: 18px 16px 22px;
        border-radius: 20px;
    }

    .mz-notice {
        flex-direction: column;
        gap: 8px;
        padding: 14px 16px;
    }

    .mz-query-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
