/* CG Hunter SSR Store - Design System v8.0 — Round 4 (B6+B7+B8) */
:root {
    /* ═══ Brand Colors — B1: Electric Indigo ═══ */
    --color-brand: #6366f1;            /* Indigo-500 — 核心品牌色 */
    --color-brand-light: #818cf8;      /* Indigo-400 — hover态 */
    --color-brand-dark: #4f46e5;       /* Indigo-600 — active态 */
    --color-brand-glow: rgba(99, 102, 241, 0.3);
    --gradient-brand: linear-gradient(135deg, #6366f1, #8b5cf6);

    /* Gold Accent (price / VIP / PREMIUM only) */
    --color-gold: #D4AF37;
    --color-gold-muted: rgba(212, 175, 55, 0.12);

    /* Semantic Colors */
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-danger: #ff4757;
    --color-info: var(--color-brand);

    /* ═══ Surface Hierarchy — B5: 5-level Dark ═══ */
    --bg-base: #0a0a0a;               /* L0 — 最底层，页面背景 */
    --bg-sunken: #0f0f0f;             /* L1 — 凹陷区域 (footer/hero底) */
    --bg-surface: #161616;            /* L2 — 卡片/sidebar/表单 */
    --bg-elevated: #1c1c1c;           /* L3 — toast/dropdown/sticky nav */
    --bg-floating: #242424;           /* L4 — modal body/popover */
    --bg-header: rgba(10, 10, 10, 0.95); /* 头部透明背景 */

    /* Legacy BG aliases → mapped to new levels */
    --bg-body: var(--bg-base);
    --bg-dark: var(--bg-base);
    --bg-card: var(--bg-surface);

    /* ═══ Text Hierarchy — A4 ═══ */
    --text-main: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;         /* zinc-400 */
    --text-muted: #a1a1aa;            /* alias → secondary */
    --text-tertiary: #71717a;          /* zinc-500 */
    --text-disabled: #3f3f46;          /* zinc-700 */
    --text-link: var(--color-brand-light);
    --text-price: var(--color-gold);

    /* ═══ Border Hierarchy — A4 ═══ */
    --border-subtle: rgba(255,255,255,0.04);
    --border-default: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.15);
    --border-interactive: rgba(255,255,255,0.2);
    --border-color: var(--border-default);  /* legacy alias */
    --divider: rgba(255,255,255,0.06);

    /* ═══ Interactive States — A4 ═══ */
    --hover-bg: rgba(255,255,255,0.04);
    --active-bg: rgba(255,255,255,0.08);
    --button-hover: rgba(255, 255, 255, 0.1);
    --focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.4);

    /* Glass */
    --glass-bg: rgba(22, 22, 22, 0.6);
    --glass-border: var(--border-default);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ═══ Shadow Hierarchy — A4 ═══ */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px var(--color-brand-glow);

    /* Typography */
    --font-main: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;

    /* ═══ Z-index Token System — M1.4 ═══ */
    --z-base: 1;
    --z-card-overlay: 2;
    --z-card-fav: 3;
    --z-sticky: 100;
    --z-back-to-top: 200;
    --z-purchase-bar: 900;
    --z-navbar: 1000;
    --z-dropdown: 1001;
    --z-search-overlay: 1010;
    --z-overlay: 1500;
    --z-modal: 2000;
    --z-toast: 3000;
    --z-confirm: 4000;
}

/* ═══ M2.1: Touch Optimization ═══ */
html {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* M2.5: Scroll lock when modal open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: var(--scroll-top, 0);
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; }

/* --- Layout --- */
.page-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation: see B2 Navbar section below --- */

/* --- Hero Section --- */
.hero {
    margin-top: 0;
    padding: 70px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        var(--bg-sunken);
    background-size: 100%, 100%, 48px 48px, 48px 48px, 100%;
    border-bottom: 1px solid var(--divider);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--bg-body));
    pointer-events: none;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: linear-gradient(to bottom, #fff 30%, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.hero-stats {
    display: inline-flex;
    gap: 24px;
    margin-bottom: 8px;
    padding: 8px 20px;
    background: var(--border-subtle);
    border: 1px solid var(--divider);
    border-radius: var(--radius-full);
}
.hero-stat {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-stat strong {
    color: #fff;
    font-weight: 700;
}

/* --- Filter Bar (A3: old .filters removed, now uses .toolbar) --- */

/* === Search Bar (#11) === */
.hero-search {
    max-width: 520px;
    margin: 0 auto 28px;
    position: relative;
}
.hero-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 48px 14px 20px;
    background: var(--divider);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 15px;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
}
.hero-search-input::placeholder {
    color: var(--text-tertiary);
}
.hero-search-input:focus {
    border-color: var(--border-interactive);
    background: var(--border-default);
    box-shadow: 0 0 0 4px var(--border-subtle);
}
.hero-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--border-strong);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.hero-search-btn:hover {
    background: var(--border-interactive);
    color: #fff;
}
.hero-search-clear {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 14px;
    cursor: pointer;
    display: none;
    padding: 4px 8px;
    transition: color 0.2s;
}
.hero-search-clear:hover { color: #fff; }

/* === B4: Hero Collapse === */
.hero {
    transition: padding 0.45s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero h1, .hero p {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero--collapsed {
    padding: 16px 0 10px;
}
.hero--collapsed h1,
.hero--collapsed p {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero--collapsed::after {
    height: 30px;
}
.hero-toggle-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hover-bg);
    border: 1px solid var(--border-default);
    color: var(--text-tertiary);
    width: 32px;
    height: 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all var(--transition-fast);
    z-index: var(--z-card-overlay);
}
.hero-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--active-bg);
    border-color: var(--border-strong);
}
.hero--collapsed .hero-toggle-btn i {
    transform: rotate(180deg);
}
.hero-toggle-btn i {
    transition: transform 0.3s ease;
}

/* === Sort & Filter Toolbar (#12) === */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 12px;
}
.toolbar-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-label {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}
.sort-select {
    background: var(--divider);
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    padding: 7px 32px 7px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-family: var(--font-main);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.2s;
}
.sort-select:hover, .sort-select:focus {
    border-color: var(--border-interactive);
    background-color: var(--border-default);
}
.results-count {
    font-size: 12px;
    color: var(--text-tertiary);
    padding-left: 4px;
}

/* === Favorite Heart (#13) === */
.card-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: var(--z-card-fav);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
    font-size: 14px;
}
.product-card:hover .card-fav-btn {
    opacity: 1;
    transform: scale(1);
}
.card-fav-btn:hover {
    background: rgba(0,0,0,0.7);
    color: #fff;
    transform: scale(1.1);
}
.card-fav-btn.favorited {
    opacity: 1;
    transform: scale(1);
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.3);
}
.card-fav-btn.favorited:hover {
    background: rgba(255, 71, 87, 0.3);
}
@keyframes heart-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.card-fav-btn.just-faved {
    animation: heart-pop 0.4s ease;
}

/* === Back to Top (#14) === */
.back-to-top {
    position: fixed;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--border-default);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-back-to-top);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* M4.6: GPU acceleration */
    will-change: opacity, transform;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--border-strong);
    color: #fff;
    transform: translateY(-2px);
}

/* === Modal System Unified (#15) === */
.modal-unified {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: var(--z-modal);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-unified.open {
    opacity: 1;
    visibility: visible;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-body {
    position: relative;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* M2.5: Scroll containment */
    overscroll-behavior: contain;
    /* M4.6: GPU acceleration */
    will-change: transform;
}
.modal-unified.open .modal-body {
    transform: scale(1) translateY(0);
}
.modal-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-default);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: var(--z-base);
}
.modal-close-x:hover {
    background: var(--border-strong);
    color: #fff;
}

/* Search result highlight tag */
.search-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--color-gold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.search-active-tag button {
    background: none;
    border: none;
    color: var(--color-gold);
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.search-active-tag button:hover { opacity: 1; }

@media (max-width: 768px) {
    .hero-search { max-width: 100%; padding: 0 10px; }
    .hero-search-input { font-size: 14px; padding: 12px 44px 12px 16px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-right { justify-content: flex-end; }
    .back-to-top { bottom: 90px; right: 16px; width: 40px; height: 40px; font-size: 16px; }
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
}
.filter-btn:hover {
    color: #fff;
    border-color: var(--border-interactive);
    background: var(--divider);
    transform: scale(1.05);
}
.filter-btn:active {
    transform: scale(0.95);
}
.filter-btn.active {
    background: white;
    color: black;
    border-color: white;
    font-weight: 600;
    transform: scale(1);
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    padding-bottom: 80px;
}

.product-card {
    --glow-x: 50%;
    --glow-y: 50%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
    cursor: pointer;
    border: 1px solid var(--divider);
    display: flex;
    /* M4.5: content-visibility for offscreen cards */
    content-visibility: auto;
    contain-intrinsic-size: 0 360px;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
}
/* B3: Glow Card — conic gradient following mouse */
.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg at var(--glow-x) var(--glow-y),
        transparent 0deg,
        var(--color-brand) 60deg,
        var(--color-brand-light) 90deg,
        var(--color-gold) 120deg,
        transparent 180deg
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}
.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
    border-color: var(--border-strong);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* M4.7: Skeleton background while image loads */
    background: var(--bg-surface);
}

.card-image img,
.card-image video.card-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-image img,
.product-card:hover .card-image video.card-video-preview {
    transform: scale(1.08);
}

