@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== Pexnode Custom Header ===== */
body.primary-bg-color {
    padding-top: 125px;
}
.pexnode-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 99;
    background-color: #000;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    height: 125px;
    padding: 25px 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
.pexnode-header .main-navbar-wrapper {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.pexnode-header .topbar {
    background: #000;
}
.pexnode-nav-bar {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}
.pexnode-logo {
    flex-shrink: 0;
    margin-right: 24px;
}
.pexnode-logo img {
    height: 75px;
    width: 200px;
    object-fit: unset;
}
.pexnode-main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.pexnode-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 4px;
}
.pexnode-nav-item {
    position: relative;
}
.pexnode-nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.pexnode-nav-link:hover,
.pexnode-nav-link:focus {
    color: #e88c30;
    text-decoration: none;
}
.pexnode-nav-link .chevron {
    font-size: 10px;
    transition: transform 0.2s;
}
.pexnode-nav-item.has-mega-menu:hover .chevron {
    transform: rotate(180deg);
}

/* Mega Menu */
.pexnode-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 20px;
    padding-top: 28px;
    z-index: 1000;
    min-width: 680px;
}
/* Invisible bridge so cursor can travel from nav link to mega menu */
.pexnode-mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.pexnode-nav-item.has-mega-menu:hover .pexnode-mega-menu {
    display: block;
}
.pexnode-mega-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.pexnode-mega-row:last-child {
    margin-bottom: 0;
}
.pexnode-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border: 1px solid #333;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
    flex: 1;
    min-width: 110px;
}
.pexnode-game-card:hover {
    border-color: #e88c30;
    background: rgba(232, 140, 48, 0.05);
    color: #fff;
    text-decoration: none;
}
.pexnode-game-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    object-fit: contain;
}
.pexnode-game-card .game-title {
    font-size: 11px;
    margin: 0;
    font-weight: 600;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* Header Buttons */
.pexnode-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.pexnode-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e88c30;
    cursor: pointer;
}
.pexnode-btn:focus {
    outline: none;
}
.pexnode-btn-outline {
    color: #ffffff;
    background: transparent;
}
.pexnode-btn-outline:hover {
    background: #e88c30;
    color: #fff;
    text-decoration: none;
}
.pexnode-btn-primary {
    color: #ffffff;
    background: #e88c30;
}
.pexnode-btn-primary:hover {
    background: #d47a20;
    border-color: #d47a20;
    color: #fff;
    text-decoration: none;
}

/* Cart icon in header */
.pexnode-cart-link {
    color: #fff;
    font-size: 18px;
    position: relative;
    margin-left: 12px;
    text-decoration: none;
}
.pexnode-cart-link:hover {
    color: #e88c30;
    text-decoration: none;
}
.pexnode-cart-link .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e88c30;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile toggle */
.pexnode-mobile-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 8px;
    cursor: pointer;
    display: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .pexnode-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        border-top: 1px solid #333;
        padding: 16px;
        z-index: 1000;
    }
    .pexnode-main-nav.show {
        display: block;
    }
    .pexnode-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .pexnode-nav-link {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .pexnode-mega-menu {
        position: static;
        transform: none;
        min-width: auto;
        border: none;
        background: #222;
        border-radius: 12px;
        margin-top: 4px;
    }
    .pexnode-mega-row {
        flex-wrap: wrap;
    }
    .pexnode-game-card {
        min-width: calc(33% - 8px);
        flex: unset;
    }
    .pexnode-header-actions {
        display: none;
    }
    .pexnode-header-actions.mobile-show {
        display: flex;
        flex-direction: column;
        margin: 12px 16px 0;
        gap: 8px;
    }
    .pexnode-mobile-toggle {
        display: block;
        margin-left: auto;
    }
}
@media (max-width: 575px) {
    .pexnode-game-card {
        min-width: calc(50% - 8px);
    }
}

/* ===== Global Pexnode Overrides ===== */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #ccc;
}

a {
    color: #e88c30;
}
a:hover {
    color: #d47a20;
}

/* ===== Pexnode Footer ===== */
.pexnode-footer {
    background: #0a0a0a;
    color: #999;
    padding: 60px 0 30px;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.pexnode-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.pexnode-footer-col h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: none;
    font-family: 'Inter', sans-serif;
}
.pexnode-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pexnode-footer-col ul li {
    margin-bottom: 10px;
}
.pexnode-footer-col ul li a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.pexnode-footer-col ul li a:hover {
    color: #e88c30;
}

.pexnode-footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.pexnode-footer-social a {
    color: #999;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.pexnode-footer-social a:hover {
    color: #e88c30;
    background: rgba(232, 140, 48, 0.1);
}

.pexnode-footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #666;
}
.pexnode-footer-bottom p {
    margin: 0 0 6px;
}
.pexnode-footer-legal a {
    color: #666;
    text-decoration: none;
}
.pexnode-footer-legal a:hover {
    color: #e88c30;
}

@media (max-width: 767px) {
    .pexnode-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== Breadcrumb fix ===== */
.master-breadcrumb .breadcrumb-item a {
    color: #e88c30;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #666;
}

/* ===== Dropdown menus ===== */
.dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #333;
}
.dropdown-menu a.dropdown-item {
    color: #ccc;
}
.dropdown-menu a.dropdown-item:hover {
    color: #fff;
    background-color: #222;
}

/* ===== Page title area ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', sans-serif;
}

/* ===== Button border-radius rounded like main site ===== */
.btn {
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

/* ===== Pagination ===== */
.page-link {
    background-color: #1a1a1a;
    border-color: #333;
    color: #ccc;
}
.page-link:hover {
    background-color: #222;
    border-color: #444;
    color: #fff;
}
.page-item.active .page-link {
    background-color: #e88c30;
    border-color: #e88c30;
    color: #fff;
}

/* ===== Cart page: hide sidebar categories/actions and "Have questions?" ===== */
#order-standard_cart .cart-sidebar {
    display: none !important;
}
#order-standard_cart .cart-body {
    flex: 0 0 100%;
    max-width: 100%;
}
#order-standard_cart .secondary-cart-body .alert.alert-warning.info-text-sm {
    display: none !important;
}
/* Also hide the collapsed mobile categories selector */
#order-standard_cart .sidebar-categories-collapsed {
    display: none !important;
}
