/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Future Glass Theme */
    --primary-bg: #0f2027;
    --secondary-bg: rgba(15, 32, 39, 0.97);
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-purple: #1a2980;
    --accent-pink: #26d0ce;
    --accent-blue: #4facfe;
    --text-primary: #f0f4f8;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.09);

    /* Gradients */
    --gradient-primary: linear-gradient(160deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --gradient-accent: linear-gradient(to right, #26d0ce, #1a2980);
    --gradient-success: linear-gradient(to right, #00b09b, #96c93d);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.09);
    --backdrop-blur: blur(14px);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(38, 208, 206, 0.28);

    /* Typography */
    --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Be Vietnam Pro', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    font-size: 15px;
    background: var(--gradient-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 32, 39, 0.8);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(38, 208, 206, 0.4));
}

.logo-image:hover { transform: scale(1.05); }

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn, a.nav-btn {
    padding: 0.55rem 1.1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.845rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-btn:hover {
    color: var(--text-primary);
    border-color: rgba(38, 208, 206, 0.45);
    background: rgba(38, 208, 206, 0.08);
}

.nav-btn.active {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(38, 208, 206, 0.25);
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-icon:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-pink);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 6rem 0 4rem;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(38, 208, 206, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: rgba(38, 208, 206, 0.1);
    border: 1px solid rgba(38, 208, 206, 0.3);
    color: var(--accent-pink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #26d0ce 60%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 0.875rem 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-glow);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(38, 208, 206, 0.5);
}

.btn-hero-secondary {
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.btn-hero-secondary:hover {
    border-color: var(--accent-pink);
    background: rgba(38, 208, 206, 0.1);
    transform: translateY(-3px);
}

.hero-socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.hero-social-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    border: var(--glass-border);
    background: rgba(255,255,255,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-social-link span {
    font-weight: 700;
}

.hero-social-link small {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.hero-social-link:hover {
    transform: translateY(-4px);
    border-color: rgba(38, 208, 206, 0.45);
    box-shadow: var(--shadow-glow);
}

.hero-social-link.is-disabled {
    opacity: 0.7;
}

.hero-social-link.is-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.hero-chip:hover {
    border-color: rgba(38, 208, 206, 0.45);
    background: rgba(38, 208, 206, 0.12);
    transform: translateY(-2px);
}

.hero-mascot-wrap {
    position: relative;
    z-index: 1;
}

.hero-mascot-card {
    position: relative;
    min-height: 520px;
    border-radius: 32px;
    border: var(--glass-border);
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.22), transparent 58%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.hero-mascot-glow {
    position: absolute;
    inset: auto 8% 6%;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(38,208,206,0.22), transparent 70%);
    filter: blur(20px);
}

.hero-mascot-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 560px;
    object-fit: contain;
    display: none;
}

.hero-mascot-image.visible {
    display: block;
}

.hero-mascot-placeholder {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    max-width: 320px;
}

.hero-mascot-emoji {
    font-size: 5rem;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.hero-mascot-text {
    font-size: 1.2rem;
    font-weight: 800;
}

.hero-mascot-note {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* =========================================
   COLLECTIONS SECTION (index)
   ========================================= */
.collections-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #26d0ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.collection-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: block;
    color: var(--text-primary);
}

.collection-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.08);
}

.collection-media {
    width: 100%;
    min-height: 84px;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-media.is-image img {
    width: auto;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.22));
}

.collection-media.is-icon span {
    font-size: 3rem;
    line-height: 1;
    display: inline-block;
}

.collection-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.collection-desc { font-size: 0.9rem; color: var(--text-secondary); }

.homepage-card-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.homepage-card-editor-item {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 18, 26, 0.26);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.homepage-card-editor-item h4 {
    margin: 0;
    font-size: 1rem;
}

.homepage-card-preview {
    min-height: 86px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.homepage-card-preview img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.homepage-card-preview span {
    font-size: 2.5rem;
    line-height: 1;
}

.homepage-card-clear {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   SERIES SUB-NAVIGATION
   ========================================= */
.series-nav-section {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: var(--glass-border);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.series-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.series-btn {
    padding: 0.6rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.series-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-pink);
    background: rgba(38, 208, 206, 0.1);
    transform: translateY(-2px);
}

.series-btn.active {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* =========================================
   VERSION SUB-FILTER
   ========================================= */
.version-nav-section {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: var(--glass-border);
    animation: slideDown 0.3s ease;
}

.version-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.version-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.version-select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2326d0ce' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.version-select:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.15);
}

.version-select option {
    background: #0f2027;
    color: white;
}

/* =========================================
   SEARCH & FILTER SECTION
   ========================================= */
.search-filter-section {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: var(--glass-border);
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.search-box { width: 100%; }

.search-input {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder { color: var(--text-secondary); }

.quick-filters {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-btn {
    padding: 0.45rem 0.9rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-pink);
    background: rgba(38, 208, 206, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.sort-select {
    padding: 0.45rem 0.9rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.sort-select option { background: #0f2027; color: white; }

.clear-filters-btn {
    padding: 0.45rem 1rem;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #f472b6;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.clear-filters-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f472b6;
    transform: translateY(-2px);
}

.results-counter {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.results-counter strong {
    color: var(--accent-pink);
    font-weight: 700;
}

/* =========================================
   LOADING SKELETON
   ========================================= */
@keyframes shimmerSkeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: var(--glass-border);
}

.skeleton-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmerSkeleton 1.5s infinite;
}

.skeleton-info { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmerSkeleton 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text.title { height: 22px; width: 80%; }
.skeleton-text.description { width: 100%; }
.skeleton-text.price { width: 40%; height: 20px; }

/* =========================================
   PRODUCTS SECTION
   ========================================= */
.products-section { padding: 3rem 0 5rem; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-products .no-icon { font-size: 4rem; margin-bottom: 1rem; }
.no-products h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out both;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(38, 208, 206, 0.4);
}

.product-card.out-of-stock { opacity: 0.65; }

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
    background: rgba(255,255,255,0.03);
}

.product-image-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

.product-card:hover .product-image { transform: scale(1.08); }

.product-info { padding: 1.25rem; }

.product-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.product-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.65rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 5px;
}

.rarity-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.65rem;
    border-radius: 5px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.rarity-ssr {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
    animation: shimmerGold 2.5s infinite;
}

@keyframes shimmerGold {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.55); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.9); }
}

.rarity-sr {
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.rarity-r {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.rarity-ur {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.product-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.series-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.15rem 0;
}

.stock-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    background: rgba(255,255,255,0.06);
    border-radius: 5px;
}

.stock-low { color: #f87171; background: rgba(231, 76, 60, 0.1); }
.stock-out { color: #888; text-decoration: line-through; }

.product-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.add-to-cart-btn {
    padding: 0.6rem 1.25rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(38, 208, 206, 0.25);
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 208, 206, 0.45);
}

.add-to-cart-btn:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =========================================
   CART MODAL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active { display: flex; }

.modal-content {
    background: rgba(15, 32, 39, 0.97);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    border: var(--glass-border);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 { font-size: 1.3rem; font-weight: 700; }

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.4rem;
    border-radius: 6px;
    line-height: 1;
}

.close-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 1rem;
}

.empty-cart .empty-icon { font-size: 3rem; margin-bottom: 1rem; }

.cart-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: var(--glass-border);
    transition: all 0.2s ease;
    position: relative;
}

.cart-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--accent-pink);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--accent-pink);
    font-weight: 700;
    font-size: 1rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    line-height: 1;
}

.qty-btn:hover { background: var(--accent-pink); border-color: var(--accent-pink); color: white; }

.qty-value { font-weight: 600; min-width: 18px; text-align: center; font-size: 0.85rem; }

.remove-item-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.remove-item-btn:hover { background: rgba(244, 63, 94, 0.25); border-color: #f87171; transform: scale(1.1); }

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: var(--glass-border);
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.total-amount {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-actions { display: flex; gap: 0.75rem; flex-direction: column; }

.checkout-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 176, 155, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 155, 0.5);
}

.continue-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover { color: var(--text-primary); border-color: var(--accent-pink); }

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 32, 39, 0.95);
    border: 1px solid var(--accent-pink);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-color: #00b09b; box-shadow: 0 0 20px rgba(0, 176, 155, 0.3); }
.toast.error { border-color: #e74c3c; box-shadow: 0 0 20px rgba(231, 76, 60, 0.3); }

/* =========================================
   LAUNCH NOTE / POLICY
   ========================================= */
.launch-note-section {
    padding: 0 0 2rem;
}

.launch-note-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: rgba(38, 208, 206, 0.08);
    border: 1px solid rgba(38, 208, 206, 0.24);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.launch-note-card strong {
    color: var(--accent-pink);
    white-space: nowrap;
}

.site-marquee-shell {
    padding: 0.85rem 0 0;
    position: relative;
    z-index: 3;
}

.site-marquee-bar {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(38, 208, 206, 0.32);
    background: linear-gradient(135deg, rgba(38, 208, 206, 0.2), rgba(26, 41, 128, 0.24));
    box-shadow: 0 0 24px rgba(38, 208, 206, 0.12);
}

.site-marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    min-width: 100%;
    padding: 0.82rem 0;
    white-space: nowrap;
    animation: site-marquee-loop 28s linear infinite;
    will-change: transform;
}

.site-marquee-text {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f7fbff;
    text-shadow: 0 0 12px rgba(38, 208, 206, 0.22);
}

.site-marquee-text::before {
    content: 'Lưu ý';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 32, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--accent-pink);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@keyframes site-marquee-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

.policy-page {
    padding: 3rem 0 4rem;
}

.policy-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}

