
/* ==================================================
   ERRORMODZ - COMPLETE MAIN STYLESHEET
   Premium ShaFiveM inspired design
   Black / White / Red
   FULL ANIMATED VERSION
================================================== */

:root {
    --em-red: #e32636;
    --em-red-dark: #bd1d2c;
    --em-bg: #080808;
    --em-panel: #101010;
    --em-border: #292929;
    --em-white: #ffffff;
    --em-muted: #929292;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--em-bg);
    color: var(--em-white);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    animation: em-page-enter .7s ease both;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: min(1250px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.muted {
    color: var(--em-muted);
}

/* ================= ANIMATIONS ================= */

@keyframes em-page-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes em-fade-up {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes em-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes em-scale-in {
    from {
        opacity: 0;
        transform: scale(.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes em-hero-glow {
    0%, 100% {
        opacity: .55;
        transform: translateY(-50%) scale(.95);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.08);
    }
}

@keyframes em-grid-move {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 55px 55px;
    }
}

@keyframes em-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(227,38,54,.35);
    }
    50% {
        box-shadow: 0 0 18px rgba(227,38,54,.8);
    }
}

@keyframes em-header-line {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes em-shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes em-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ================= HEADER ================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: rgba(8, 8, 8, .97);
    border-bottom: 1px solid #292929;
    backdrop-filter: blur(15px);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--em-red),
        transparent
    );
    transform-origin: left;
    animation: em-header-line 1.2s ease both;
}

.nav-wrap {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    line-height: 1;
}

.brand-error {
    color: var(--em-red);
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand-modz {
    color: #fff;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 30px;
    font-weight: 900;
}

.brand small {
    margin-top: 6px;
    color: #888;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.site-header .brand img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
    transition: transform .3s ease;
}

.site-header .brand:hover img {
    transform: scale(1.04);
}

/* NAVIGATION */

.site-header .nav-wrap > nav,
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    margin-left: auto;
    margin-right: auto;
}

.site-header .nav-wrap > nav a,
.main-navigation a {
    position: relative;
    padding: 12px 4px;
    color: #aaa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    transition: color .25s ease, transform .25s ease;
}

.site-header .nav-wrap > nav a::after,
.main-navigation a::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: var(--em-red);
    transition: width .25s ease;
}

.site-header .nav-wrap > nav a:hover,
.main-navigation a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.site-header .nav-wrap > nav a:hover::after,
.main-navigation a:hover::after {
    width: calc(100% - 8px);
}

/* CART LINK */

.cart-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 19px;
    flex-shrink: 0;
    color: #fff;
    background: #151515;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.cart-link:hover {
    background: var(--em-red);
    border-color: var(--em-red);
    transform: translateY(-2px);
}

#cart-count {
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    color: #fff;
    background: var(--em-red);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 900;
}

.cart-link:hover #cart-count {
    animation: em-pulse .8s ease infinite;
}

/* ================= BUTTONS ================= */

.button {
    position: relative;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    transition: .25s ease;
}

.button-primary {
    color: #fff;
    background: var(--em-red);
    border-color: var(--em-red);
}

.button-primary::after,
.add-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255,255,255,.2) 50%,
        transparent 75%
    );
    background-size: 200% 100%;
    background-position: -200% 0;
    transition: background-position .65s ease;
    pointer-events: none;
}

.button-primary:hover::after,
.add-button:hover::after {
    background-position: 200% 0;
}

.button-primary:hover {
    background: var(--em-red-dark);
    border-color: var(--em-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227,38,54,.2);
}

.button-ghost {
    color: #fff;
    background: transparent;
    border-color: #393939;
}

.button-ghost:hover {
    background: #171717;
    border-color: var(--em-red);
    transform: translateY(-3px);
}

.button span {
    font-size: 17px;
}

/* ================= EYEBROW ================= */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--em-red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    background: var(--em-red);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--em-red);
    animation: em-pulse 2s ease-in-out infinite;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 45%, rgba(227,38,54,.12), transparent 45%),
        #080808;
    border-bottom: 1px solid #202020;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .15;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 55px 55px;
    animation: em-grid-move 18s linear infinite;
}

.hero-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227,38,54,.10);
    filter: blur(110px);
    border-radius: 50%;
    pointer-events: none;
    animation: em-hero-glow 7s ease-in-out infinite;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 80px;
    animation: em-fade-up .9s ease both;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(48px, 7vw, 86px);
    font-weight: 900;
    line-height: .99;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--em-red);
}

.hero-copy {
    max-width: 520px;
    margin: 25px 0 30px;
    color: #a0a0a0;
    font-size: 15px;
    line-height: 1.8;
    animation: em-fade-up 1s .15s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: em-fade-up 1s .3s ease both;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 75px;
    padding-top: 20px;
    border-top: 1px solid #292929;
    color: #777;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    animation: em-fade-in 1.2s .5s ease both;
}

/* ================= TRUST STRIP ================= */

.trust-strip {
    background: #0d0d0d;
    border-bottom: 1px solid #252525;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-grid > div {
    min-height: 95px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 25px;
    border-right: 1px solid #252525;
    transition: background .3s ease, transform .3s ease;
}

.trust-grid > div:hover {
    background: rgba(227,38,54,.045);
    transform: translateY(-3px);
}

.trust-grid > div:first-child {
    border-left: 1px solid #252525;
}

.trust-grid strong {
    color: var(--em-red);
    font-size: 19px;
    font-weight: 900;
}

.trust-grid span {
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
}