/* Video indicator overlay on card */
.card-video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.product-card:hover .card-video-indicator {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video placeholder for gallery thumbnail */
.thumb-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    opacity: 0.8;
}

/* Gradient overlay on hover */
.card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.55) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.product-card:hover .card-image::after {
    opacity: 1;
}

/* Category tag floating on card */
.card-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    z-index: var(--z-card-overlay);
    letter-spacing: 0.3px;
}

/* Price badge on card */
.card-price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    color: var(--color-gold);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    z-index: var(--z-card-overlay);
}

.card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
}

/* --- Product Detail Page --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 80px;
    max-width: 1440px;
    margin: 0 auto;
}

.media-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-media-frame {
    background: black;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--divider);
}
/* M4.1: Main preview image style (replaces inline style) */
.main-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumb-btn {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: 0.2s;
}
.thumb-btn:hover, .thumb-btn.active {
    opacity: 1;
    border-color: var(--color-brand);
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.info-column {
    position: relative;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-lg);
}

.btn-purchase {
    width: 100%;
    background: white;
    color: black;
    font-weight: 700;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn-purchase:hover {
    transform: translateY(-2px);
    background: #e0e0e0;
}
.btn-purchase:disabled {
    background: var(--bg-floating);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.description-box {
    margin-top: 40px;
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
}

.description-content { color: var(--text-secondary); font-size: 16px; line-height: 1.8; }
.description-content h1, .description-content h2, .description-content h3 {
    color: var(--text-primary); margin: 1.2em 0 0.6em;
}
.description-content h2 { font-size: 1.3em; }
.description-content h3 { font-size: 1.15em; }
.description-content p { margin: 0.6em 0; }
.description-content ul, .description-content ol { padding-left: 1.5em; margin: 0.6em 0; }
.description-content li { margin: 0.3em 0; }
.description-content strong { color: var(--text-primary); }
.description-content hr { border: none; border-top: 1px solid var(--divider); margin: 1.5em 0; }
.description-content code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.description-content img {
    max-width: 100%;
    border-radius: 8px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .sticky-sidebar {
        position: static;
        margin-top: 24px;
    }
}

/* ===== Toast Notification System ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-lg, 12px);
    font-size: 14px;
    min-width: 220px;
    max-width: 380px;
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.4));
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn 0.3s ease;
    backdrop-filter: blur(12px);
}
.toast.toast-success { border-left: 3px solid var(--color-success); }
.toast.toast-error   { border-left: 3px solid var(--color-danger, #ff4757); }
.toast.toast-warning { border-left: 3px solid var(--color-warning, #ff9800); }
.toast.toast-info    { border-left: 3px solid var(--color-brand); }
.toast.toast-out     { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ===== Confirm Dialog ===== */
.confirm-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: var(--z-confirm);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: confirmFadeIn 0.2s ease;
}
.confirm-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl, 16px);
    padding: 30px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.confirm-box p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0 0 24px;
    line-height: 1.6;
}
.confirm-actions {
    display: flex;
    gap: 12px;
}
.btn-confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast, 0.15s ease);
}
.btn-confirm-yes {
    background: var(--color-danger, #ff4757);
    color: white;
}
.btn-confirm-yes:hover { filter: brightness(1.1); }
.btn-confirm-no {
    background: var(--border-strong);
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
}
.btn-confirm-no:hover { background: var(--border-strong); }

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== Glass System (3 Levels) ===== */
.glass-nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--divider);
}
.glass-elevated {
    background: rgba(22, 22, 22, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-default);
}
.glass-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== Fade-in-up Animation System ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger delays for card grids */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.30s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.40s; }

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.skeleton-text-sm {
    height: 10px;
    width: 60%;
    border-radius: 3px;
}
.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
    overflow: hidden;
}
.skeleton-card-image {
    width: 100%;
    aspect-ratio: 16/9;
}
.skeleton-order {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
    overflow: hidden;
    margin-bottom: 20px;
}
.skeleton-order-header {
    background: var(--bg-elevated);
    height: 44px;
    border-bottom: 1px solid var(--divider);
}
.skeleton-order-body {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
}
.skeleton-order-thumb {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    flex-shrink: 0;
}
.skeleton-order-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Footer (#16) ===== */
.site-footer {
    margin-top: 60px;
    padding: 48px 24px 32px;
    border-top: 1px solid var(--divider);
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-sunken) 100%);
}
.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-brand-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    max-width: 260px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-link {
    font-size: 13px;
    color: var(--text-tertiary);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-link:hover { color: #fff; }
.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--divider);
    margin: 24px auto 16px;
    max-width: 1440px;
}
.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copyright {
    font-size: 11px;
    color: var(--text-disabled);
    letter-spacing: 0.3px;
}
.footer-tech {
    font-size: 10px;
    color: var(--text-disabled);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .site-footer { padding: 32px 16px 100px; }
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ===== Breadcrumb (#17) ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 16px 0 8px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb-sep {
    color: var(--text-disabled);
    font-size: 10px;
}
.breadcrumb-current {
    color: var(--text-muted);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* ===== Pagination (#18) ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0 20px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--border-subtle);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.page-btn:hover {
    background: var(--border-strong);
    color: #fff;
    border-color: var(--border-interactive);
}
.page-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 700;
    pointer-events: none;
}
.page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.page-ellipsis {
    color: var(--text-tertiary);
    font-size: 14px;
    padding: 0 4px;
    user-select: none;
}
@media (max-width: 768px) {
    .pagination { gap: 4px; }
    .page-btn { min-width: 36px; height: 36px; font-size: 13px; padding: 0 8px; }
}

/* ========== B2: NAVBAR — Three-zone layout (Brand / Search / Actions) ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--divider);
    padding-top: env(safe-area-inset-top, 0px);
    /* M4.6: GPU acceleration */
    will-change: transform;
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 60px;
    padding: 0 32px;
    max-width: 1600px;
    margin: 0 auto;
}
/* — Left: Brand — */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}
.nav-brand:hover { opacity: 0.85; }
.nav-brand-logo {
    height: 32px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}
.nav-brand-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    white-space: nowrap;
}
.nav-brand-tag {
    font-size: 9px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-gold), #C5A028);
    color: #000;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    line-height: 1;
}
/* — Center: Search — */
.nav-search {
    flex: 1;
    max-width: 480px;
    position: relative;
    display: flex;
    align-items: center;
}
.nav-search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-tertiary);
    font-size: 13px;
    pointer-events: none;
    transition: color var(--transition-fast);
}
.nav-search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    padding: 8px 36px 8px 38px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-main);
    outline: none;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}
.nav-search-input::placeholder { color: var(--text-tertiary); }
.nav-search-input:focus {
    border-color: var(--color-brand);
    box-shadow: var(--focus-ring);
    background: var(--bg-elevated);
}
.nav-search-input:focus ~ .nav-search-icon { color: var(--color-brand-light); }
.nav-search-clear {
    position: absolute;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--hover-bg);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    transition: all var(--transition-fast);
}
.nav-search-clear:hover { background: var(--active-bg); color: var(--text-primary); }
.nav-search-toggle {
    display: none;  /* shown only on mobile */
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.nav-search-toggle:hover { color: var(--text-primary); background: var(--hover-bg); }
/* — Right: Action Icons — */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.nav-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.nav-action-btn:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}
.nav-badge {
    display: none;
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-danger);
    color: white;
    font-size: 9px;
    height: 16px;
    min-width: 16px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(10, 10, 10, 0.85);
    font-weight: bold;
    line-height: 1;
}
/* — User dropdown — */
.nav-user {
    position: relative;
}
.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-floating);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 6px;
    z-index: var(--z-dropdown);
    animation: dropdownIn 0.15s ease;
}
.nav-user-dropdown.open { display: block; }
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}
.nav-user-dropdown-info { display: flex; flex-direction: column; }
.nav-user-dropdown-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.nav-user-dropdown-divider {
    height: 1px;
    background: var(--divider);
    margin: 4px 0;
}
.nav-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.nav-user-dropdown-item i { width: 16px; text-align: center; }
.nav-user-dropdown-item:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}
.nav-user-dropdown-item--danger:hover {
    color: var(--color-danger);
    background: rgba(255, 71, 87, 0.08);
}

/* ========== A2: PRODUCT DETAIL (migrated from product.html <style>) ========== */

