:root {
    --font-heading: 'Fredoka', 'Outfit', sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --bg-yellow: #ffcc00;
    --bg-gradient: linear-gradient(135deg, #fff3b0 0%, #ffcc00 45%, #f7b801 100%);
    
    --card-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 10px 30px rgba(180, 130, 0, 0.25);

    --primary-yellow: #d97706;
    --primary-navy: #0f172a;
    --accent-blue: #2563eb;
    --accent-red: #dc2626;
    --accent-green: #059669;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* =================================================== */
/* 🔴 ⚪ PARALLAX HORIZONTAL MOVING POKÉBALLS */
/* =================================================== */

.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Floating background logo image */
.pokeball-float {
    position: absolute;
    background-image: url('../images/pc-crawler-logo-transparent.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 6px 14px rgba(180, 130, 0, 0.3));
}

/* Fast Layer (Moves Right to Left) */
.layer-fast {
    animation: moveRightToLeft 18s linear infinite;
    opacity: 0.85;
}

.p1 { width: 70px; height: 70px; top: 12%; left: 10%; transform: rotate(15deg); }
.p2 { width: 90px; height: 90px; top: 45%; left: 40%; transform: rotate(-20deg); }
.p3 { width: 60px; height: 60px; top: 78%; left: 75%; transform: rotate(45deg); }
.p4 { width: 80px; height: 80px; top: 30%; left: 85%; transform: rotate(-10deg); }

/* Medium Layer (Moves Left to Right) */
.layer-medium {
    animation: moveLeftToRight 28s linear infinite;
    opacity: 0.6;
}

.p5 { width: 110px; height: 110px; top: 22%; left: 25%; transform: rotate(-35deg); }
.p6 { width: 85px; height: 85px; top: 62%; left: 60%; transform: rotate(25deg); }
.p7 { width: 130px; height: 130px; top: 82%; left: 15%; transform: rotate(-15deg); }

/* Slow Layer (Moves Right to Left) */
.layer-slow {
    animation: moveRightToLeft 42s linear infinite;
    opacity: 0.35;
}

.p8 { width: 160px; height: 160px; top: 5%; left: 70%; transform: rotate(50deg); }
.p9 { width: 140px; height: 140px; top: 50%; left: 5%; transform: rotate(-40deg); }
.p10 { width: 180px; height: 180px; top: 70%; left: 80%; transform: rotate(10deg); }

@keyframes moveLeftToRight {
    0% { transform: translateX(-200px) rotate(0deg); }
    100% { transform: translateX(calc(100vw + 200px)) rotate(360deg); }
}

@keyframes moveRightToLeft {
    0% { transform: translateX(calc(100vw + 200px)) rotate(360deg); }
    100% { transform: translateX(-200px) rotate(0deg); }
}

/* =================================================== */
/* 📱 APPLICATION LAYOUT & GLASS PANELS */
/* =================================================== */

.app-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

/* Header: Ultra-Clean Single Row */
.header-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(180, 130, 0, 0.3);
}

/* Single Row Header Metrics (No Badges) */
.header-metrics-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(248, 250, 252, 0.85);
    padding: 10px 22px;
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
}

.header-metric-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.metric-lbl {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.text-green { color: #059669 !important; }
.text-gold { color: #d97706 !important; }
.text-blue { color: #2563eb !important; }

.header-metric-divider {
    width: 1px;
    height: 18px;
    background: rgba(0, 0, 0, 0.12);
}

/* Subscribe Logo Icon Button */
.btn-icon-subscribe {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn-icon-subscribe:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    flex-shrink: 0;
}

.bounce-animation {
    animation: bounce 2.5s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-navy);
    line-height: 1.1;
}

.highlight-yellow {
    color: #d97706;
    background: linear-gradient(135deg, #b45309, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Pulse dot badge */
.status-pulse-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #047857;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1.05rem;
}

/* Hero Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-yellow {
    background: rgba(217, 119, 6, 0.15);
    color: #b45309;
    border: 1.5px solid rgba(217, 119, 6, 0.3);
}

.icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1.5px solid rgba(16, 185, 129, 0.3);
}

.icon-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1.5px solid rgba(245, 158, 11, 0.45);
}

.icon-blue {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
    border: 1.5px solid rgba(37, 99, 235, 0.3);
}

.stat-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.1;
}

.stat-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    margin-bottom: 32px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-box input {
    width: 100%;
    padding: 12px 42px 12px 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: all 0.25s ease;
}

.search-box input:focus {
    border-color: #d97706;
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.3);
    background: white;
}

.btn-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.btn-clear:hover {
    color: var(--text-main);
}

.filter-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    gap: 4px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* Products Section */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-row h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-pill {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 16px;
    color: var(--primary-navy);
    font-weight: 700;
}

.pokeball-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid #0f172a;
    position: relative;
    overflow: hidden;
    animation: spin 1.2s infinite linear;
    background: white;
}

.pokeball-spinner::before {
    content: '';
    display: block;
    height: 50%;
    background: var(--accent-red);
    border-bottom: 4px solid #0f172a;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.95);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(217, 119, 6, 0.5);
    box-shadow: 0 16px 36px rgba(180, 130, 0, 0.35);
}

.card-img-wrap {
    height: 200px;
    background: rgba(248, 250, 252, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--primary-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--accent-blue);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #b45309;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.status-preorder {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
    border: 1.5px solid rgba(245, 158, 11, 0.45);
}

.status-soldout {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
    border: 1.5px solid rgba(239, 68, 68, 0.4);
}

.card-btn-link {
    margin-top: 14px;
    width: 100%;
    background: rgba(37, 99, 235, 0.1);
    border: 1.5px solid rgba(37, 99, 235, 0.3);
    color: #1d4ed8;
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.card-btn-link:hover {
    background: var(--accent-blue);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.icon-large {
    font-size: 3rem;
    color: #b45309;
    margin-bottom: 12px;
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

/* Footer */
.footer-glass {
    margin-top: 40px;
    text-align: center;
    padding: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    border-top: 2px solid var(--glass-border);
}

.footer-glass code {
    color: #b45309;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

.sub-footer {
    font-size: 0.76rem;
    margin-top: 6px;
    opacity: 0.8;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    padding: 32px 28px;
    position: relative;
    background: white;
    border: 2px solid rgba(217, 119, 6, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.15);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 10px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-navy);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
}

.form-group input:focus {
    border-color: #d97706;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.25);
}

.form-options {
    display: flex;
    gap: 12px;
    background: rgba(248, 250, 252, 0.8);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    flex: 1;
}

.radio-option input {
    accent-color: #dc2626;
}

.modal-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.modal-alert.success {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.modal-alert.error {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Animations */
.hidden {
    display: none !important;
}

.pop-animation {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* =================================================== */
/* 📱 MOBILE RESPONSIVE OPTIMIZATION */
/* =================================================== */

@media (max-width: 960px) {
    .header-single-row {
        flex-wrap: wrap;
        padding: 14px 20px;
        gap: 14px;
    }

    .header-metrics-row {
        order: 3;
        width: 100%;
        justify-content: space-around;
        padding: 8px 14px;
    }
}

@media (max-width: 600px) {
    .header-glass {
        padding: 14px 16px;
    }

    .brand-logo {
        gap: 10px;
    }

    .brand-text h1 {
        font-size: 1.2rem;
    }

    .brand-sub {
        font-size: 0.78rem;
    }

    .header-metrics-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
        padding: 10px 14px;
    }

    .header-metric-divider {
        display: none;
    }

    .header-metric-inline {
        justify-content: space-between;
    }

    .metric-lbl {
        font-size: 0.78rem;
    }

    .metric-val {
        font-size: 1rem;
    }

    .btn-icon-subscribe {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .controls-bar {
        padding: 14px;
    }

    .filter-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .tab-btn {
        text-align: center;
        padding: 8px 6px;
        font-size: 0.8rem;
    }
}
