:root {
    --bg-color: #0f172a; 
    --card-bg: #1e293b; 
    --border-color: #334155; 
    --primary: #3b82f6; 
    --primary-hover: #2563eb; 
    --text-dark: #f8fafc; 
    --text-light: #94a3b8; 
    --success: #10b981; 
    --success-light: #34d399;
    --warning: #f59e0b; 
    --danger: #ef4444; 
    --info: #0ea5e9;
    --purple: #a855f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

/* LOADING ANIMATION */
#global-loader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--bg-color); z-index: 9999; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 20px; transition: opacity 0.5s ease, visibility 0.5s ease; }
.spinner { width: 50px; height: 50px; border: 5px solid var(--border-color); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* LAYOUT */
.app-layout { display: flex; flex-direction: column; height: 100vh; width: 100vw; overflow-x: hidden; scroll-behavior: smooth; }

/* HEADER ELEMENTS */
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text-dark); white-space: nowrap; }
.logo span { background: linear-gradient(to right, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header-actions { display: flex; gap: 15px; }

/* BOTOES */
.btn { padding: 10px 16px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25); font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background-color: var(--primary-hover); transform: scale(1.01) translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.btn-primary:active:not(:disabled) { transform: scale(0.98); transition: all 0.15s; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-dark); }
.btn-outline:hover:not(:disabled) { background: #334155; transform: scale(1.01) translateY(-1px); }
.btn-outline:active:not(:disabled) { transform: scale(0.98); transition: all 0.15s; }
.btn-success { background-color: var(--success); color: #fff; }

/* COMPONENTES DE FILTRO */
.filters-section { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.search-input { flex: 2; min-width: 250px; padding: 12px 16px; background: #0f172a; border: 1px solid var(--border-color); color: var(--text-dark); border-radius: 8px; outline: none; font-size: 0.95rem; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--primary); }
.filter-select { flex: 1; min-width: 150px; }
.custom-select { appearance: none; -webkit-appearance: none; width: 100%; padding: 10px 14px; padding-right: 36px; background-color: #0f172a; border: 1px solid var(--border-color); color: var(--text-dark); border-radius: 8px; outline: none; font-size: 0.85rem; font-weight: 500; cursor: pointer; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; transition: 0.2s; }
.custom-select:focus { border-color: var(--primary); }
.custom-select option { background-color: var(--card-bg); color: var(--text-dark); }

.advanced-filters { background: rgba(0,0,0,0.2); padding: 20px; border-radius: 12px; margin-bottom: 30px; border: 1px solid var(--border-color); display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }

/* PRIORITY SECTION */
.priority-section { background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 12px; padding: 25px; margin-bottom: 40px; }
.priority-title { color: var(--success-light); font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* TAGS */
.tag { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px;}
.tag-ps4 { background: rgba(37, 99, 235, 0.95); color: #ffffff; border: 1px solid rgba(147, 197, 253, 0.6); box-shadow: 0 2px 6px rgba(0,0,0,0.5); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.tag-ps5 { background: rgba(255, 255, 255, 0.95); color: #0f172a; border: 1px solid #ffffff; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.tag-ps4ps5 { background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(147, 51, 234, 0.95)); color: #ffffff; border: 1px solid rgba(216, 180, 254, 0.6); box-shadow: 0 2px 6px rgba(0,0,0,0.5); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.tag-pre-venda { background: linear-gradient(45deg, #f59e0b, #d97706); color: #fff; border: none; }
.tag-promocao { background: linear-gradient(45deg, #ef4444, #b91c1c); color: #fff; border: none; }
.tag-lancamento { background: linear-gradient(45deg, #0ea5e9, #2563eb); color: #fff; border: none; }

/* QUICK CHIPS (Filtros Rápidos) */
.quick-chips { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 18px; border-radius: 20px; color: var(--text-light); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
.chip:hover, .chip.active { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; color: #fff; transform: translateY(-2px); }

/* CATALOGO CARDS */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.catalog-card-wrapper { position: relative; border-radius: 20px; overflow: hidden; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin-bottom: 5px; }
.catalog-card-aura { position: absolute; top: -20px; left: -20px; right: -20px; bottom: -20px; background-size: cover; background-position: center; filter: blur(40px) saturate(200%) brightness(0.8); opacity: 0.6; z-index: 0; transition: opacity 0.5s; }
.catalog-card-wrapper:hover .catalog-card-aura { filter: blur(30px); opacity: 1; }

/* WISHLIST BUTTON */
.wishlist-btn { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; transition: 0.2s; border: 1px solid rgba(255,255,255,0.1); z-index: 5; }
.wishlist-btn:hover { transform: scale(1.1); background: rgba(0,0,0,0.8); }

/* SCARCITY TIMER */
.card-timer { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; z-index: 5; display: flex; align-items: center; gap: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.rec-card .card-timer { font-size: 0.65rem; padding: 4px 8px; }

/* SKELETON LOADING */
.skeleton-card { background: rgba(15,23,42,0.5); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 0 0 15px 0; border: 1px solid rgba(255,255,255,0.05); }
.skeleton-img { width: 100%; aspect-ratio: 1/1; background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-content { padding: 0 15px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 14px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.catalog-card { background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; position: relative; z-index: 2; height: 100%; }
.catalog-card-wrapper:hover { transform: translateY(-3px); z-index: 5; }
.catalog-card-wrapper:hover .catalog-card-aura { opacity: 0.85; filter: blur(35px) saturate(250%) brightness(1); }
.catalog-card-wrapper:hover .catalog-card { border-color: rgba(255,255,255,0.3); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.catalog-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background-color: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.1); }
.catalog-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.catalog-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
.catalog-title { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; text-align: center; width: 100%; display: block; }
.catalog-prices { background: rgba(15, 23, 42, 0.5); padding: 12px; border-radius: 12px; margin-bottom: 15px; flex: 1; border: 1px solid rgba(255,255,255,0.05); }
.price-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.price-row:last-child { margin-bottom: 0; }
.price-label { color: var(--text-light); }
.price-val { font-weight: 600; color: var(--success-light); }

.card-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.card-actions-row { display: flex; gap: 10px; }
.card-actions-row .btn { flex: 1; }

/* MODAIS E FORMS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(10px); display: none; justify-content: center; align-items: center; z-index: 1000; overflow-y: auto; padding: 20px; }
.modal { background: rgba(15, 23, 42, 0.65); padding: 30px; border-radius: 20px; width: 100%; max-width: 550px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.15); border: 1px solid rgba(255, 255, 255, 0.15); margin: auto; position: relative; backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25); }
.modal-overlay[style*="display: flex"] .modal { transform: scale(1); }
.modal h2 { margin-bottom: 8px; font-size: 1.25rem; color: var(--text-dark); }
.modal-subtitle { font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; }
.close-modal { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.05); border: none; color: var(--text-light); width: 32px; height: 32px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25); z-index: 10; }
.close-modal:hover { color: var(--danger); background: rgba(239, 68, 68, 0.1); transform: scale(1.05) rotate(90deg); }
.close-modal:active { transform: scale(0.95); transition: all 0.15s; }

.details-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.details-item { display: flex; justify-content: space-between; padding: 10px; background: rgba(0,0,0,0.1); border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; align-items: center; }
.details-item span:first-child { color: var(--text-light); font-weight: 500; }
.details-item span:last-child { color: var(--text-dark); font-weight: 600; text-align: right; word-break: break-all; margin-left: 10px; display:flex; align-items:center; justify-content: flex-end;}
.details-item.full { flex-direction: column; align-items: flex-start; gap: 8px; }
.details-item.full span:last-child { text-align: left; margin-left: 0; font-weight: 400; white-space: pre-wrap; width: 100%; justify-content: flex-start; display:block;}
.details-divider { height: 1px; background: var(--border-color); margin: 5px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-light); }
.req-mark { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; background: #0f172a; border: 1px solid var(--border-color); color: var(--text-dark); border-radius: 8px; outline: none; font-size: 0.95rem; transition: 0.2s;}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }

.checkbox-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.custom-radio-input { display: none; }
.custom-radio-label { 
    display: flex; align-items: center; justify-content: center; gap: 8px; 
    cursor: pointer; font-size: 0.75rem; color: var(--text-light); font-weight: 600;
    background: rgba(0,0,0,0.2); border: 1px solid var(--border-color);
    padding: 8px 12px; border-radius: 8px; transition: all 0.2s; flex: 1; user-select: none; text-align: center;
}
.custom-radio-label:hover { border-color: var(--text-dark); color: var(--text-dark); background: rgba(255,255,255,0.05); }
.custom-radio-input:checked + .custom-radio-label { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); border-color: transparent; background: var(--primary); color: #fff;}

.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

.minimal-footer { text-align: center; padding: 30px 20px; color: var(--text-light); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 40px; }
.minimal-footer strong { color: var(--text-dark); }

/* TOASTS */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 12px 20px; border-radius: 8px; color: white; font-size: 0.9rem; font-weight: 500; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transform: translateX(120%); transition: transform 0.3s ease-out; display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateX(0); }
.toast-success { background-color: var(--success); }
.toast-error { background-color: var(--danger); }
.toast-warning { background-color: var(--warning); color: #000; }
.toast-info { background-color: var(--info); }

/* BACK TO TOP */
#btn-back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; border-radius: 50%; background-color: var(--primary); color: #fff; border: none; font-size: 1.2rem; font-weight: bold; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.4); z-index: 900; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
#btn-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#btn-back-to-top:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }

/* RECOMMENDED SLIDER */
.recommended-section { margin-bottom: 40px; }
.recommended-title { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.recommended-slider-wrapper { width: 100%; position: relative; border-radius: 16px; margin-top: -15px; }
.recommended-slider { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 20px 10px; scroll-snap-type: x mandatory; user-select: none; }
.recommended-slider::-webkit-scrollbar { display: none; }
.rec-card { scroll-snap-align: start; min-width: 250px; max-width: 250px; cursor: pointer; position: relative; }
.rec-cover { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.1); }
.rec-img-container { position: relative; width: 100%; }
.rec-info { padding: 15px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rec-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; width: 100%; display: block; }
.rec-price { font-size: 0.95rem; font-weight: 600; color: var(--success-light); text-align: center; width: 100%; }
.rec-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 5px;}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* TOP BANNER */
.top-banner { background: #242424; color: white; text-align: center; padding: 6px 15px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; }

/* FAKE NOTIFICATIONS */
#fake-notification-container { position: fixed; bottom: 20px; left: 20px; z-index: 9998; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.fake-notify { background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); transform: translateX(-120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25); max-width: 320px; }
.fake-notify.show { transform: translateX(0); }
.fake-notify img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.fake-notify-info { display: flex; flex-direction: column; gap: 4px; }
.fake-notify-title { font-size: 0.85rem; color: var(--text-dark); font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fake-notify-user { font-size: 0.75rem; color: var(--text-light); }
.fake-notify-time { font-size: 0.7rem; color: var(--success-light); font-weight: 600; }

/* ELEGANT TOOLTIPS */
[data-tooltip] { position: relative; }
[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 100;
    left: 50%;
    transform: translate(-50%, 10px);
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    line-height: 1.4;
}
[data-tooltip]::before {
    content: '';
    bottom: 100%;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}
[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mobile-header-actions { display: none !important; }

/* RESPONSIVIDADE & MOBILE UX */
@media (max-width: 768px) {
    .store-header {
        justify-content: center !important;
    }
    .desktop-header-actions { display: none !important; }
    .mobile-header-actions { 
        display: flex !important; 
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 5px !important;
    }
    .mobile-header-actions .btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        white-space: nowrap;
    }

    /* 2. Filtros Rápidos & Busca */
    .filters-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-input {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    .filter-select {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }

    .advanced-filters .btn {
        width: 100% !important;
        flex: none !important;
    }
    
    .quick-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 5px;
    }
    
    .quick-chips::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .chip {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .my-order-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-action-btn {
        width: 100%;
        text-align: center;
    }
    
    .order-action-btn .btn {
        width: 100%;
        justify-content: center;
    }
}

/* My Orders Base Styles */
.my-order-card {
    background: rgba(15, 23, 42, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 12px; 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 15px; 
    cursor: pointer; 
    transition: transform 0.2s, border-color 0.2s;
}
.my-order-card:hover {
    border-color: var(--primary);
}
.order-action-btn {
    text-align: right; 
    flex-shrink: 0;
}

/* Header Buttons Pills */
.header-actions .btn {
    border-radius: 50px !important;
}
