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

html {
    scrollbar-gutter: stable;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

:root {
	--gold-bright: #fab005;
	--gold-accessible: #a67c00;
	--dark-bg: #000;
	--light-bg: #fff;
	--text-main: #333;
	--text-muted: #777;
	--cyan: #008eb3;
	--cyan-bright: #00e5ff;
	--ff-primary: 'Barlow', sans-serif;
    --ff-heading: 'Bebas Neue', cursive;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--gold-bright);
	color: #000;
	padding: 8px;
	z-index: 100;
	transition: top 0.3s;
	text-decoration: none;
	font-weight: bold;
}
.skip-link:focus { top: 0; }

body {
	background-color: var(--dark-bg);
	color: var(--text-main);
	font-family: 'Barlow', sans-serif;
	line-height: 1.5;
	overflow-x: hidden;
}

#starfield {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: #000;
}

.page-wrapper {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	color: #fff;
}
.logo-area { text-align: left; flex: 1; }
.logo-text { font-family: 'Bebas Neue', cursive; font-size: 32px; color: var(--cyan-bright); line-height: 1; }
.header-info { flex: 1; text-align: center; }
.header-info h1 { font-size: 32px; color: #fff; margin: 5px 0; }
.header-img { flex: 1; text-align: right; }
.header-img img { border-radius: 10px; max-width: 200px; }

nav {
    background: var(--gold-bright);
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px 10px 0 0; 
    position: relative;
    z-index: 10;
    overflow: hidden;
}

nav ul {
    display: flex;
    list-style: none;
    width: 100%;
}

nav ul li {
    flex: 1;
    display: flex;
}

nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 10px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-right: 1px solid rgba(0,0,0,0.1);
    transition: background 0.2s;
}

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

nav ul li a:hover, 
nav ul li a:focus { 
    background: rgba(255,255,255,0.4); 
    outline: none; 
}

nav ul li a.active {
    background: rgba(0,0,0,0.18);
    font-weight: bold;
}

.content-container {
	background: #fff;
	padding: 20px;
	display: grid;
	grid-template-columns: 3fr 1fr;
	gap: 20px;
	border-radius: 10px;
}

.search-area {
	display: flex;
	justify-content: flex-end;
	grid-column: span 2;
}
.search-area input { padding: 8px; width: 166px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; }
.search-area button { background: var(--gold-accessible); color: #fff; border: none; padding: 5px 15px; cursor: pointer; font-weight: bold; border-radius: 0 4px 4px 0; }

.featured-header {
	color: var(--gold-accessible);
	border-bottom: 1px solid #ddd;
	margin-bottom: 15px;
	padding-bottom: 5px;
	font-size: 24px;
}
.product-split { display: flex; gap: 20px; margin-bottom: 30px; }
.product-img { flex: 1; }
.product-img img { width: 100%; border: 1px solid #ddd; border-radius: 4px; }
.product-details { flex: 1; }
.product-details h2 { color: var(--gold-accessible); margin-bottom: 10px; font-size: 20px; }
.price { font-size: 22px; font-weight: bold; color: var(--gold-accessible); margin-bottom: 10px; }

#inventory-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 30px;
}
.cat-item { 
    text-align: center; 
    font-size: 11px; 
    font-weight: bold; 
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 10px;
    border-radius: 8px;
}

.cat-item img { 
    width: 100%; 
    border: 1px solid #ddd; 
    margin-bottom: 5px; 
    border-radius: 4px; 
    transition: border-color 0.2s;
}

.cat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
}

.cat-item:hover img {
    border-color: var(--gold-accessible);
}

aside { border-left: 1px solid #eee; padding-left: 20px; }
.sidebar-box {
	background: #000;
	color: #fff;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
	text-align: center;
}
.sidebar-box h3 { color: var(--gold-bright); font-size: 16px; margin-bottom: 10px; border-bottom: 1px solid #333; }
.btn-inquire { background: var(--cyan-bright); color: #000; font-weight: bold; text-align: center; padding: 10px; display: block; text-decoration: none; border-radius: 3px; }
.testimonial { font-style: italic; font-size: 13px; color: #ccc; margin-top: 10px; }

footer {
	background: transparent;
	color: #fff;
	padding: 40px 20px;
	text-align: center;
	font-size: 13px;
}
.footer-cols {
	display: flex;
	justify-content: space-between;
	max-width: 1100px;
	margin: 0 auto 20px;
	text-align: left;
}
.footer-col h4 { color: var(--gold-bright); margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li a { color: #fff; text-decoration: none; }
.footer-col ul li a:hover { color: #fff; }

.game-toggle-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.game-toggle-label {
    display: inline-block;
    position: relative;
}

.game-toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.game-toggle-btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #f8f9fa;
    color: #212529;
    border: 2px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
}

.game-toggle-label:hover .game-toggle-btn {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.game-toggle-label input[type="checkbox"]:checked + .game-toggle-btn {
    background-color: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
}

.game-toggle-label input[type="checkbox"]:focus-visible + .game-toggle-btn {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .header-img, .header-info { display: none; }
	
	header {
        justify-content: center;
        padding: 15px 0;
    }
	
	.logo-area {
        text-align: center;
        flex: none;
        width: 100%;
    }

    .search-area {
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .content-container { 
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        padding: 10px;
    }
	
	main {
        width: 100%;
        margin-bottom: 30px;
    }

    aside {
		width: 100%;
        border-left: none;
        padding-left: 0;
        display: block;
    }

    #inventory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    nav {
        width: 90%;
        margin: 0 auto;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 15px;
        background: none;
        border: none;
        font-family: var(--ff-primary);
        font-weight: bold;
        cursor: pointer;
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background: #000;
        margin: 4px 0;
    }

    nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li a {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 15px;
    }
}

@media (min-width: 769px) {
    .nav-toggle { display: none; }
}