/* === ETALLIC GROUP - RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0B0E1A;
    color: #F1F5F9;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg: #0B0E1A;
    --bg-elevated: #111827;
    --bg-card: #161F32;
    --border: #1E293B;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --success: #10B981;
    --danger: #EF4444;
}

/* === CONTAINER === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* === NAVBAR === */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 14, 26, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    margin-right: auto;
}

.nav-logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.nav-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-shrink: 0;
}

.nav-link {
    padding: 0.5rem 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(59, 130, 246, 0.08);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-cart .nav-link {
    padding: 0.5rem 0.625rem;
}

.nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: #000;
    font-size: 0.625rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-user {
    position: relative;
    margin-left: 0.25rem;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color 0.15s;
    object-fit: cover;
}

.nav-avatar:hover {
    border-color: var(--primary);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 200;
}

.nav-user:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dd-name {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dd-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s;
    font-weight: 500;
}

.nav-dd-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.nav-toggle:hover { color: var(--text); }

/* === HERO === */
.hero {
    position: relative;
    padding: 7rem 0 6rem;
    overflow: hidden;
    text-align: center;
}

.hero-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(59,130,246,0.12) 1px, transparent 0);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0,0); }
    100% { transform: translate(40px,40px); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,14,26,0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #F1F5F9 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-accent {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

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

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: #334155;
    color: var(--text);
}

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 0.9375rem; }
.btn-discord { background: #5865F2; color: #fff; border-color: #5865F2; justify-content: center; }
.btn-discord:hover { background: #4752C4; }

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

/* === PRODUCT CARDS === */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.product-img {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-elevated);
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.product-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.6875rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.product-name:hover { color: var(--primary); }

.product-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.product-price { font-size: 1.125rem; font-weight: 800; color: var(--accent); }
.product-old { font-size: 0.8125rem; color: var(--text-dim); text-decoration: line-through; }

/* === GRID === */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === PILLS === */
.pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pill {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pill:hover { border-color: #334155; color: var(--text); }
.pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === REVIEW === */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.review-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* === STAR INPUT === */
.star-input {
    display: flex;
    gap: 0.25rem;
}

.star-input svg {
    transition: fill 0.15s;
}

.star-input label:hover svg path,
.star-input label:hover ~ label svg path {
    fill: #F59E0B;
}

/* === QTY === */
.qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.qty button {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.15s;
}

.qty button:hover { background: rgba(59, 130, 246, 0.1); color: var(--text); }

.qty input {
    width: 48px;
    text-align: center;
    border: none;
    background: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    outline: none;
    font-family: inherit;
}

/* === TAGS === */
.tag {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* === GALLERY THUMBS === */
.gthumb {
    transition: border-color 0.15s;
}

/* === SECTION LABEL === */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* === FOOTER === */
.footer {
    margin-top: auto;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

/* === FLASH === */
.flash {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.flash-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.25); color: #10B981; }
.flash-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.25); color: #EF4444; }
.flash-info { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.25); color: #3B82F6; }

.flash button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.flash button:hover { opacity: 1; }

/* === MAIN === */
main { flex: 1; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.25rem; }
    .hero { padding: 5rem 0 4rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.25rem;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-link { padding: 0.625rem 1rem; width: 100%; }
    .nav-link.active::after { display: none; }
    .nav-cart, .nav-user { margin: 0; }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: auto;
        background: transparent;
        border: none;
        padding: 0 0.5rem;
    }
    .nav-dd-name { display: none; }
    .nav-dd-link { padding: 0.5rem 0.75rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-sub { font-size: 1rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero { padding: 4rem 0 3rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .container { padding: 0 1rem; }
}
