.qv-color-selected {
    border: 2px solid #0073c7;
    border-radius: 2px;
}

/* Daily Deals Link - Red Background */
.daily-deals-link {
    background: #e74c3c !important;
    color: white !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: background 0.3s ease !important;
}

.daily-deals-link:hover {
    background: #c0392b !important;
    color: white !important;
    text-decoration: none !important;
}

/* PC Build Button - Red Background */
.pc-build-button {
    background: #dc3545 !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.pc-build-button:hover {
    background: #bb2d3b !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4) !important;
}

.pc-build-button img {
    filter: brightness(0) invert(1);
}

/* Hide PC Build button in top Links menu on mobile - only show in categories */
@media (max-width: 991px) {
    .top-menu .pc-build-menu-item {
        display: none !important;
    }

    /* Ensure PC Build button shows in categories on mobile */
    .header-nav-main .pc-build-button {
        display: inline-flex !important;
    }

    /* Make sure the category navigation is visible on mobile */
    .header-nav-main {
        display: block !important;
    }

    #header-bottom-list {
        display: flex !important;
        flex-wrap: wrap !important;
    }
}

/* Tajawal Font for Arabic Header Links - Bold */
html[dir="rtl"] .top-menu li a,
html[dir="rtl"] .header-nav-main a,
html[dir="rtl"] .compare-dropdown a,
html[dir="rtl"] .header-top a {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 700 !important;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-switcher-label {
    color: #fff;
    font-size: 12px;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.lang-switcher-label .fa-globe {
    font-size: 13px;
}

.lang-switcher-btns {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.lang-btn img {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.lang-btn--active {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.8) !important;
    font-weight: 700;
}

/* Arabic font for the AR button label */
html[dir="rtl"] .lang-switcher-label,
html[dir="rtl"] .lang-btn {
    font-family: 'Tajawal', sans-serif !important;
}

/* Mobile: keep the switcher visible and compact */
@media (max-width: 767px) {
    .lang-switcher {
        gap: 4px;
    }
    .lang-switcher-label {
        font-size: 11px;
    }
    .lang-btn {
        padding: 2px 7px;
        font-size: 11px;
    }
    .lang-btn img {
        width: 14px;
        height: 10px;
    }
}

/* Ensure English stays normal */
html[lang="en"] .top-menu li a,
html[lang="en"] .header-nav-main a,
html[lang="en"] .compare-dropdown a {
    font-family: inherit;
    font-weight: normal;
}

/* ===== MOBILE CATEGORIES TOGGLE BUTTON ===== */
.mobile-categories-toggle-btn {
    display: none;
    background: #0088cc;
    border-bottom: 1px solid #006699;
}

@media (max-width: 1199px) {
    .mobile-categories-toggle-btn {
        display: block;
    }
}

.categories-dropdown-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.categories-dropdown-btn:hover {
    background: rgba(255,255,255,0.1);
}

.categories-dropdown-btn:active {
    background: rgba(255,255,255,0.2);
}

.categories-dropdown-btn .fa-th-large {
    margin-right: 10px;
    font-size: 18px;
}

[dir="rtl"] .categories-dropdown-btn .fa-th-large {
    margin-right: 0;
    margin-left: 10px;
}

.categories-dropdown-btn .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.categories-dropdown-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* ===== MOBILE CATEGORIES GRID STYLING ===== */
.mobile-categories-grid {
    display: none;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

@media (max-width: 1199px) {
    .mobile-categories-grid[data-is-root="true"] {
        display: block;
        max-height: 1000px;
        padding: 15px 0;
    }
}

@media (max-width: 1199px) {
    .mobile-categories-grid.open {
        display: block;
        max-height: 1000px;
        padding: 15px 0;
    }
}

.categories-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    padding: 8px 12px;
}

@media (max-width: 767px) {
    .categories-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .categories-grid-wrapper {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
}

.mobile-category-item {
    background: transparent;
    border-radius: 8px;
    padding: 5px 3px;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85px;
}

.mobile-category-item:hover {
    transform: translateY(-2px);
}

.mobile-category-item:hover .mobile-category-icon-circle {
    background: #006699;
    box-shadow: 0 4px 12px rgba(0,136,204,0.3);
}

.mobile-category-item:active {
    transform: translateY(-1px);
}

/* Circular background for icons */
.mobile-category-icon-circle {
    width: 60px;
    height: 60px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,136,204,0.2);
}

@media (max-width: 767px) {
    .mobile-category-icon-circle {
        width: 52px;
        height: 52px;
        margin-bottom: 4px;
    }
}

.mobile-category-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
    .mobile-category-icon {
        width: 28px;
        height: 28px;
    }
}

.mobile-category-name {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 2px;
}

@media (max-width: 767px) {
    .mobile-category-name {
        font-size: 9px;
    }
}

.mobile-category-item:hover .mobile-category-name {
    color: #0088cc;
}

/* PC Build button styling in mobile grid */
.pc-build-mobile .pc-build-circle {
    background: #dc3545 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.pc-build-mobile:hover .pc-build-circle {
    background: #bb2d3b !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.pc-build-mobile .mobile-category-name {
    color: #dc3545 !important;
    font-weight: bold;
}

.pc-build-mobile:hover .mobile-category-name {
    color: #bb2d3b !important;
}

/* Old mobile side menu styling - DISABLED */
.mobile-nav {
    display: none !important;
}

.mmenu-toggle-btn {
    display: none !important;
}

#mobile-menu-overlay {
    display: none !important;
}
