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

:root {
    --black: #0a0a0a;
    --white: #f0ead6;
    --yellow: #ffe600;
    --cyan: #00ffff;
    --magenta: #ff00cc;
    --green: #00ff41;
    --red: #ff2222;
    --grey: #2a2a2a;
    --border: 3px solid var(--white);
}

/* tiled background */
body {
    background-color: var(--black);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(255, 255, 255, 0.03) 31px, rgba(255, 255, 255, 0.03) 32px),
        repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(255, 255, 255, 0.03) 31px, rgba(255, 255, 255, 0.03) 32px);
    color: var(--white);
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    line-height: 1.6;
    cursor: crosshair;
}


/* marquee */
.marquee-wrap {
    background: var(--yellow);
    color: var(--black);
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid var(--black);
}

.marquee-banner {
    display: inline-block;
    animation: marquee 18s linear infinite;
}

.marquee-banner span {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 0 2rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-60%);
    }
}


/* HEADER */

header {
    border-bottom: var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* scanlines */
header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px);
    pointer-events: none;
}

.site-logo {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(1.4rem, 5vw, 2.8rem);
    color: var(--cyan);
    text-shadow: 4px 4px 0 var(--magenta), -2px -2px 0 var(--yellow);
    text-decoration: none;
    display: block;
    text-align: center;
    line-height: 1.4;
}

.site-logo {
    animation: glitch 4s infinite;
}

@keyframes glitch {

    0%,
    95%,
    100% {
        text-shadow: 4px 4px 0 var(--magenta), -2px -2px 0 var(--yellow);
        transform: translate(0);
    }

    96% {
        text-shadow: -4px 4px 0 var(--magenta), 2px -2px 0 var(--yellow);
        transform: translate(2px, -1px);
    }

    97% {
        text-shadow: 4px -4px 0 var(--cyan), -2px 2px 0 var(--yellow);
        transform: translate(-2px, 1px);
    }

    98% {
        text-shadow: 4px 4px 0 var(--magenta), -2px -2px 0 var(--yellow);
        transform: translate(0);
    }
}

.tagline {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--green);
    letter-spacing: 0.1em;
    text-align: center;
}

/* Visitor counter */
.visitor-counter {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--yellow);
    border: 2px solid var(--yellow);
    padding: 4px 10px;
    margin-top: 4px;
}

/* NAV */

nav {
    border-bottom: var(--border);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    display: block;
    padding: 10px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--white);
    text-decoration: none;
    border-right: 2px solid var(--grey);
    transition: background 0.1s, color 0.1s;
}

nav ul li:last-child a {
    border-right: none;
}

nav a:hover,
nav a:focus {
    background: var(--yellow);
    color: var(--black);
    outline: none;
}

/* MAIN */

/* hero */
.hero {
    padding: 3rem 1.5rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-box {
    border: var(--border);
    padding: 1.5rem;
    position: relative;
}

/* win 95 style */
.hero-box::before {
    content: attr(data-title);
    display: block;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: var(--white);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 8px 8px;
    margin: -1.5rem -1.5rem 1.25rem -1.5rem;
    letter-spacing: 0.05em;
}

.hero-box h1 {
    font-family: 'VT323', monospace;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.hero-box p {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.btn-stock {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 14px 20px;
    text-decoration: none;
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 var(--white);
    transition: transform 0.1s, box-shadow 0.1s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.btn-stock:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--white);
}

.btn-stock:focus {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}



.divider {
    text-align: center;
    padding: 0.75rem;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--magenta);
    letter-spacing: 0.2em;
    border-top: 2px dashed var(--grey);
    border-bottom: 2px dashed var(--grey);
    margin: 0 1.5rem;
}

/* products */

.products-section {
    padding: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    list-style-type: none;
}

.product-card {
    border: 3px solid var(--grey);
    transition: border-color 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--cyan);
}

.product-card:focus-within {
    border-color: var(--yellow);
}

.product-img {
    background: var(--grey);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-bottom: 2px solid var(--grey);
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* scan line on images */
.product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.1) 3px, rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
}

.product-info {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.product-name {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.product-price {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: var(--yellow);
}

.product-link {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    background: var(--black);
    border: 2px solid var(--white);
    color: var(--white);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 10px;
    text-decoration: none;
    transition: background 0.3s, color 0.1s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-link:hover {
    background: var(--white);
    color: var(--black);
}

.product-link:focus {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}


/* guestbok */

.guest-section {
    margin: 0 auto 2rem;
    border: 3px solid var(--magenta);
    position: relative;
    box-shadow: 3px 3px 0 var(--cyan);
    width: 80%;
    max-width: 900px;
}

.guest-section::before {
    content: "SIGN OUR GUESTBOOK !!";
    display: block;
    background: var(--magenta);
    color: var(--black);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 6px 10px;
}

.guest-inner {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.guest-inner p {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--white);
    max-width: 50ch;
}

.btn-guest {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 13px 18px;
    border: 3px solid var(--magenta);
    color: var(--magenta);
    background: transparent;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--magenta);
    transition: transform 0.3s, box-shadow 0.1s;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.btn-guest:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--magenta);
}

.btn-guest:focus {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}


/* footer */
footer {
    border-top: var(--border);
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    padding: 4px 8px;
    border: 2px solid;
    white-space: nowrap;
}

.badge-ie {
    border-color: #1da;
    color: #1da;
}

.badge-800 {
    border-color: var(--yellow);
    color: var(--yellow);
}

.badge-valid {
    border-color: var(--cyan);
    color: var(--cyan);
}

footer p {
    font-size: 12px;
    color: #666;
}

footer address {
    font-style: normal;
    font-size: 12px;
    color: #666;
    text-align: right;
}


/* github link */

.github-button {
    width: 18px;
    height: 18px;
    color: var(--cyan);
    align-self: center;
}

.github-button svg {
    fill: currentColor;
    width: 100%;
    height: 100%;
    transition: color 0.3s ease;
}

.github-button:hover {
    color: var(--white);
}



@media (max-width: 640px) {

    footer {
        flex-direction: column;
        align-items: center;
    }

}