/* ============================================================
   PRODUCT SIDEBAR STYLES - Global CSS File
   ============================================================ */

/* Sidebar Section */
.sidebar_section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 12px;
    margin-bottom: 12px;
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.sidebar_section_title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

/* Tabs */
.sidebar_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: auto !important;
    max-width: 100%;
    width: 100%;
    touch-action: pan-y;
}

.sidebar_tab {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}

.sidebar_tab:hover {
    background: #e5e7eb;
    color: #111827;
}

.sidebar_tab.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Car List */
.sidebar_car_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    position: relative;
}

.sidebar_car_item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    position: relative;
}

.sidebar_car_item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.sidebar_car_img_wrap {
    position: relative;
    width: 90px;
    height: 60px;
    flex-shrink: 0;
}

.sidebar_car_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #e5e7eb;
}

/* Upcoming Badge */
.sidebar_upcoming_badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.sidebar_car_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sidebar_car_name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar_car_price {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
}

.sidebar_empty {
    padding: 12px 8px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.sidebar_loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    z-index: 10;
}

.sidebar_spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: sidebar-spin 0.6s linear infinite;
}

@keyframes sidebar-spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar_section {
        padding: 14px;
        margin-bottom: 14px;
    }
    
    .sidebar_section_title {
        font-size: 16px;
    }
    
    .sidebar_tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        overflow: visible !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: auto !important;
        scroll-behavior: auto;
        max-width: 100% !important;
        width: 100% !important;
        touch-action: pan-y;
        position: relative;
    }
    
    .sidebar_tab {
        font-size: 12px;
        padding: 5px 10px;
        flex-shrink: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .sidebar_car_img_wrap {
        width: 75px;
        height: 50px;
    }
    
    .sidebar_car_name {
        font-size: 14px;
    }
    
    .sidebar_car_price {
        font-size: 12px;
    }
    
    .sidebar_upcoming_badge {
        font-size: 8px;
        padding: 2px 6px;
    }
}