/* ================= SECTIONS ================= */

.section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 35px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2,
.feature-inner h2,
.support-section h2 {
    margin: 0;
    color: #fff;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-heading h2 span,
.feature-inner h2 span,
.support-section h2 span {
    color: var(--em-red);
}

.section-heading > p {
    max-width: 300px;
    margin: 0;
    color: #888;
    font-size: 13px;
}

/* ================= FILTERS ================= */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.filter {
    min-height: 38px;
    padding: 0 17px;
    color: #999;
    background: #111;
    border: 1px solid #292929;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    transition: .25s ease;
}

.filter:hover,
.filter.active {
    color: #fff;
    background: var(--em-red);
    border-color: var(--em-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(227,38,54,.15);
}

/* ================= PRODUCTS ================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    background: #101010;
    border: 1px solid #292929;
    border-radius: 8px;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    border-color: rgba(227,38,54,.65);
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.product-image {
    position: relative;
    height: 210px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #171717;
    border-bottom: 1px solid #292929;
}

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

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

.product-info {
    padding: 22px;
}

.product-category {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--em-red);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-info h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.product-info p {
    min-height: 42px;
    margin: 0;
    color: #888;
    font-size: 12px;
    line-height: 1.7;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid #292929;
}

.product-bottom strong {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.add-button {
    position: relative;
    min-height: 38px;
    padding: 0 15px;
    overflow: hidden;
    color: #fff;
    background: var(--em-red);
    border: 1px solid var(--em-red);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    transition: .25s ease;
}

.add-button:hover {
    background: var(--em-red-dark);
    border-color: var(--em-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(227,38,54,.2);
}

.add-button.em-added {
    background: #198754;
    border-color: #198754;
    box-shadow: 0 0 18px rgba(25,135,84,.25);
}

.loading-state,
.empty-state {
    grid-column: 1 / -1;
    padding: 45px 20px;
    color: #888;
    background: #101010;
    border: 1px solid #292929;
    border-radius: 7px;
    text-align: center;
    font-size: 13px;
}

/* ================= FEATURE ================= */

.feature-band {
    padding: 85px 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(227,38,54,.10), transparent 50%),
        #101010;
    border-top: 1px solid #292929;
    border-bottom: 1px solid #292929;
}

.feature-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.feature-inner h2 {
    font-size: clamp(30px, 4vw, 43px);
}

.feature-inner > p {
    max-width: 500px;
    margin: 0;
    color: #999;
    font-size: 13px;
    line-height: 2;
}

/* ================= SUPPORT ================= */

.support-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.support-section > div {
    max-width: 600px;
}

.support-section .muted {
    margin-top: 17px;
    font-size: 13px;
    line-height: 1.8;
}

.support-section .button {
    flex-shrink: 0;
}

/* ================= FOOTER ================= */

.site-footer {
    width: 100%;
    margin-top: 40px;
    background: #0d0d0d;
    border-top: 1px solid #292929;
}

.footer-inner {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer-inner > p {
    margin: 0;
    color: #777;
    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #999;
    font-size: 11px;
    font-weight: 600;
    transition: color .25s ease, transform .25s ease;
}

.footer-links a:hover {
    color: var(--em-red);
    transform: translateY(-2px);
}

/* ================= FORMS ================= */

input,
textarea,
select {
    max-width: 100%;
    color: #fff;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--em-red);
    box-shadow: 0 0 0 3px rgba(227,38,54,.1);
}

::selection {
    color: #fff;
    background: var(--em-red);
}

/* ================= JS SCROLL ANIMATIONS ================= */

.em-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.7,.2,1);
}

.em-reveal.em-visible {
    opacity: 1;
    transform: translateY(0);
}

.em-product-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity .65s ease,
        transform .65s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--em-animation-delay, 0ms);
}

.em-product-reveal.em-product-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= CATEGORY CARDS ================= */

.em-cat-card,
.em-category-card {
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.em-cat-card:hover,
.em-category-card:hover {
    transform: translateY(-6px);
    border-color: var(--em-red);
    box-shadow: 0 12px 30px rgba(227,38,54,.1);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .hero {
        min-height: 520px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .trust-grid > div {
        padding: 18px 12px;
    }

    .site-header .nav-wrap > nav,
    .main-navigation {
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .nav-wrap {
        min-height: 75px;
        gap: 12px;
    }

    .site-header .nav-wrap > nav,
    .main-navigation {
        gap: 24px;
    }

    .site-header .nav-wrap > nav a,
    .main-navigation a {
        font-size: 11px;
    }

    .brand-error {
        font-size: 23px;
    }

    .brand small {
        font-size: 7px;
    }

    .cart-link {
        min-height: 37px;
        padding: 0 10px;
        font-size: 10px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero {
        min-height: 500px;
    }

    .hero-inner {
        padding-top: 65px;
        padding-bottom: 55px;
    }

    .hero h1 {
        font-size: clamp(43px, 12vw, 65px);
        letter-spacing: -1px;
    }

    .hero-copy {
        font-size: 13px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 10px;
        margin-top: 50px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div,
    .trust-grid > div:first-child {
        min-height: 65px;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid #252525;
    }

    .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-image {
        height: 220px;
    }

    .feature-band {
        padding: 65px 0;
    }

    .support-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-section .button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .nav-wrap {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-header .nav-wrap > nav,
    .main-navigation {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 35px;
        padding-top: 10px;
        border-top: 1px solid #252525;
    }
}

/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .em-reveal,
    .em-product-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