/* B7: Detail Tabs */
.detail-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 0;
}
.detail-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-main);
    margin-bottom: -1px;
}
.detail-tab:hover {
    color: var(--text-primary);
}
.detail-tab.active {
    color: var(--color-brand-light);
    border-bottom-color: var(--color-brand);
}
.detail-tab i {
    font-size: 13px;
}
/* M4.5: content-visibility for inactive tab panels */
.detail-tab-panel {
    display: none;
    content-visibility: hidden;
}
.detail-tab-panel.active {
    display: block;
    content-visibility: visible;
    animation: tab-fade-in 0.3s ease;
}
@keyframes tab-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
/* B7: Related Grid (inside tab) */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
/* B7: Mobile Purchase Bar */
.mobile-purchase-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-default);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) 16px;
    z-index: var(--z-purchase-bar);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* M4.6: GPU acceleration */
    will-change: transform;
}
.mobile-purchase-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-gold);
}
.mobile-purchase-btn {
    flex: 1;
    max-width: 200px;
    background: #fff;
    color: #000;
    font-weight: 800;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.detail-layout .sticky-sidebar {
    background: rgba(22, 22, 22, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-default);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.detail-tags-modern {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.category-pill {
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px var(--color-brand-glow);
}
.tag-pill {
    background: var(--border-default);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
}
.product-title-modern {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #fff;
    background: linear-gradient(to bottom, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.product-meta-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-strong);
}
.meta-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-item i { color: var(--text-tertiary); width: 16px; text-align: center; }
.meta-item span { color: var(--text-secondary); font-weight: 600; }
.price-box-modern {
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.current-price {
    font-size: 48px;
    font-weight: 800;
    color: #D4AF37;
    line-height: 1;
    background: linear-gradient(to right, #D4AF37, #C5A028);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}
.current-price small {
    font-size: 24px;
    font-weight: 700;
    margin-right: 2px;
    -webkit-text-fill-color: initial;
    color: #D4AF37;
}
.original-price-modern {
    font-size: 16px;
    color: var(--text-tertiary);
    text-decoration: line-through;
    position: relative;
    top: -4px;
}
.discount-badge {
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -8px;
    animation: pulse 2s infinite;
}
.btn-purchase-modern {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: #000;
    font-size: 18px;
    font-weight: 800;
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--border-strong);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}
.btn-purchase-modern:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px var(--border-interactive);
    background: #f0f0f0;
}
.btn-purchase-modern:active { transform: translateY(1px); }

/* B6: Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple .ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: ripple-expand 0.6s ease-out;
    pointer-events: none;
}
@keyframes ripple-expand {
    to { transform: scale(4); opacity: 0; }
}

/* B6: Skeleton → Content Crossfade */
.skeleton-crossfade-enter {
    opacity: 0;
    transform: translateY(6px);
    animation: crossfade-in 0.4s ease forwards;
}
@keyframes crossfade-in {
    to { opacity: 1; transform: translateY(0); }
}
.skeleton-crossfade-exit {
    animation: crossfade-out 0.3s ease forwards;
}
@keyframes crossfade-out {
    to { opacity: 0; transform: translateY(-6px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.trust-signals {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--hover-bg);
    border-radius: 10px;
}
.signal-item {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.signal-item i { font-size: 18px; margin-bottom: 4px; }
/* Gallery */
.media-thumbnails-wrapper { position: relative; margin-top: 15px; }
.media-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    white-space: nowrap;
    padding-bottom: 10px;
    /* M2.3: Scroll Snap */
    scroll-snap-type: x mandatory;
    scroll-padding: 0 8px;
}
.media-thumbnails::-webkit-scrollbar { height: 6px; }
.media-thumbnails::-webkit-scrollbar-track { background: var(--border-subtle); border-radius: 3px; }
.media-thumbnails::-webkit-scrollbar-thumb { background: var(--border-interactive); border-radius: 3px; }
.media-thumbnails::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
.thumb-btn {
    flex: 0 0 100px;
    width: 100px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: var(--bg-base);
    opacity: 0.6;
    display: inline-block;
    /* M2.3: Scroll Snap */
    scroll-snap-align: start;
}
.thumb-btn:hover { opacity: 1; }
.thumb-btn.active { border-color: var(--color-brand); opacity: 1; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
/* Meta Capsules */
.product-meta-capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--border-subtle);
    border: 1px solid var(--border-strong);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: default;
}
.meta-pill i { color: var(--text-secondary); }
.meta-pill.link {
    cursor: pointer;
    text-decoration: none;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--color-brand-light);
}
.meta-pill.link:hover { background: rgba(99, 102, 241, 0.2); transform: translateY(-1px); }
.meta-pill.link i { color: var(--color-brand-light); }

/* ========== A2: ORDERS (migrated from orders.html <style>) ========== */
.order-content {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
}
.order-thumb {
    display: block;
    width: 120px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}
.order-info { flex: 1; }

/* ========== A1: Extracted Inline Style Classes ========== */
/* --- Floating Buttons --- */
.floating-wechat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #07c160;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: var(--z-purchase-bar);
    transition: transform 0.3s;
    border: none;
}
.floating-wechat-btn:hover { transform: scale(1.1); }
.floating-wechat-btn i { color: white; font-size: 30px; }
.floating-wechat-label {
    position: absolute;
    bottom: -25px;
    font-size: 12px;
    color: #2d3436;
    font-weight: bold;
    white-space: nowrap;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 4px;
}
/* --- Fav Panel --- */
.fav-panel-body {
    background: var(--bg-surface);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.fav-panel-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-default);
}
.fav-panel-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}
.fav-panel-header h3 i { color: #ff4757; margin-right: 8px; }
.fav-panel-list { flex: 1; overflow-y: auto; padding: 16px 24px; overscroll-behavior: contain; }
.fav-panel-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-tertiary);
}
.fav-panel-empty i { font-size: 32px; display: block; margin-bottom: 12px; }
.fav-panel-empty a { color: var(--color-gold); text-decoration: underline; font-size: 14px; }
.fav-panel-count { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
.fav-panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
}
.fav-panel-item:hover { background: var(--border-subtle); }
.fav-panel-item .fa-heart { color: #ff4757; font-size: 12px; }
.fav-panel-item span { font-size: 14px; }
.fav-panel-item .fa-chevron-right { margin-left: auto; color: var(--text-tertiary); font-size: 11px; }
.fav-panel-clear-wrap {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
}
.fav-panel-clear-btn {
    background: none;
    border: 1px solid rgba(255,71,87,0.3);
    color: #ff4757;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.fav-panel-clear-btn:hover { background: rgba(255,71,87,0.1); }
/* --- Modal QR Body (light) --- */
.modal-qr-body {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 90%;
    width: 360px;
}
.modal-qr-body h3 { margin-bottom: 5px; color: #2d3436; }
.modal-qr-body .modal-qr-desc { font-size: 0.9rem; color: #636e72; margin-bottom: 20px; }
.modal-qr-body .modal-qr-img-wrap {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
}
.modal-qr-body .modal-qr-img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    display: block;
}
.modal-qr-body .modal-qr-hint { font-size: 0.85rem; color: #b2bec3; }
/* Admin QR smaller variant */
.modal-admin-body {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 90%;
    width: 320px;
}
.modal-admin-body h3 { margin-bottom: 5px; color: #2d3436; font-size: 1.2rem; }
.modal-admin-body .modal-admin-desc { font-size: 0.85rem; color: #636e72; margin-bottom: 20px; }
.modal-admin-body .modal-admin-img-wrap {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
.modal-admin-body .modal-admin-img { width: 200px; height: 200px; object-fit: cover; display: block; }
.modal-admin-body .modal-admin-hint { font-size: 0.8rem; color: #b2bec3; }
/* --- Extraction Modal --- */
.extract-modal-body {
    background: var(--bg-floating);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-strong);
}
.extract-title {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, #fff, var(--color-brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.extract-desc { text-align: center; color: var(--text-secondary); margin-bottom: 25px; font-size: 14px; }
.extract-form { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.extract-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0,0,0,0.2);
    border: 2px solid var(--border-strong);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}
.extract-input:focus { border-color: rgba(255,255,255,0.3); }
.extract-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-brand-dark), var(--color-brand-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: 0.3s;
}
.extract-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.extract-result {
    display: none;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-subtle);
}
.extract-result-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.extract-result-row { display: flex; gap: 10px; }
.extract-link-input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-strong);
    padding: 10px;
    border-radius: 8px;
    color: var(--color-brand-light);
    font-family: monospace;
    font-size: 13px;
    cursor: text;
}
.extract-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.2s;
}
.extract-open-btn i { margin-right: 6px; }
.extract-code-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    font-family: monospace;
}
.extract-copy-btn {
    border: none;
    background: var(--border-strong);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: auto;
}
.extract-error {
    display: none;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: #ff4757;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
}
.extract-error-link { color: var(--color-brand); text-decoration: underline; font-weight: bold; }
.extract-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}
.extract-wechat-btn {
    background: var(--border-subtle);
    color: #00b894;
    border: 1px solid #00b894;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.extract-wechat-btn:hover { background: rgba(0,184,148,0.1); }
/* --- User Area — B2: moved to Navbar dropdown (see .nav-user-*) --- */
/* --- Product Page Inline Extraction --- */
.product-not-found { padding: 100px; text-align: center; color: var(--text-secondary); }
.section-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 10px;
}
.price-section {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-subtle);
}
.price-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ssl-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 10px;
}
.ssl-hint i { font-size: 10px; }
.download-box-paid {
    margin-top: 30px;
    background: #1b5e20;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #388e3c;
}
.download-box-paid h3 { color: #a5d6a7; margin-top: 0; font-size: 16px; }
.download-link-row { margin: 15px 0; }
.download-link-label { color: #a5d6a7; font-size: 13px; display: block; margin-bottom: 5px; }
.download-link-url {
    color: #fff;
    text-decoration: underline;
    word-break: break-all;
    line-height: 1.5;
    display: block;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 4px;
}
.download-code-row { color: white; display: flex; align-items: center; }
.download-code-label { color: #a5d6a7; font-size: 13px; margin-right: 10px; }
.download-code-value {
    font-weight: bold;
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 1px;
    font-size: 16px;
}
.download-copy-btn {
    margin-left: 10px;
    background: none;
    border: none;
    color: #a5d6a7;
    cursor: pointer;
    font-size: 14px;
}
.download-sidebar-box {
    background: rgba(46, 125, 50, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2e7d32;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.download-sidebar-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.download-sidebar-header i { color: #4caf50; font-size: 24px; }
.download-sidebar-header h3 { color: #a5d6a7; margin: 0; font-size: 16px; }
.download-sidebar-header span { color: var(--text-tertiary); font-size: 11px; }
.download-sidebar-code {
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.download-sidebar-code .code-label { color: var(--text-secondary); font-size: 13px; }
.download-sidebar-code .code-value {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}
.download-sidebar-code .copy-icon {
    color: var(--text-secondary);
    cursor: pointer;
    margin-left: 5px;
    font-size: 14px;
    transition: color 0.2s;
}
.download-sidebar-code .copy-icon:hover { color: white; }
/* Purchase button green variant */
.btn-purchase-green {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    text-decoration: none;
    margin-bottom: 15px;
}
/* QR Payment Area */
.qr-area {
    display: none;
    margin-top: 20px;
    text-align: center;
    background: var(--bg-surface);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: popIn 0.3s ease;
}
.qr-area-header { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.qr-area-header .fa-alipay { font-size: 22px; color: #1678ff; }
.qr-placeholder {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--border-strong);
}
.qr-area-footer { color: var(--text-tertiary); font-size: 12px; margin-top: 20px; text-transform: uppercase; letter-spacing: 1px; }
/* Trust signal colors */
.signal-item--blue { color: #0088cc; }
.signal-item--gold { color: #D4AF37; }
.signal-item--green { color: #4caf50; }
.signal-item--red { color: #ff5252; }
/* Gallery thumb overlay */
.thumb-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
}
.thumb-play-overlay i { color: white; font-size: 16px; }
.thumb-cover-inner { position: relative; width: 100%; height: 100%; }
.thumb-cover-inner img { opacity: 0.8; }
/* --- Order Page--- */
.order-page-container { max-width: 900px; margin-top: 80px; }
.order-page-title { border-bottom: 1px solid var(--border-default); padding-bottom: 20px; font-size: 24px; }
.alert-box {
    background: #263238;
    border: 1px solid #37474f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #cfd8dc;
}
.alert-box i { color: #29b6f6; margin-right: 8px; }
.order-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
}
.order-card-header {
    background: var(--bg-floating);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-default);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}
.order-card-header-right { display: flex; align-items: center; gap: 15px; }
.order-delete-icon { cursor: pointer; color: var(--text-tertiary); transition: color 0.2s; }
.order-delete-icon:hover { color: #f44336; }
.order-product-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.order-product-meta { display: flex; gap: 15px; font-size: 14px; color: var(--text-secondary); }
.order-account-tag {
    font-size: 10px;
    background: var(--bg-floating);
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 5px;
}
.order-guest-tag {
    font-size: 10px;
    background: var(--bg-floating);
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 5px;
}
.btn-sm {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}
.btn-sm-green { background: #2e7d32; color: white; }
.btn-sm-gray { background: var(--bg-floating); color: var(--text-secondary); border: 1px solid var(--border-strong); }
/* Empty state */
.empty-orders { display: none; text-align: center; padding: 60px 0; }
.empty-orders i { font-size: 48px; color: var(--text-disabled); margin-bottom: 20px; animation: empty-bag-float 3s ease-in-out infinite; }
@keyframes empty-bag-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(-3deg); }
    66% { transform: translateY(-6px) rotate(3deg); }
}
.empty-orders h3 { color: var(--text-secondary); margin-bottom: 20px; }
.empty-orders p { color: var(--text-tertiary); margin-bottom: 30px; }
/* Guest modal inline classes */
.guest-modal-body {
    background: var(--bg-floating);
    width: 85%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-default);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.guest-modal-body h3 { color: white; margin-bottom: 15px; font-size: 18px; }
.guest-modal-body p { color: #cecece; font-size: 14px; line-height: 1.6; margin-bottom: 25px; text-align: left; }
.guest-modal-actions { display: flex; gap: 10px; flex-direction: column; }
.guest-login-btn {
    background: #0984e3;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}
.guest-continue-btn {
    background: transparent;
    border: 1px solid #636e72;
    color: #b2bec3;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
/* @keyframes migrated from base.html */
@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/* List page empties */
.list-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}
.list-empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    color: var(--text-disabled);
    animation: empty-search-sway 2.5s ease-in-out infinite;
}
@keyframes empty-search-sway {
    0%, 100% { transform: rotate(-8deg) translateX(0); }
    25% { transform: rotate(4deg) translateX(6px); }
    50% { transform: rotate(-4deg) translateX(-6px); }
    75% { transform: rotate(6deg) translateX(3px); }
}
.list-empty-state h3 { color: var(--text-secondary); margin-bottom: 10px; }
.list-empty-state p { font-size: 14px; }
.list-empty-state a { color: var(--color-gold); text-decoration: underline; }

/* ========== B8: Unified Empty States ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}
.empty-state-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
    color: var(--text-disabled);
}
.empty-state h3 {
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 12px;
}
.empty-state p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 28px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
/* 404 — Ghost floating */
.empty-state--404 .empty-state-icon {
    animation: ghost-float 3s ease-in-out infinite;
    color: var(--color-brand);
}
@keyframes ghost-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.05); }
}
/* Empty favorites — Heartbeat */
.empty-state--fav .empty-state-icon {
    color: var(--color-danger);
    animation: heartbeat-pulse 1.5s ease-in-out infinite;
}
@keyframes heartbeat-pulse {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    56% { transform: scale(1); }
}
/* Error / disconnect */
.empty-state--error .empty-state-icon {
    color: var(--color-warning);
    animation: error-shake 2s ease-in-out infinite;
}
@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-4px); }
    20% { transform: translateX(4px); }
    30% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    50% { transform: translateX(0); }
}
/* Product not found override */
.product-not-found.empty-state {
    padding: 100px 20px;
}
.card-meta-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
}
.card-meta-tag {
    background: var(--divider);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}
.card-summary {
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-summary {
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-original-price {
    font-size: 12px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

/* ========== RESPONSIVE CONSOLIDATED ========== */
@media (max-width: 768px) {
    /* B2: Navbar mobile — search collapses, icons compact */
    .nav-inner { padding: 0 12px; gap: 8px; height: 54px; }
    .nav-brand-text { font-size: 13px; letter-spacing: 0.5px; }
    .nav-brand-tag { display: none; }
    .nav-search { display: none; }
    .nav-search-toggle { display: flex; }
    .nav-action-btn { width: 34px; height: 34px; font-size: 15px; }
    .nav-actions { gap: 2px; }
    /* Mobile fullscreen search overlay */
    .nav--search-open .nav-search {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0;
        max-width: none;
        z-index: var(--z-search-overlay);
        background: var(--bg-base);
        padding: 10px 12px;
        border-bottom: 1px solid var(--divider);
    }
    .nav--search-open .nav-search-input {
        font-size: 16px;
        padding: 12px 40px 12px 42px;
    }
    /* B3: Disable glow on touch */
    .product-card::before { display: none; }
    /* List / Hero overrides */
    .hero { padding: 40px 0 20px; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; margin-bottom: 20px; }
    .hero--collapsed { padding: 12px 0 8px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 40px; }
    .card-content { padding: 10px; }
    .product-title { font-size: 0.85rem; }
    .card-category-badge { font-size: 9px; padding: 2px 6px; }
    .card-price-badge { font-size: 12px; padding: 2px 6px; }
    .product-card .card-fav-btn { opacity: 1; transform: scale(1); width: 28px; height: 28px; font-size: 12px; }
    /* Product detail */
    .detail-layout { display: flex; flex-direction: column; gap: 20px; }
    .main-media-frame { height: 250px; }
    .thumb-btn { flex: 0 0 80px; width: 80px; height: 50px; }
    .product-title-modern { font-size: 20px; margin-bottom: 15px; }
    .current-price { font-size: 32px; }
    .current-price small { font-size: 18px; }
    .btn-purchase-modern { padding: 12px; font-size: 16px; }
    .sticky-sidebar { padding: 20px; }
    .page-container { margin-top: calc(54px + env(safe-area-inset-top, 0px)); padding-left: 12px; padding-right: 12px; }
    /* Orders */
    .order-content { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 15px; }
    .order-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
    .order-info { width: 100%; }
    .order-action { width: 100%; }
    .order-action .btn-sm { width: 100%; display: block; text-align: center; box-sizing: border-box; }
    /* B7: Mobile purchase bar + tabs */
    .mobile-purchase-bar { display: flex; }
    /* M2.6: Sticky Tabs */
    .detail-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        position: sticky;
        top: calc(54px + env(safe-area-inset-top, 0px));
        z-index: var(--z-sticky);
        background: var(--bg-base);
        border-bottom: 1px solid var(--divider);
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .detail-tab { font-size: 13px; padding: 10px 14px; white-space: nowrap; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    /* B8: Empty state mobile */
    .empty-state-icon { font-size: 52px; }
    .empty-state p { font-size: 14px; }

    /* M2.4: Modal → Bottom Sheet */
    .modal-unified {
        align-items: flex-end;
    }
    .modal-body {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .modal-unified.open .modal-body {
        transform: translateY(0);
    }
    .fav-panel-body {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
    }

    /* M2.2: Gallery touch-action */
    .main-media-frame {
        touch-action: pan-y pinch-zoom;
        overflow: hidden;
    }
}

/* ========== M3.1: SMALL SCREEN ≤375px ========== */
@media (max-width: 375px) {
    .product-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero h1 { font-size: 1.3rem; }
    .hero p { font-size: 0.85rem; }
    .nav-brand-text { display: none; }
    .current-price { font-size: 26px; }
    .current-price small { font-size: 15px; }
    .page-container { padding-left: 8px; padding-right: 8px; }
}

/* ========== M3.2: TABLET 769-1024px ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .detail-layout { grid-template-columns: 1fr 280px; gap: 20px; }
    .sticky-sidebar { position: sticky; top: 80px; }
    .page-container { max-width: 960px; margin-left: auto; margin-right: auto; }
}

/* ========== M3.3: LARGE SCREEN ≥1440px ========== */
@media (min-width: 1440px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .page-container { max-width: 1400px; margin-left: auto; margin-right: auto; }
    .detail-layout { grid-template-columns: 1fr 420px; gap: 40px; }
}

/* ========== M3.4: LANDSCAPE (mobile) ========== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero { padding: 8px 0; }
    .hero h1, .hero p { display: none; }
    .nav-inner { height: 40px; }
    .page-container { margin-top: 40px; }
    .mobile-purchase-bar {
        display: flex;
        top: 40px;
        bottom: auto;
        left: auto;
        right: 0;
        width: auto;
        flex-direction: column;
        padding: 8px;
        border-top: 0;
        border-left: 1px solid var(--border-default);
    }
    .main-media-frame { height: 60vh; }
}

/* ============================================================
   M5 — Accessibility & Polish
   ============================================================ */

/* M5.1: prefers-reduced-motion — disable animations for vestibular sensitivity */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* M5.2: pointer:coarse — enlarge touch targets to 44px minimum */
@media (pointer: coarse) {
    .nav-action-btn { min-width: 44px; min-height: 44px; }
    .thumb-btn { min-height: 44px; }
    .filter-btn { min-height: 44px; padding: 10px 20px; }
    .detail-tab { min-height: 44px; }
    .pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .card-fav-btn { min-width: 44px; min-height: 44px; }
    .modal-close-x { min-width: 44px; min-height: 44px; }
}

/* M5.3: Focus Visible Ring — keyboard-only focus indicator */
:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* M5.5: Scroll Indicator — gradient fade on gallery overflow */
.media-thumbnails-wrapper {
    position: relative;
}
.media-thumbnails-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 10px;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--bg-base));
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.media-thumbnails-wrapper.scroll-end::after {
    opacity: 0;
}

/* ============================================================
   V9.0 Editorial Rebuild (2026-04-09)
   Layered override: keep legacy CSS as fallback, upgrade visual language.
   ============================================================ */

:root {
    --font-main: 'Manrope', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', 'Noto Sans SC', serif;

    --bg-base: #0f0e0b;
    --bg-sunken: #14120f;
    --bg-surface: #1b1813;
    --bg-elevated: #22201a;
    --bg-floating: #29251d;
    --bg-header: rgba(15, 14, 11, 0.88);

    --text-main: #f4efe5;
    --text-primary: #f4efe5;
    --text-secondary: #c9beac;
    --text-tertiary: #8f836f;
    --text-disabled: #5e5648;

    --color-brand: #38a39a;
    --color-brand-light: #52beb4;
    --color-brand-dark: #26766f;
    --color-brand-glow: rgba(56, 163, 154, 0.28);
    --gradient-brand: linear-gradient(135deg, #38a39a, #52beb4);

    --color-gold: #d6a358;
    --color-gold-muted: rgba(214, 163, 88, 0.16);

    --border-subtle: rgba(255, 239, 210, 0.06);
    --border-default: rgba(255, 239, 210, 0.1);
    --border-strong: rgba(255, 239, 210, 0.2);
    --divider: rgba(255, 239, 210, 0.08);
}

body.store-editorial {
    position: relative;
    background:
        radial-gradient(1200px 480px at 15% -5%, rgba(214, 163, 88, 0.18), transparent 55%),
        radial-gradient(1000px 520px at 92% 0%, rgba(56, 163, 154, 0.14), transparent 54%),
        linear-gradient(180deg, #13100b 0%, #100f0c 38%, #0f0e0b 100%);
    color: var(--text-main);
}

.editorial-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.editorial-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    opacity: 0.36;
}

.editorial-orb--amber {
    width: 320px;
    height: 320px;
    left: -90px;
    top: 80px;
    background: radial-gradient(circle, rgba(214, 163, 88, 0.58) 0%, rgba(214, 163, 88, 0) 72%);
}

.editorial-orb--indigo {
    width: 280px;
    height: 280px;
    right: -90px;
    top: 230px;
    background: radial-gradient(circle, rgba(56, 163, 154, 0.48) 0%, rgba(56, 163, 154, 0) 70%);
}

.editorial-grain {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 3px 3px, 3px 3px;
    mix-blend-mode: soft-light;
}

.nav,
.site-footer,
.back-to-top,
.floating-wechat-btn {
    position: relative;
    z-index: 1;
}

.nav {
    border-bottom: 1px solid var(--divider);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    background: linear-gradient(180deg, rgba(19, 16, 11, 0.92), rgba(15, 14, 11, 0.84));
}

.nav-brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1.2px;
}

.nav-brand-tag {
    letter-spacing: 1.3px;
    border-color: rgba(214, 163, 88, 0.45);
    color: #f0cc95;
    background: rgba(214, 163, 88, 0.11);
}

.page-container--list {
    margin-top: 74px;
}

.hero--editorial {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: stretch;
    margin-bottom: 18px;
    border: 1px solid var(--border-default);
    border-radius: 22px;
    padding: 26px;
    background:
        linear-gradient(130deg, rgba(255, 239, 210, 0.04), rgba(255, 239, 210, 0.01)),
        rgba(27, 24, 19, 0.76);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

.hero-editorial-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.hero-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #d7b786;
    font-size: 11px;
}

.hero--editorial h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: 0.2px;
    color: #f8f2e8;
}

.hero--editorial p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.85;
    max-width: 60ch;
}

.hero-metrics {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-metric-item {
    border: 1px solid var(--border-default);
    border-radius: 14px;
    background: rgba(255, 239, 210, 0.03);
    padding: 10px 12px;
}

.hero-metric-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #f5dfbd;
    line-height: 1.1;
}

.hero-metric-label {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.hero-feature-card {
    display: grid;
    grid-template-rows: 1fr auto;
    border: 1px solid var(--border-default);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 239, 210, 0.03);
    min-height: 320px;
    --parallax-y: 0px;
    transform: translateY(var(--parallax-y));
    transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-feature-card:hover {
    transform: translateY(calc(var(--parallax-y) - 4px));
    border-color: rgba(214, 163, 88, 0.45);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.hero-feature-media {
    position: relative;
    overflow: hidden;
}

.hero-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-feature-body {
    padding: 16px;
    background: linear-gradient(180deg, rgba(24, 21, 16, 0.8), rgba(24, 21, 16, 0.96));
}

.hero-feature-eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #dab985;
}

.hero-feature-body h2 {
    margin: 8px 0 6px;
    font-family: var(--font-display);
    font-size: 27px;
    line-height: 1.2;
    color: #f4efe5;
}

.hero-feature-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.hero-feature-price {
    margin-top: 10px;
    color: var(--color-gold);
    font-size: 22px;
    font-weight: 700;
}

.hero--editorial.hero--collapsed {
    padding: 10px 18px;
    grid-template-columns: 1fr;
}

.hero--editorial.hero--collapsed .hero-editorial-copy p,
.hero--editorial.hero--collapsed .hero-metrics,
.hero--editorial.hero--collapsed .hero-feature-card {
    display: none;
}

.hero--editorial.hero--collapsed .hero-editorial-copy h1 {
    font-size: 1.3rem;
}

.hero--editorial .hero-toggle-btn {
    bottom: 10px;
    left: auto;
    right: 10px;
    transform: none;
    background: rgba(255, 239, 210, 0.08);
}

.aw-promo-banner--editorial {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border: 1px solid rgba(56, 163, 154, 0.35);
    border-radius: 16px;
    background: linear-gradient(125deg, rgba(56, 163, 154, 0.17), rgba(214, 163, 88, 0.07));
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.aw-promo-banner--editorial:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 163, 88, 0.58);
}

.aw-promo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(9, 8, 6, 0.3);
    border: 1px solid rgba(255, 239, 210, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f7dfb7;
}

.aw-promo-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.aw-promo-title {
    font-size: 14px;
    font-weight: 700;
    color: #f4efe5;
}

.aw-promo-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.aw-promo-arrow {
    margin-left: auto;
    color: rgba(255, 239, 210, 0.8);
    font-size: 12px;
}

.toolbar--editorial {
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: 12px;
    background: rgba(27, 24, 19, 0.7);
}

.filter-btn {
    border-radius: 999px;
    background: rgba(255, 239, 210, 0.04);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.filter-btn.active,
.filter-btn:hover {
    color: #fff;
    border-color: rgba(214, 163, 88, 0.5);
    background: rgba(214, 163, 88, 0.14);
}

.search-active-tag {
    border-color: rgba(56, 163, 154, 0.45);
    background: rgba(56, 163, 154, 0.12);
}

.search-active-tag i {
    font-size: 11px;
}

.sort-select {
    background-color: rgba(255, 239, 210, 0.03);
}

.catalog-editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.product-card--editorial {
    grid-column: span 4;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: linear-gradient(175deg, rgba(39, 34, 26, 0.82), rgba(20, 18, 14, 0.88));
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.product-card--editorial:nth-child(7n + 2),
.product-card--editorial.product-card--wide {
    grid-column: span 8;
}

.product-card--editorial:nth-child(7n + 5) {
    grid-column: span 6;
}

.product-card--editorial .card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.product-card--editorial.product-card--wide .card-image {
    aspect-ratio: 21 / 9;
}

.product-card--editorial .card-image img,
.product-card--editorial .card-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card--editorial:hover .card-image img,
.product-card--editorial:hover .card-video-preview {
    transform: scale(1.06);
}

.product-card--editorial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(380px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(56, 163, 154, 0.22), transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 0;
}

.product-card--editorial:hover::before {
    opacity: 1;
}

.product-card--editorial .card-content,
.product-card--editorial .card-image,
.product-card--editorial .card-fav-btn {
    position: relative;
    z-index: 1;
}

.card-editorial-overlay {
    position: absolute;
    left: 10px;
    bottom: 10px;
}

.card-editorial-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(9, 8, 6, 0.62);
    border: 1px solid rgba(255, 239, 210, 0.25);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #f4e2c2;
}

.product-card--editorial .card-category-badge,
.product-card--editorial .card-price-badge {
    border-radius: 999px;
}

.product-card--editorial .card-price-badge {
    background: rgba(9, 8, 6, 0.72);
    border: 1px solid rgba(214, 163, 88, 0.5);
    color: #f6c886;
}

.product-card--editorial .card-content {
    padding: 15px 16px 16px;
}

.product-card--editorial .product-title {
    font-family: var(--font-display);
    font-size: 1.24rem;
    line-height: 1.26;
    margin-bottom: 8px;
    color: #f5f0e6;
}

.card-editorial-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-read-more {
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #c7e7e4;
}

.card-read-more i {
    margin-left: 3px;
}

.card-fav-btn {
    background: rgba(9, 8, 6, 0.68);
    border-color: rgba(255, 239, 210, 0.28);
}

.pagination {
    margin-top: 26px;
}

.page-btn {
    border-radius: 999px;
}

.page-btn.active {
    background: rgba(56, 163, 154, 0.22);
    border-color: rgba(56, 163, 154, 0.55);
}

.page-container--product {
    margin-top: 74px;
}

.product-hero-scene {
    border-radius: 22px;
    border: 1px solid var(--border-default);
    background: linear-gradient(150deg, rgba(255, 239, 210, 0.05), rgba(255, 239, 210, 0.015));
    padding: 18px;
    margin-bottom: 18px;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 18px;
    align-items: stretch;
}

.product-hero-copy {
    background: rgba(24, 21, 16, 0.64);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: 18px;
}

.product-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #deb679;
}

.product-hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.14;
    color: #fbf5eb;
}

.product-hero-summary {
    margin: 12px 0 0;
    color: var(--text-secondary);
    line-height: 1.85;
}

.product-hero-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--border-default);
    background: rgba(255, 239, 210, 0.03);
    padding: 7px 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-hero-cover {
    border-radius: 16px;
    border: 1px solid var(--border-default);
    overflow: hidden;
    min-height: 240px;
}

.product-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-layout--editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.media-column,
.info-column--editorial {
    min-width: 0;
}

.media-column {
    border-radius: 18px;
    border: 1px solid var(--divider);
    background: rgba(24, 21, 16, 0.64);
    padding: 18px;
}

.main-media-frame {
    border-radius: 14px;
    border: 1px solid var(--border-default);
    background: #0a0907;
    overflow: hidden;
    min-height: 320px;
}

.description-box {
    border-radius: 14px;
    border: 1px solid var(--border-default);
    background: rgba(18, 16, 12, 0.62);
    padding: 18px;
}

.description-content {
    line-height: 1.9;
    color: var(--text-secondary);
}

.info-column--editorial .sticky-sidebar {
    position: sticky;
    top: 86px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(31, 28, 21, 0.92), rgba(22, 20, 15, 0.92));
    border: 1px solid var(--border-default);
}

.product-title-modern {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.12;
}

.price-section {
    background: rgba(255, 239, 210, 0.03);
    border: 1px solid var(--border-default);
}

.price-label {
    color: #d2b07d;
}

.btn-purchase-modern {
    background: linear-gradient(135deg, #f4e6cf, #e2c08b);
    color: #1e170f;
    box-shadow: 0 10px 24px rgba(214, 163, 88, 0.23);
}

.btn-purchase-modern:hover {
    background: linear-gradient(135deg, #f9ebd2, #e5c78f);
}

.btn-purchase-green {
    background: linear-gradient(135deg, #2f8d83, #47ad9f);
    color: #f4f0e8;
}

.aw-product-promo--editorial {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(56, 163, 154, 0.4);
    background: rgba(56, 163, 154, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.aw-product-promo--editorial:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 163, 88, 0.5);
}

.aw-product-promo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 239, 210, 0.18);
    color: #f2dcba;
    flex-shrink: 0;
}

.aw-product-promo-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aw-product-promo-title {
    font-size: 13px;
    color: #f4efe5;
    font-weight: 700;
}

.aw-product-promo-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.aw-product-promo-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 11px;
}

.download-sidebar-header i {
    color: #76d7c5;
}

.download-sidebar-header h3 {
    color: #b4f0e5;
}

.download-sidebar-header span {
    color: #8f9f95;
}

.order-page-container {
    max-width: 980px;
}

.orders-hero {
    border: 1px solid var(--divider);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 14px;
    background: linear-gradient(140deg, rgba(255, 239, 210, 0.05), rgba(56, 163, 154, 0.08));
}

.orders-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #ddb77b;
}

.order-page-title {
    font-family: var(--font-display);
    margin: 8px 0 6px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 2rem;
}

.orders-subtitle {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.loading-spinner-wrap {
    text-align: center;
    padding: 20px 0;
}

.orders-list-hidden {
    display: none;
}

.alert-box {
    border-radius: 14px;
    border: 1px solid var(--border-default);
    background: rgba(56, 163, 154, 0.09);
    color: #dce8e7;
}

.order-card {
    border-radius: 14px;
    border: 1px solid var(--border-default);
    background: rgba(25, 22, 17, 0.92);
}

.order-card-header {
    background: rgba(255, 239, 210, 0.03);
}

.site-footer {
    margin-top: 34px;
    background: rgba(16, 15, 11, 0.85);
    border-top: 1px solid var(--divider);
}

.footer-brand-name {
    font-family: var(--font-display);
    letter-spacing: 1px;
}

@media (max-width: 1200px) {
    .catalog-editorial-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .product-card--editorial,
    .product-card--editorial:nth-child(7n + 2),
    .product-card--editorial:nth-child(7n + 5),
    .product-card--editorial.product-card--wide {
        grid-column: span 4;
    }

    .detail-layout--editorial {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 900px) {
    .hero--editorial {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .hero-feature-card {
        min-height: 280px;
    }

    .catalog-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card--editorial,
    .product-card--editorial:nth-child(7n + 2),
    .product-card--editorial:nth-child(7n + 5),
    .product-card--editorial.product-card--wide {
        grid-column: span 1;
    }

    .product-hero-grid,
    .detail-layout--editorial {
        grid-template-columns: 1fr;
    }

    .info-column--editorial .sticky-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .editorial-atmosphere {
        display: none;
    }

    .page-container--list,
    .page-container--product {
        margin-top: calc(54px + env(safe-area-inset-top, 0px));
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero--editorial h1 {
        font-size: 1.9rem;
    }

    .hero-feature-body h2 {
        font-size: 1.4rem;
    }

    .toolbar--editorial {
        border-radius: 12px;
        padding: 10px;
    }

    .product-hero-scene,
    .orders-hero,
    .media-column {
        border-radius: 14px;
        padding: 12px;
    }

    .product-hero-title {
        font-size: 1.75rem;
    }
}

/* ============================================================
   V9.1 Quiet Atelier Theme (Refine)
   Goal: cleaner, elegant, less noisy, aligned with autoworkflow/main-site.
   ============================================================ */

:root {
    --font-main: 'Space Grotesk', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', 'Noto Sans SC', serif;

    --bg-base: #f5f3ec;
    --bg-sunken: #f8f6f0;
    --bg-surface: #ffffff;
    --bg-elevated: #fcfbf8;
    --bg-floating: #ffffff;
    --bg-header: rgba(245, 243, 236, 0.82);

    --text-main: #161616;
    --text-primary: #161616;
    --text-secondary: rgba(22, 22, 22, 0.64);
    --text-tertiary: rgba(22, 22, 22, 0.42);
    --text-disabled: rgba(22, 22, 22, 0.25);

    --color-brand: #5a4e8a;
    --color-brand-light: #6c5fa1;
    --color-brand-dark: #3d3270;
    --color-brand-glow: rgba(90, 78, 138, 0.18);
    --gradient-brand: linear-gradient(135deg, #5a4e8a, #3d3270);

    --color-gold: #b38a57;
    --color-gold-muted: rgba(179, 138, 87, 0.12);

    --border-subtle: rgba(22, 22, 22, 0.04);
    --border-default: rgba(22, 22, 22, 0.09);
    --border-strong: rgba(22, 22, 22, 0.16);
    --divider: rgba(22, 22, 22, 0.08);
}

body.store-editorial {
    background: #f5f3ec;
    color: #161616;
}

.editorial-atmosphere {
    display: none;
}

.editorial-grain {
    opacity: 0.06;
}

.editorial-orb--amber,
.editorial-orb--indigo {
    filter: blur(60px);
    opacity: 0.24;
}

.nav {
    background: rgba(245, 243, 236, 0.84);
    border-bottom: 1px solid rgba(22, 22, 22, 0.07);
}

.nav-brand-text,
.nav-brand-tag,
.nav-action-btn,
.nav-search-input,
.nav-search-icon {
    color: #161616;
}

.nav-search {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(22, 22, 22, 0.1);
    border-radius: 999px;
}

.nav-search-input::placeholder {
    color: rgba(22, 22, 22, 0.38);
}

.nav-action-btn:hover {
    background: rgba(22, 22, 22, 0.06);
}

.page-container--list,
.page-container--product {
    max-width: 1320px;
}

.hero--editorial {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(22, 22, 22, 0.08);
    box-shadow: 0 10px 32px rgba(22, 22, 22, 0.05);
}

.hero-metrics {
    display: none;
}

.hero-kicker,
.hero-feature-eyebrow,
.orders-kicker,
.product-kicker {
    color: rgba(22, 22, 22, 0.42);
}

.hero--editorial h1,
.product-hero-title,
.product-title-modern,
.order-page-title {
    color: #161616;
    -webkit-text-fill-color: #161616;
    text-shadow: none;
}

.hero--editorial p,
.hero-feature-body p,
.orders-subtitle,
.product-hero-summary,
.description-content,
.card-summary {
    color: rgba(22, 22, 22, 0.62);
}

.hero-metric-item,
.hero-feature-card,
.toolbar--editorial,
.orders-hero,
.product-hero-scene,
.media-column,
.description-box,
.info-column--editorial .sticky-sidebar,
.order-card,
.alert-box {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(22, 22, 22, 0.08);
    box-shadow: none;
}

.hero-metric-value,
.hero-feature-price,
.current-price,
.product-hero-meta span i,
.card-read-more,
.page-btn.active {
    color: #3d3270;
}

.hero-feature-price,
.current-price {
    -webkit-text-fill-color: #3d3270;
    background: none;
    text-shadow: none;
}

.aw-promo-banner--editorial,
.aw-product-promo--editorial {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(22, 22, 22, 0.1);
}

.aw-promo-title,
.aw-product-promo-title {
    color: #161616;
}

.aw-promo-desc,
.aw-product-promo-desc {
    color: rgba(22, 22, 22, 0.52);
}

.filter-btn,
.sort-select,
.search-active-tag,
.page-btn {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(22, 22, 22, 0.12);
    color: rgba(22, 22, 22, 0.66);
}

.filter-btn.active,
.filter-btn:hover,
.page-btn.active {
    background: rgba(90, 78, 138, 0.11);
    border-color: rgba(90, 78, 138, 0.32);
    color: #3d3270;
}

.catalog-editorial-grid {
    gap: 20px;
}

.product-card--editorial {
    grid-column: span 4;
    background: #ffffff;
    border: 1px solid rgba(22, 22, 22, 0.08);
    box-shadow: 0 6px 22px rgba(22, 22, 22, 0.04);
}

.product-card--editorial::before {
    background: radial-gradient(360px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(90, 78, 138, 0.12), transparent 55%);
}

.product-card--editorial:nth-child(7n + 2),
.product-card--editorial.product-card--wide {
    grid-column: span 4;
}

.product-card--editorial:nth-child(7n + 5) {
    grid-column: span 4;
}

.card-editorial-overlay {
    display: none;
}

.product-card--editorial .product-title {
    color: #161616;
}

.card-editorial-index,
.card-price-badge {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(22, 22, 22, 0.16);
    color: #161616;
}

.card-category-badge {
    background: rgba(22, 22, 22, 0.72);
    color: #f5f3ec;
}

.card-fav-btn {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(22, 22, 22, 0.2);
    color: rgba(22, 22, 22, 0.55);
}

.card-fav-btn.favorited,
.card-fav-btn:hover {
    color: #3d3270;
    border-color: rgba(90, 78, 138, 0.36);
}

.main-media-frame,
.media-thumbnails,
.price-section,
.download-sidebar-box,
.qr-area,
.trust-signals {
    background: #ffffff;
    border: 1px solid rgba(22, 22, 22, 0.1);
    box-shadow: none;
}

.detail-tab {
    color: rgba(22, 22, 22, 0.52);
}

.detail-tab.active {
    color: #3d3270;
    border-bottom-color: #3d3270;
}

.meta-pill,
.tag-pill,
.category-pill {
    background: rgba(22, 22, 22, 0.04);
    border: 1px solid rgba(22, 22, 22, 0.1);
    color: rgba(22, 22, 22, 0.62);
    box-shadow: none;
}

.category-pill {
    color: #3d3270;
    border-color: rgba(90, 78, 138, 0.25);
    background: rgba(90, 78, 138, 0.08);
}

.btn-purchase-modern {
    background: #161616;
    color: #f5f3ec;
    box-shadow: none;
    letter-spacing: 0.04em;
}

.btn-purchase-modern:hover {
    background: #2c2c2c;
}

.btn-purchase-green {
    background: #3d3270;
    color: #f5f3ec;
}

.ssl-hint,
.qr-area-footer,
.footer-tech,
.footer-copyright {
    color: rgba(22, 22, 22, 0.44);
}

.site-footer {
    background: transparent;
    border-top: 1px solid rgba(22, 22, 22, 0.09);
}

.footer-link,
.footer-brand-desc {
    color: rgba(22, 22, 22, 0.6);
}

.footer-link:hover {
    color: #161616;
}

.floating-wechat-btn {
    background: #161616;
    box-shadow: 0 6px 18px rgba(22, 22, 22, 0.2);
}

.back-to-top {
    background: #161616;
    color: #f5f3ec;
    border: none;
}

.modal-body,
.fav-panel-body,
.extract-modal-body,
.guest-modal-body,
.modal-admin-body,
.modal-qr-body {
    background: #fcfbf8;
    color: #161616;
    border: 1px solid rgba(22, 22, 22, 0.1);
}

@media (max-width: 1200px) {
    .catalog-editorial-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .product-card--editorial,
    .product-card--editorial:nth-child(7n + 2),
    .product-card--editorial:nth-child(7n + 5),
    .product-card--editorial.product-card--wide {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .catalog-editorial-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card--editorial,
    .product-card--editorial:nth-child(7n + 2),
    .product-card--editorial:nth-child(7n + 5),
    .product-card--editorial.product-card--wide {
        grid-column: span 1;
    }

    .product-card--editorial .card-image,
    .product-card--editorial.product-card--wide .card-image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .catalog-editorial-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        background: rgba(245, 243, 236, 0.94);
    }

    .nav--search-open .nav-search {
        background: rgba(245, 243, 236, 0.98);
    }
}

/* ============================================================
   V9.2 Final Visual Direction
   Elegant / calm / gallery-like, aligned with cghunter + autoworkflow.
   ============================================================ */

body.store-editorial {
    --store-bg: #f5f3ec;
    --store-paper: #fcfbf8;
    --store-ink: #161616;
    --store-muted: rgba(22, 22, 22, 0.58);
    --store-soft: rgba(22, 22, 22, 0.38);
    --store-line: rgba(22, 22, 22, 0.1);
    --store-accent: #5a4e8a;
    --store-accent-strong: #3d3270;
    --store-radius-lg: 18px;
    --store-radius-md: 12px;
    --store-shadow: 0 10px 28px rgba(22, 22, 22, 0.05);

    background: var(--store-bg);
    color: var(--store-ink);
}

body.store-editorial .editorial-atmosphere {
    display: none;
}

body.store-editorial .page-container--list,
body.store-editorial .page-container--product {
    max-width: 1280px;
}

body.store-editorial .nav {
    background: rgba(245, 243, 236, 0.88);
    border-bottom: 1px solid rgba(22, 22, 22, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.store-editorial .nav-user-dropdown {
    z-index: 1100;
}

body.store-editorial .nav-brand-text,
body.store-editorial .nav-brand-tag,
body.store-editorial .nav-action-btn,
body.store-editorial .nav-search-input,
body.store-editorial .nav-search-icon,
body.store-editorial .nav-search-clear {
    color: var(--store-ink);
}

body.store-editorial .nav-brand-tag {
    background: rgba(22, 22, 22, 0.04);
    border-color: rgba(22, 22, 22, 0.14);
}

body.store-editorial .nav-search {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(22, 22, 22, 0.12);
}

body.store-editorial .nav-search-input::placeholder {
    color: rgba(22, 22, 22, 0.36);
}

body.store-editorial .hero--editorial {
    background: var(--store-paper);
    border: 1px solid var(--store-line);
    border-radius: 22px;
    box-shadow: var(--store-shadow);
    gap: 18px;
}

body.store-editorial .hero-kicker,
body.store-editorial .hero-feature-eyebrow,
body.store-editorial .orders-kicker,
body.store-editorial .product-kicker {
    color: var(--store-soft);
    letter-spacing: 0.18em;
}

body.store-editorial .hero--editorial h1,
body.store-editorial .product-hero-title,
body.store-editorial .order-page-title,
body.store-editorial .product-title-modern {
    color: var(--store-ink);
    -webkit-text-fill-color: var(--store-ink);
    text-shadow: none;
}

body.store-editorial .hero--editorial p,
body.store-editorial .hero-feature-body p,
body.store-editorial .orders-subtitle,
body.store-editorial .product-hero-summary,
body.store-editorial .description-content {
    color: var(--store-muted);
}

body.store-editorial .hero-metrics {
    display: none;
}

body.store-editorial .hero-feature-card {
    border: 1px solid var(--store-line);
    background: #fff;
    border-radius: var(--store-radius-lg);
    box-shadow: none;
    grid-template-rows: 220px auto;
    max-height: 430px;
    align-self: start;
    transform: translateY(var(--parallax-y));
}

body.store-editorial .hero-feature-card:hover {
    transform: translateY(calc(var(--parallax-y) - 2px));
    border-color: rgba(22, 22, 22, 0.16);
    box-shadow: 0 12px 26px rgba(22, 22, 22, 0.06);
}

body.store-editorial .hero-feature-media {
    height: 220px;
}

body.store-editorial .hero-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

body.store-editorial .hero-feature-price {
    color: var(--store-accent-strong);
    background: none;
    -webkit-text-fill-color: var(--store-accent-strong);
}

body.store-editorial .toolbar--editorial,
body.store-editorial .orders-hero,
body.store-editorial .product-hero-scene,
body.store-editorial .media-column,
body.store-editorial .description-box,
body.store-editorial .info-column--editorial .sticky-sidebar,
body.store-editorial .order-card,
body.store-editorial .alert-box,
body.store-editorial .aw-promo-banner--editorial,
body.store-editorial .aw-product-promo--editorial {
    background: var(--store-paper);
    border: 1px solid var(--store-line);
    box-shadow: none;
}

body.store-editorial .toolbar--editorial {
    border-radius: var(--store-radius-md);
}

body.store-editorial .filter-btn,
body.store-editorial .sort-select,
body.store-editorial .search-active-tag,
body.store-editorial .page-btn {
    background: #fff;
    border: 1px solid var(--store-line);
    color: var(--store-muted);
}

body.store-editorial .filter-btn.active,
body.store-editorial .filter-btn:hover,
body.store-editorial .page-btn.active {
    background: rgba(90, 78, 138, 0.09);
    border-color: rgba(90, 78, 138, 0.34);
    color: var(--store-accent-strong);
}

body.store-editorial .results-count,
body.store-editorial .sort-label,
body.store-editorial .card-summary,
body.store-editorial .aw-promo-desc,
body.store-editorial .aw-product-promo-desc,
body.store-editorial .ssl-hint,
body.store-editorial .qr-area-footer,
body.store-editorial .footer-tech,
body.store-editorial .footer-copyright {
    color: var(--store-soft);
}

body.store-editorial .product-hero-scene {
    background: var(--store-paper);
    border-color: var(--store-line);
}

body.store-editorial .product-hero-copy {
    background: var(--store-paper);
    border-color: var(--store-line);
}

body.store-editorial .product-kicker {
    color: var(--store-accent);
}

body.store-editorial .product-hero-title {
    color: var(--store-ink);
}

body.store-editorial .product-hero-summary {
    color: var(--store-muted);
}

body.store-editorial .product-hero-meta span {
    background: #fff;
    border-color: var(--store-line);
    color: var(--store-muted);
}

body.store-editorial .guest-modal-body h3 {
    color: var(--store-ink);
}

body.store-editorial .guest-modal-body p {
    color: var(--store-muted);
}

body.store-editorial .catalog-editorial-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

body.store-editorial .product-card--editorial,
body.store-editorial .product-card--editorial:nth-child(7n + 2),
body.store-editorial .product-card--editorial:nth-child(7n + 5),
body.store-editorial .product-card--editorial.product-card--wide {
    grid-column: span 4;
    background: #fff;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius-lg);
    box-shadow: 0 6px 20px rgba(22, 22, 22, 0.04);
}

body.store-editorial .product-card--editorial::before,
body.store-editorial .card-editorial-overlay {
    display: none;
}

body.store-editorial .product-card--editorial .card-image,
body.store-editorial .product-card--editorial.product-card--wide .card-image {
    aspect-ratio: 16 / 10;
}

body.store-editorial .product-card--editorial .card-image img,
body.store-editorial .product-card--editorial .card-video-preview {
    transition: transform 0.42s ease;
}

body.store-editorial .product-card--editorial:hover .card-image img,
body.store-editorial .product-card--editorial:hover .card-video-preview {
    transform: scale(1.03);
}

body.store-editorial .product-card--editorial .product-title {
    font-family: var(--font-display);
    color: var(--store-ink);
    font-size: 1.18rem;
}

body.store-editorial .card-category-badge {
    background: rgba(22, 22, 22, 0.76);
    color: #f5f3ec;
}

body.store-editorial .card-price-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--store-ink);
    border: 1px solid rgba(22, 22, 22, 0.18);
}

body.store-editorial .card-read-more,
body.store-editorial .aw-promo-title,
body.store-editorial .aw-product-promo-title,
body.store-editorial .order-product-title,
body.store-editorial .footer-link:hover {
    color: var(--store-accent-strong);
}

body.store-editorial .card-fav-btn {
    opacity: 1;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 22, 22, 0.16);
    color: rgba(22, 22, 22, 0.55);
}

body.store-editorial .card-fav-btn.favorited,
body.store-editorial .card-fav-btn:hover {
    color: var(--store-accent-strong);
    border-color: rgba(90, 78, 138, 0.35);
}

body.store-editorial .main-media-frame,
body.store-editorial .media-thumbnails,
body.store-editorial .price-section,
body.store-editorial .download-sidebar-box,
body.store-editorial .qr-area,
body.store-editorial .trust-signals,
body.store-editorial .meta-pill,
body.store-editorial .tag-pill,
body.store-editorial .category-pill {
    background: #fff;
    border: 1px solid var(--store-line);
    box-shadow: none;
    color: var(--store-muted);
}

body.store-editorial .category-pill,
body.store-editorial .detail-tab.active,
body.store-editorial .meta-pill i,
body.store-editorial .current-price,
body.store-editorial .current-price small {
    color: var(--store-accent-strong);
    -webkit-text-fill-color: var(--store-accent-strong);
}

body.store-editorial .price-label {
    color: var(--store-soft);
}

body.store-editorial .btn-purchase-modern {
    background: var(--store-ink);
    color: #f5f3ec;
    box-shadow: none;
    letter-spacing: 0.04em;
}

body.store-editorial .btn-purchase-modern:hover {
    background: #2a2a2a;
}

body.store-editorial .btn-purchase-green {
    background: var(--store-accent-strong);
    color: #f5f3ec;
}

body.store-editorial .site-footer {
    background: transparent;
    border-top: 1px solid var(--store-line);
}

body.store-editorial .footer-link,
body.store-editorial .footer-brand-desc,
body.store-editorial .order-card-header,
body.store-editorial .order-product-meta,
body.store-editorial .empty-orders p {
    color: var(--store-muted);
}

body.store-editorial .floating-wechat-btn,
body.store-editorial .back-to-top {
    background: var(--store-ink);
    color: #f5f3ec;
    border: none;
}

body.store-editorial .modal-body,
body.store-editorial .fav-panel-body,
body.store-editorial .extract-modal-body,
body.store-editorial .guest-modal-body,
body.store-editorial .modal-admin-body,
body.store-editorial .modal-qr-body {
    background: #fcfbf8;
    color: var(--store-ink);
    border: 1px solid var(--store-line);
}

body.store-editorial .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 1200px) {
    body.store-editorial .catalog-editorial-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    body.store-editorial .product-card--editorial,
    body.store-editorial .product-card--editorial:nth-child(7n + 2),
    body.store-editorial .product-card--editorial:nth-child(7n + 5),
    body.store-editorial .product-card--editorial.product-card--wide {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    body.store-editorial .hero--editorial {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    body.store-editorial .hero-feature-card {
        display: none;
    }

    body.store-editorial .catalog-editorial-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.store-editorial .product-card--editorial,
    body.store-editorial .product-card--editorial:nth-child(7n + 2),
    body.store-editorial .product-card--editorial:nth-child(7n + 5),
    body.store-editorial .product-card--editorial.product-card--wide {
        grid-column: span 1;
    }

    body.store-editorial .detail-layout--editorial,
    body.store-editorial .product-hero-grid {
        grid-template-columns: 1fr;
    }

    body.store-editorial .info-column--editorial .sticky-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    body.store-editorial .catalog-editorial-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.store-editorial .product-card--editorial,
    body.store-editorial .product-card--editorial:nth-child(7n + 2),
    body.store-editorial .product-card--editorial:nth-child(7n + 5),
    body.store-editorial .product-card--editorial.product-card--wide {
        grid-column: span 1;
    }

    body.store-editorial .product-card--editorial .card-image,
    body.store-editorial .product-card--editorial.product-card--wide .card-image {
        aspect-ratio: 16 / 9;
    }

    body.store-editorial .nav {
        background: rgba(245, 243, 236, 0.95);
    }

    body.store-editorial .page-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}