/* ── Full Page Video Background ── */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background #bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ── Product Grid (Games page / Homepage) ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

/* Shrink to 2 columns on medium screens */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single column on mobile */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #ffb400;
    transition: transform 0.2s ease, border-color 0.2s;
}

.product-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 180, 0, 0.6);
    background: rgba(6, 212, 198, 0.486);
}

.product-card .product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.product-card .product-name {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffb400;
}

.product-card .product-price {
    font-size: 0.9rem;
    color: #fff;
}

.product-card .product-order {
    font-size: 0.8rem;
    color: #aaa;
}


/* ── Product Detail Page ── */
#product-info {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 30px 0;
    flex-wrap: wrap;
}

.detail-image {
    flex: 0 0 auto;
    width: 380px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.detail-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-text h2 {
    font-size: 1.6rem;
    color: #ffb400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.detail-price {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
}

.detail-order {
    font-size: 0.9rem;
    color: #aaa;
}

@media (max-width: 700px) {
    #product-info {
        flex-direction: column;
    }

    .detail-image {
        width: 100%;
    }
}

/* ── Category Links ── */
.categories {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0 20px;
}

.categories a {
    text-decoration: none;
    color: #ffb400;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.categories a:hover {
    background: rgba(6, 212, 198, 0.486);
    transform: scale(1.1);
}

.categories a.active {
    background: rgba(255, 180, 0, 0.25);
    border: 1px solid #ffb400;
}

/* ── Top Navigation Bar ── */
.top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px 0;
}

.top-nav a {
    text-decoration: none;
    color: #ffb400;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}/* ── Full Page Video Background ── */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background #bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ── Product Grid (Games page / Homepage) ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

/* Shrink to 2 columns on medium screens */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single column on mobile */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #ffb400;
    transition: transform 0.2s ease, border-color 0.2s;
}

.product-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 180, 0, 0.6);
    background: rgba(6, 212, 198, 0.486);
}

.product-card .product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.product-card .product-name {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffb400;
}

.product-card .product-price {
    font-size: 0.9rem;
    color: #fff;
}

.product-card .product-order {
    font-size: 0.8rem;
    color: #aaa;
}


/* ── Product Detail Card (stacked layout) ── */
#product-detail {
    display: flex;
    flex-direction: column;
    max-width: 760px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

/* Image fills the full width at the top of the card */
#product-detail .detail-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #111;
}

#product-detail .detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product name + inline nav links on the same row */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.4rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffb400;
}

/* Inline nav links sitting next to the title */
.detail-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.detail-nav a {
    color: #ffb400;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid rgba(255, 180, 0, 0.35);
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.detail-nav a:hover {
    background: rgba(6, 212, 198, 0.486);
    border-color: rgba(255, 180, 0, 0.8);
}

/* Price / description / order text block */
.detail-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 1.2rem 1.4rem 1.6rem;
}

.detail-price {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    margin: 0;
}

.detail-order {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

/* Stack header vertically on small screens */
@media (max-width: 600px) {
    #product-detail .detail-image {
        height: 220px;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ── Category Links ── */
.categories {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0 20px;
}

.categories a {
    text-decoration: none;
    color: #ffb400;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.categories a:hover {
    background: rgba(6, 212, 198, 0.486);
    transform: scale(1.1);
}

.categories a.active {
    background: rgba(255, 180, 0, 0.25);
    border: 1px solid #ffb400;
}

/* ── Top Navigation Bar ── */
.top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px 0;
}

.top-nav a {
    text-decoration: none;
    color: #ffb400;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.top-nav a:hover {
    background: rgba(6, 212, 198, 0.486);
    transform: scale(1.1);
}

.top-nav a.active {
    background: rgba(255, 180, 0, 0.25);
    border: 1px solid #ffb400;
}

.nav-divider {
    color: #ffb400;
    font-size: 1.3em;
    padding: 0 5px;
    opacity: 0.4;
}

.top-nav img {
    max-height: 40px;
    width: auto;
}


/* ── Fixed site header (navigation bar) ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 180, 0, 0.2);
}

/* Push page content down so it isn't hidden behind the fixed header */
.page-content {
    padding-top: 80px;
}

.top-nav a:hover {
    background: rgba(6, 212, 198, 0.486);
    transform: scale(1.1);
}

.top-nav a.active {
    background: rgba(255, 180, 0, 0.25);
    border: 1px solid #ffb400;
}

.nav-divider {
    color: #ffb400;
    font-size: 1.3em;
    padding: 0 5px;
    opacity: 0.4;
}

.top-nav img {
    max-height: 40px;
    width: auto;
}

/* ── Product card: image fills the top border area ── */
        .product-card {
            display: flex;
            flex-direction: column;
            overflow: hidden;           /* image stays inside the border */
            border-radius: 10px;        /* match whatever border-radius you use */
            text-decoration: none;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        }

        /* Image fills full width, fixed height, cropped if needed */
        .product-card .product-image {
            width: 100%;
            height: 200px;
            overflow: hidden;
            flex-shrink: 0;
        }
        .product-card .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;      /* fills the box, crops excess */
            display: block;
        }

        /* Text area sits below the image */
        .product-card .product-info {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            padding: 0.75rem 1rem;
        }
        .product-card .product-name {
            font-weight: bold;
            color: #fff;
        }
        .product-card .product-price {
            color: #4ade80;
        }
        .product-card .product-order {
            color: #888;
            font-size: 0.8rem;
        }