/* Sidebar Layout */
.cyber-sidebar, [style*="width: 220px"] {
    width: 220px !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    background: #000 !important;
    z-index: 10 !important;
    border-right: 1px solid #00ff00;
}

.sidebar-content {
    background: #000;
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Crypto Box - Always Visible */
.crypto-box {
    position: sticky;
    top: 0;
    background: #000;
    z-index: 10;
    padding: 15px;
    margin: -15px -15px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.crypto-item:last-child {
    margin-bottom: 0;
}

.crypto-info {
    display: flex;
    flex-direction: column;
}

.crypto-label {
    color: #00ff00;
    font-size: 0.9rem;
}

.crypto-price {
    color: #fff;
    font-weight: 500;
}

/* Categories Section - Scrollable */
.categories-container {
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 120px);
    margin-top: 15px;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #000;
    padding-right: 5px;
}

.category-wrapper {
    position: relative;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #00ff00;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
}

.subcategories-list {
    display: none;
    position: fixed;
    margin-left: 220px;
    min-width: 250px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3),
                inset 0 0 15px rgba(0, 255, 0, 0.1);
    z-index: 99999;
    backdrop-filter: blur(5px);
    padding: 8px 0;
    border-radius: 4px;
    pointer-events: auto;
}

.category-wrapper {
    position: relative;
}

.category-wrapper:hover .subcategories-list {
    display: block;
    animation: popIn 0.2s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subcategory-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    color: #00ff00;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 2px 5px;
    border-radius: 3px;
}

.subcategory-item:hover {
    background: rgba(0, 255, 0, 0.15);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.subcategory-item:hover {
    background: rgba(0, 255, 0, 0.1);
}

.category-count, .subcategory-count {
    margin-left: 8px;
    opacity: 0.7;
}

.categories-container::-webkit-scrollbar {
    width: 6px;
}

.categories-container::-webkit-scrollbar-track {
    background: #000;
}

.categories-container::-webkit-scrollbar-thumb {
    background-color: #00ff00;
    border-radius: 3px;
}

.categories-wrapper {
    height: 100%;
}

/* View Product Button */
.view-product-btn {
    display: inline-block;
    width: auto;
    padding: 4px 8px;
    margin-top: 5px;
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 255, 0, 0.15);
}

.view-product-btn:hover {
    background: linear-gradient(45deg, #00cc00, #00ff00);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.3);
    border-color: rgba(0, 255, 0, 0.5);
}

/* Product Card Image */
.product-card-image-container {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}