.policy-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 22px;
    padding: 1.6rem 1.6rem 1.4rem;
    backdrop-filter: blur(12px);
}

.policy-card h1,
.policy-card h2,
.policy-card h3 {
    margin-bottom: 0.9rem;
}

.policy-card p,
.policy-card li {
    color: var(--text-secondary);
    line-height: 1.75;
}

.policy-card ul {
    padding-left: 1.15rem;
    display: grid;
    gap: 0.45rem;
}

.policy-meta {
    display: grid;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.policy-meta strong {
    color: var(--text-primary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline { color: var(--text-secondary); font-size: 0.9rem; }

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--accent-pink); }

.footer-links-secondary {
    gap: 1.1rem;
}

.footer-meta {
    display: grid;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.footer-meta strong {
    color: var(--text-primary);
}

.footer-bottom {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .header-content { flex-wrap: wrap; gap: 1rem; }
    .nav { order: 3; width: 100%; justify-content: center; }
    .hero-shell { grid-template-columns: 1fr; }
    .hero-copy, .hero-content { text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-socials { grid-template-columns: 1fr; }
    .hero-quick-links { justify-content: center; }
    .hero-mascot-card { min-height: 420px; }
    .launch-note-card { flex-direction: column; }
    .site-marquee-text { font-size: 0.86rem; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0 3rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-mascot-card { min-height: 360px; padding: 1rem; }

    .quick-filters { flex-direction: column; align-items: stretch; gap: 0.875rem; }
    .filter-group { flex-direction: column; align-items: flex-start; }
    .filter-buttons { width: 100%; }
    .filter-btn { flex: 1; text-align: center; }
    .sort-select { width: 100%; }
    .clear-filters-btn { margin-left: 0; width: 100%; text-align: center; }

    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
    .collections-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 1.9rem; }
    .hero-actions { flex-direction: column; }
    .hero-socials { grid-template-columns: 1fr; }
    .hero-mascot-card { min-height: 320px; }
    .products-grid { grid-template-columns: 1fr; }
    .product-card { max-width: 380px; margin: 0 auto; }
    .toast { left: 1rem; right: 1rem; bottom: 1rem; }
}
