* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    background: url('assets/background.jpg') repeat;
    background-size: auto;
    background-position: top left;
    color: #fff;
    overflow-x: hidden;
    background-attachment: scroll;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 10px 0;
    background: transparent;
}

.nav-bar {
    width: min(900px, 96%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 3px solid #000;
    border-radius: 22px;
    box-shadow: 6px 6px 0px #000;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    background: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 #000;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-toggle span::before {
    top: -8px;
}

.menu-toggle span::after {
    top: 8px;
}

.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.6);
    border: 4px solid #000;
    border-radius: 50%;
    box-shadow: 6px 6px 0 #000;
    transition: transform 0.2s ease;
}

.home-button img {
    width: 52px;
    height: auto;
    display: block;
}

.home-button:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 3px solid #000;
    border-radius: 18px;
    box-shadow: 4px 4px 0 #000;
}

.nav-links .nav-link-box:nth-of-type(1) {
    animation: wiggle1 4s ease-in-out infinite;
}

.nav-links .nav-link-box:nth-of-type(2) {
    animation: wiggle2 4s ease-in-out infinite;
}

.nav-links .nav-link-box:nth-of-type(3) {
    animation: wiggle4 4s ease-in-out infinite;
}

.nav-links .nav-link-box:nth-of-type(4) {
    animation: wiggle5 4s ease-in-out infinite;
}

.nav-link-box a {
    color: #000;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 4px 2px;
}

.nav-link-box a:hover {
    text-decoration: underline;
}

nav a {
    text-decoration: none;
}

main {
    padding-top: 140px;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-content {
    width: min(90%, 750px);
    max-width: 750px;
    padding: 28px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    margin: 14px auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.25);
}

.hero {
    text-align: center;
}

.page-content h1,
.page-content h2 {
    margin: 0 0 16px;
}

.page-content p {
    margin: 0 0 0.9rem;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 14px #00ff00;
    animation: glow 2s infinite;
}

h2 {
    font-size: 1.8rem;
    text-shadow: 0 0 10px #ff00ff;
    margin: 0;
}

h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

p {
    font-size: 1rem;
    text-align: center;
    max-width: 100%;
    line-height: 1.5;
}

.product-card {
    display: block;
    cursor: pointer;
    padding: 18px;
    border: 3px solid #fff;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 0 2px #fff, 8px 8px 0 #000;
    margin: 16px auto 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px) scale(1.01);
}

.card-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.card-preview img {
    width: 120px;
    max-width: 100%;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    background: #111;
}

.card-copy {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-copy .tag {
    display: block;
    margin-bottom: 0.6rem;
    letter-spacing: 0.14em;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.product-copy {
    margin-top: 16px;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 20;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    width: min(90%, 750px);
    max-height: calc(100vh - 80px);
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid #fff;
    border-radius: 22px;
    box-shadow: 0 0 0 1px #000, 10px 10px 0 rgba(255, 255, 255, 0.1);
    padding: 20px;
    position: relative;
    color: #fff;
    overflow-y: auto;
    scrollbar-width: none;
}

.modal-panel::-webkit-scrollbar {
    display: none;
}

.modal-images img {
    width: 100%;
    height: auto;
    max-height: 44vh;
    object-fit: contain;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 30;
}

.photo-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.photo-panel {
    position: relative;
    width: min(90vw, 750px);
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid #fff;
    border-radius: 22px;
    box-shadow: 0 0 0 1px #000, 10px 10px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.photo-panel img {
    width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.photo-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.photo-caption {
    color: #ccc;
    text-align: center;
    font-size: 0.95rem;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 18px;
}

.modal-header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding-right: 50px;
}

.modal-header p {
    margin: 0;
    color: #ccc;
}

.modal-toggle-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.color-toggle {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.color-toggle.active,
.color-toggle:hover {
    background: #fff;
    color: #000;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.modal-images img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 360px;
    padding: 16px 28px;
    background: #fff;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.14em;
    border: 4px solid #000;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    box-shadow: 8px 8px 0 #000;
    transition: transform 0.2s ease;
}

.buy-button:hover {
    animation: jitter 0.2s infinite alternate;
}

@keyframes jitter {
    from { transform: translateX(-1px) rotate(-0.5deg); }
    to { transform: translateX(1px) rotate(0.5deg); }
}

.modal-caption {
    text-align: center;
    color: #ddd;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .product-card {
        padding: 18px;
    }

    .product-card:hover {
        transform: none;
    }

    .card-preview {
        flex-direction: column;
        text-align: center;
    }

    .modal-panel {
        width: min(90%, 750px);
        padding: 20px;
    }

    .photo-panel {
        width: min(90vw, 750px);
    }

    .modal-images {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .buy-button {
        max-width: 100%;
    }
    .page-content {
        width: min(90%, 750px);
        padding: 18px;
        margin-top: 110px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.55rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        text-align: center;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
        text-align: left;
        max-width: 100%;
    }

    .page-content p {
        margin-bottom: 0.9rem;
    }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px #00ff00; }
    50% { text-shadow: 0 0 20px #00ff00; }
    100% { text-shadow: 0 0 5px #00ff00; }
}

@keyframes wiggle1 {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(0deg); }
}

@keyframes wiggle2 {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(3deg); }
}

@keyframes wiggle4 {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(1deg); }
}

@keyframes wiggle5 {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(4deg); }
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 10px 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .home-button {
        order: 1;
        width: 72px;
        height: 72px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-bar.open .nav-links {
        max-height: 520px;
        opacity: 1;
    }

    .nav-link-box {
        width: 100%;
        margin: 6px 0;
        padding: 14px 16px;
        box-shadow: none;
    }

    .nav-link-box a {
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        order: 2;
        margin-left: auto;
    }
}

/* ==========================================================================
   TEASBOGRE_V6 - AGGRESSIVE GOTHIC DARK RED STYLE 
   ========================================================================== */

/* A fő kártya sötét gótikus stílusa */
.product-card.v6-gothic {
    background: rgba(6, 6, 6, 0.95) !important;
    border: 3px solid #8b0000 !important;
    box-shadow: 0 0 0 3px #000, 
                0 0 20px rgba(139, 0, 0, 0.6), 
                10px 10px 0 #000 !important;
}

.product-card.v6-gothic:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 0 3px #000, 
                0 0 30px rgba(255, 0, 0, 0.85), 
                12px 12px 0 #000 !important;
}

.product-card.v6-gothic .tag {
    color: #ff3333 !important;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.product-card.v6-gothic h2 {
    text-shadow: 0 0 10px #8b0000 !important;
}

/* A V6-os felugró ablak (Modal) belső áthangolása sötétvörösre */
#modal-v6 .modal-panel {
    background: rgba(8, 2, 2, 0.99) !important;
    border: 2px solid #8b0000 !important;
    box-shadow: 0 0 0 1px #000, 0 0 25px rgba(139, 0, 0, 0.4);
}

#modal-v6 .modal-header h2 {
    text-shadow: 0 0 12px #ff0000 !important;
}

#modal-v6 .color-toggle {
    border: 2px solid #8b0000;
    color: #ffcccc;
}

#modal-v6 .color-toggle.active,
#modal-v6 .color-toggle:hover {
    background: #8b0000;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

#modal-v6 .modal-images img {
    border: 3px solid rgba(139, 0, 0, 0.7);
}

#modal-v6 .modal-images img:hover {
    border-color: #ff3333;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

#modal-v6 .buy-button {
    background: #8b0000;
    color: #fff;
    border: 4px solid #000;
    box-shadow: 6px 6px 0 #000;
}