/* Wilco Shop - Shared Frontend Theme
 * Space Quest retro gaming aesthetic (circa 1990).
 * Pixel art feel, StarCon Academy colors. */

/* ── Pixel font (Google Fonts: VT323) ── */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

/* ── Base ── */
body {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #c8d6e5;
    background: #0f0f23;
    image-rendering: pixelated;
}

/* ── Header (StarCon uniform blue + gold insignia) ── */
header {
    background: #102C5F;
    color: white;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #FFB73F;
    box-shadow: 0 2px 0 #0a1a3a, 0 4px 8px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 1px;
}

/* Gold downward triangle (StarCon insignia) */
header .logo {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid #FFB73F;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 183, 63, 0.4));
}

header a {
    color: #c8d6e5;
    text-decoration: none;
}

header h1 a {
    color: #e8edf3;
}

header h1 a:hover {
    color: #FFB73F;
}

header nav a {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 183, 63, 0.3);
    transition: all 0.15s;
}

header nav a:hover {
    background: rgba(255, 183, 63, 0.15);
    border-color: #FFB73F;
    color: #FFB73F;
}

/* ── Main content ── */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ── Product grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #16213e;
    border: 2px solid #1a3a5c;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.15s, border-color 0.15s;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #FFB73F;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card-image,
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #0f0f23;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    border-bottom: 2px solid #1a3a5c;
}

.product-card-body,
.product-info {
    padding: 1rem;
}

.product-card-title,
.product-title {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: #c8d6e5;
}

.product-title a {
    color: #c8d6e5;
    text-decoration: none;
}

.product-title a:hover {
    color: #FFB73F;
}

.product-card-price,
.product-price {
    color: #48bb78;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
}

/* ── Product detail ── */
.product-detail {
    background: #16213e;
    border: 2px solid #1a3a5c;
    border-radius: 2px;
    padding: 2rem;
}

.product-detail-image {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: #0f0f23;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    margin-bottom: 1.5rem;
    border: 2px solid #1a3a5c;
    border-radius: 2px;
}

.product-detail h2 {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    line-height: 1.4;
    color: #e8edf3;
    margin-bottom: 1rem;
}

.product-detail .price {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: #48bb78;
    margin-bottom: 1rem;
}

.product-detail .description {
    color: #a0aec0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ── Shared utilities ── */
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #FFB73F;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.back-link:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #102C5F;
    color: #FFB73F;
    text-decoration: none;
    border: 2px solid #FFB73F;
    border-radius: 2px;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.15s;
}

.btn:hover {
    background: #FFB73F;
    color: #102C5F;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #a0aec0;
}

.empty-state p {
    margin-bottom: 1rem;
}

.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-page h2 {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: #fc8181;
    margin-bottom: 1rem;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2rem;
    color: #4a5568;
    font-size: 0.8rem;
    border-top: 1px solid #1a3a5c;
}
