/* Algemeen */
body {
    background-color: #2a2a2a; /* donkergrijs */
    color: #ffd700; /* goud */
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 14px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* CRT scanlines effect */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255, 0, 0, 0.03) 50%, rgba(255, 215, 0, 0.03) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #3a3a3a; /* grijs */
    border: 4px solid #c0c0c0; /* zilvergrijs */
    padding: 20px;
    box-shadow: 10px 10px 0 #8b0000; /* donkerrood */
    flex: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.logo h1 {
    color: #ff0000; /* rood */
    text-shadow: 3px 3px 0 #ffd700, 5px 5px 0 #4a4a4a;
    font-size: 28px;
    margin: 0;
    letter-spacing: 2px;
}

.logo span {
    color: #ffd700;
}

#cart-icon {
    font-size: 20px;
    background: #8b0000;
    padding: 10px;
    border: 2px solid #ffd700;
    border-radius: 10px;
}

#cart-count {
    background: #ffd700;
    color: #8b0000;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 5px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    border-top: 4px solid #ffd700;
    padding: 20px;
    text-align: center;
    color: #c0c0c0;
    font-size: 12px;
    margin-top: auto;
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

footer .footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

footer .footer-section h4 {
    color: #ffd700;
    border-bottom: 1px solid #ff0000;
    padding-bottom: 5px;
}

footer .thuiswinkel {
    margin-top: 15px;
}

footer .thuiswinkel img {
    max-width: 150px;
    image-rendering: pixelated;
}

/* Product gallerij */
.product-gallery {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.main-image {
    flex: 2;
}

.main-image img {
    width: 100%;
    border: 4px solid #ffd700;
    image-rendering: pixelated;
}

.thumbnails {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnails img {
    width: 100%;
    border: 2px solid #c0c0c0;
    cursor: pointer;
    transition: border 0.2s;
    image-rendering: pixelated;
}

.thumbnails img:hover {
    border-color: #ffd700;
}

.product-info {
    margin-top: 20px;
}

/* Knoppen en formulieren */
button, .button {
    background-color: #ffd700;
    color: #8b0000;
    border: none;
    padding: 12px 24px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 4px solid #b8860b;
    text-decoration: none;
    display: inline-block;
}

button:hover, .button:hover {
    background-color: #ffcc00;
}

input, textarea {
    background-color: #2a2a2a;
    border: 2px solid #ffd700;
    color: #ffd700;
    padding: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    width: 100%;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-top: 10px;
}

.error {
    color: #ff0000;
    font-size: 10px;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* Cart items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #ffd700;
    padding: 10px 0;
}

.cart-item button {
    padding: 5px 10px;
    font-size: 10px;
}

/* Animaties (Pac-Man, Triforce) */
.pacman {
    width: 0;
    height: 0;
    border-right: 20px solid transparent;
    border-top: 20px solid #ff0;
    border-left: 20px solid #ff0;
    border-bottom: 20px solid #ff0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    animation: movePacman 15s linear infinite;
    position: fixed;
    bottom: 50px;
    left: 0;
    z-index: 100;
}

@keyframes movePacman {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

.triforce {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid gold;
    position: fixed;
    top: 100px;
    right: 50px;
    animation: float 3s ease-in-out infinite;
    z-index: 100;
}

.triforce::before,
.triforce::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid gold;
}

.triforce::before {
    top: -25px;
    left: -25px;
}

.triforce::after {
    top: -25px;
    left: 25px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .product-gallery {
        flex-direction: column;
    }
    .thumbnails {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .thumbnails img {
        width: 30%;
    }
}
